Difference between revisions of "Qt"
From ProgrammingExamples
Daviddoria (Talk | contribs) (→Simple Widgets) |
Daviddoria (Talk | contribs) (→Utilities) |
||
Line 49: | Line 49: | ||
* [[Qt/Utilities/DragAndDropFiles|Drag and drop files onto a widget]] | * [[Qt/Utilities/DragAndDropFiles|Drag and drop files onto a widget]] | ||
* [[Qt/Utilities/HandleItem|Add resize handles to a rectangle]] | * [[Qt/Utilities/HandleItem|Add resize handles to a rectangle]] | ||
+ | * [[Qt/Utilities/EventFilter|Handle another widgets event]] | ||
== Other == | == Other == |
Revision as of 16:39, 6 July 2012
Simple Widgets
- Auto connect slots
- 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
- Track selected items in a model
Utilities
- Get the system time
- Status bar
- Drag and drop files onto a widget
- Add resize handles to a rectangle
- Handle another widgets event