Difference between revisions of "Qt"
From ProgrammingExamples
Daviddoria (Talk | contribs) (→Utilities) |
Daviddoria (Talk | contribs) |
||
Line 73: | Line 73: | ||
== QWT == | == QWT == | ||
* [[Qt/QWT/Plot|Simple plot]] | * [[Qt/QWT/Plot|Simple plot]] | ||
+ | |||
+ | == Events == | ||
+ | * [[Qt/Events/Resize|Resize a graphics item when the form is resized]] |
Revision as of 09:57, 12 September 2012
Contents
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