Q_PROPERTY(QPixmap pixmap READ pixmap WRITE setPixmap)
"<widget class=\"myClass\" name=\"Lalala\">\n</widget>\n"
Q_PROPERTY(QPixmap backgroundImage READ backgroundImage WRITE setBackgroundImage DESIGNABLE true USER true) Q_PROPERTY(QPixmap needleImage READ needleImage WRITE setNeedleImage DESIGNABLE true USER true) Q_PROPERTY(QPixmap needleImageNotSelect READ needleNotSelectImage WRITE setNeedleNotSelectImage DESIGNABLE true USER true) Q_PROPERTY(int distanceNeedle READ distanceNeedle WRITE setDistanceNeedle DESIGNABLE true USER true) Q_PROPERTY(int distanceFrame READ distanceFrame WRITE setDistanceFrame DESIGNABLE true USER true) Q_PROPERTY(int updateDelay READ updateDelay WRITE setUpdateDelay DESIGNABLE true USER true) Q_PROPERTY(bool selected READ isSelected WRITE setSelected DESIGNABLE true USER true) Q_PROPERTY(int camCommand READ getCommand WRITE setCommand DESIGNABLE true USER true) Q_PROPERTY(bool ShowStep READ isShowStep WRITE setShowStep DESIGNABLE true USER true)
<widget class="myClass" name="Lalala"> <property name="geometry"> <rect> <x>229</x> <y>374</y> <width>45</width> <height>50</height> </rect> </property> <property name="maximumSize"> <size> <width>50</width> <height>50</height> </size> </property> <property name="focusPolicy"> <enum>Qt::NoFocus</enum> </property> <property name="backgroundImage"> <pixmap resource="resourse.qrc">:/Resources/knob_1.png</pixmap> </property> <property name="needleImage"> <pixmap resource="resourse.qrc">:/Resources/knob_point_red_selected.png</pixmap> </property> <property name="needleImageNotSelect" stdset="0"> <pixmap resource="resourse.qrc">:/Resources/knob_point_red.png</pixmap> </property> <property name="distanceNeedle"> <number>12</number> </property> <property name="distanceFrame"> <number>2</number> </property> </widget>