This folder contains controls examples.
- CheckBox shows how to create a check box with QCheckBox.
- CheckedListWidget shows how to create a checked list widget with QListWidget.
- ComboBox shows how to create a combo box with QComboBox.
- Dial shows how to create a dial with QDial.
- DoubleSpinBox shows how to create a double spin box with QDoubleSpinBox.
- Label shows how to create a label with QLabel.
- LCDNumber shows how to create a LCD number with QLCDNumber.
- LineEdit shows how to create a line edit with QLineEdit.
- ListView shows how to create a list view with QListView.
- ListView2 shows how to create a list view with QTreeView.
- ListWidget shows how to create a list widget with QListWidget.
- PictureBox shows how to create a picture box with QLabel.
- PictureBox2 shows how to create a picture box with QGraphicsPixmapItem.
- ProgressBar shows how to create a ProgressBar with QProgress.
- PushButton shows how to create a button and Event Click with QPushButton.
- RadioButton shows how to create a radio button with QRadioButton.
- Slider shows how to create a slider with QSlider.
- SpinBox shows how to create a spin box with QSpinBox.
- SpinButton shows how to create a spin button with QSpinBox.
- ToggleButton shows how to create a toggle button with QPushButton.
- TreeView shows how to create a three view with QTreeView.
- TreeWidget shows how to create a three widget with QTreeWidget.
- Widget shows how to create a widget with QWidget.
To build these projects, open Controls.pro
file with Qt Creator.
To build this project, open "Terminal" and type following lines:
Set CMAKE_PREFIX_PATH
with Qt6 install path.
mkdir build
cd build
cmake ..
start ./Controls.sln
mkdir build
cd build
cmake .. -G "Xcode"
open ./Controls.xcodeproj
mkdir build
cd build
cmake .. -G "CodeBlocks - Unix Makefiles"
xdg-open ./Controls.cbp > /dev/null 2>&1
mkdir build
cd build
cmake ..
cmake --build . --config Debug
./AnyProject