Go to the documentation of this file.
41 const QString& description,
66 QSpinBox* editor =
new QSpinBox(parent);
67 editor->setFrame(
false);
virtual QVariant getValue() const
Return the value of this Property as a QVariant. If the value has never been set, an invalid QVariant...
QMetaObject::Connection connect(const QObject *receiver, const char *slot, Qt::ConnectionType type=Qt::AutoConnection)
Connect changed() signal to given slot of receiver.
A single element of a property tree, with a name, value, description, and possibly children.
bool setValue(const QVariant &new_value) override
Set the new value for this property. Returns true if the new value is different from the old value,...
IntProperty(const QString &name=QString(), int default_value=0, const QString &description=QString(), Property *parent=nullptr)
Constructor.
virtual bool setValue(const QVariant &new_value)
Set the new value for this property. Returns true if the new value is different from the old value,...
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option) override
Overridden to create a QSpinBox with the min and max set and with a signal/slot connection to setInt(...
void setInt(int new_value)
Set the value of this property to the given integer.
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Aug 2 2024 08:43:09