Keywords: Disabled Widgets.png Example of disabled widgets in Qt selfmade with Qt Designer by Trolltech 2007-02-19 due to the simplicity Sven Sourcecode This was clicked together in Qt Designer in five minutes but this is the sourcecode if you think you need it <pre><nowiki> < DOCTYPE UI><UI version 3 3 stdsetdef 1 > <class>dsf</class> <widget class QDialog > <property name name > <cstring>dsf</cstring> </property> <property name geometry > <rect> <x>0</x> <y>0</y> <width>554</width> <height>468</height> </rect> </property> <property name caption > <string>Deaktivierte Widgets</string> </property> <hbox> <property name name > <cstring>unnamed</cstring> </property> <widget class QGroupBox > <property name name > <cstring>groupBox3</cstring> </property> <property name title > <string>Normales Widget</string> </property> <vbox> <property name name > <cstring>unnamed</cstring> </property> <widget class QPushButton > <property name name > <cstring>pushButton5</cstring> </property> <property name text > <string>normales Button</string> </property> </widget> <widget class QRadioButton > <property name name > <cstring>radioButton2</cstring> </property> <property name text > <string>Radiobutton</string> </property> </widget> <widget class QCheckBox > <property name name > <cstring>checkBox2</cstring> </property> <property name text > <string>Checkbox-Button</string> </property> <property name checked > <bool>true</bool> </property> </widget> <widget class QLineEdit > <property name name > <cstring>lineEdit7</cstring> </property> <property name text > <string>Eingabezeile</string> </property> </widget> <widget class QSpinBox > <property name name > <cstring>spinBox1</cstring> </property> <property name minValue > <number>2007</number> </property> </widget> <widget class QTextEdit > <property name name > <cstring>textEdit1</cstring> </property> <property name text > <string>Dieser Text kann bearbeitet werden</string> </property> <property name wordWrap > <enum>WidgetWidth</enum> </property> </widget> </vbox> </widget> <widget class QGroupBox > <property name name > <cstring>groupBox4</cstring> </property> <property name title > <string>ausgegrautes Widget</string> </property> <vbox> <property name name > <cstring>unnamed</cstring> </property> <widget class QPushButton > <property name name > <cstring>pushButton5_2</cstring> </property> <property name enabled > <bool>false</bool> </property> <property name text > <string>deaktiviertes Button</string> </property> </widget> <widget class QRadioButton > <property name name > <cstring>radioButton2_2</cstring> </property> <property name enabled > <bool>false</bool> </property> <property name text > <string>Radiobutton</string> </property> </widget> <widget class QCheckBox > <property name name > <cstring>checkBox2_2</cstring> </property> <property name enabled > <bool>false</bool> </property> <property name text > <string>Checkbox-Button</string> </property> <property name checked > <bool>true</bool> </property> </widget> <widget class QLineEdit > <property name name > <cstring>lineEdit7_2</cstring> </property> <property name enabled > <bool>false</bool> </property> <property name text > <string>Eingabezeile</string> </property> </widget> <widget class QSpinBox > <property name name > <cstring>spinBox1_2</cstring> </property> <property name enabled > <bool>false</bool> </property> <property name minValue > <number>2007</number> </property> </widget> <widget class QTextEdit > <property name name > <cstring>textEdit1_2</cstring> </property> <property name enabled > <bool>false</bool> </property> <property name text > <string>Dieser Text kann nicht weiter bearbeitet werden</string> </property> <property name wordWrap > <enum>WidgetWidth</enum> </property> </widget> </vbox> </widget> </hbox> </widget> <layoutdefaults spacing 6 margin 11 /> </UI> </nowiki></pre> Screenshots of KDE |