Difference between revisions of "Qt"
From ProgrammingExamples
Daviddoria (Talk | contribs) (→Model/View) |
Daviddoria (Talk | contribs) (→Model/View) |
||
Line 38: | Line 38: | ||
* [[Qt/ModelView/AbstractListModelCheckable|An AbstractListModel with checkboxes]] | * [[Qt/ModelView/AbstractListModelCheckable|An AbstractListModel with checkboxes]] | ||
* [[Qt/ModelView/AbstractListModelFileDialog|An AbstractListModel where one of the cells can be changed using a QFileDialog]] | * [[Qt/ModelView/AbstractListModelFileDialog|An AbstractListModel where one of the cells can be changed using a QFileDialog]] | ||
+ | * [[Qt/ModelView/ListViewComboBox|A persistent ComboBox on a list view]] | ||
== Utilities == | == Utilities == |
Revision as of 22:19, 20 December 2011
Simple Widgets
- Toolbar icons
- Use icons without resources (QCommonStyle) - Old method
- Display a toolbar (also an example of resources)
- Display a dialog
- Programmatically create a button
- Button widget (single inheritance)
- Button widget (multiple inheritance)
- Call a normal function from an event
- Check box widget
- Combo box widget
- Progress bar widget
- Progress bar marquee widget
- Display a progress bar while a long operation is being processed
- Slider widget
- File dialog
- File dialog - append a specified suffix if one is not provided
- Radio button widget
- Timer
- Thread
- MessageBox from a thread
- MessageBox from a class object within a thread
- QWidget subclass in a cpp file
- Operations on files (exist, etc)
- Information about a file (basename, path, extension, etc)
- File menu
- Display a widget inside a main window
- Display a templated widget inside a main window
- Change the cursor
- LineEdit widget - a text box
- Label
Model/View
- QAbstractTableModel
- ComboBox of CheckBoxes (QStandardItemModel, QStandardItem)
- A StringListModel with checkboxes
- A StandardItemModel with checkboxes
- An AbstractListModel with checkboxes
- An AbstractListModel where one of the cells can be changed using a QFileDialog
- A persistent ComboBox on a list view