Difference between revisions of "Qt"
From ProgrammingExamples
Daviddoria (Talk | contribs) (→Utilities) |
Daviddoria (Talk | contribs) (→Building) |
||
(22 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | == Building == | ||
+ | See this guide to get started: http://www.itk.org/Wiki/CMake/Tutorials/Qt | ||
+ | |||
== Simple Widgets == | == Simple Widgets == | ||
+ | * [[Qt/AutoConnect|Auto connect slots]] | ||
* [[Qt/ToolbarIcons|Toolbar icons]] | * [[Qt/ToolbarIcons|Toolbar icons]] | ||
* [[Qt/Icons|Use icons without resources (QCommonStyle) - Old method]] | * [[Qt/Icons|Use icons without resources (QCommonStyle) - Old method]] | ||
Line 33: | Line 37: | ||
== Model/View == | == Model/View == | ||
* [[Qt/ModelView/QAbstractTableModel|QAbstractTableModel]] | * [[Qt/ModelView/QAbstractTableModel|QAbstractTableModel]] | ||
+ | * [[Qt/ModelView/ComboBoxOfCheckBoxes|ComboBox of CheckBoxes (QStandardItemModel, QStandardItem)]] | ||
+ | * [[Qt/ModelView/StringListModelCheckable|A StringListModel with checkboxes]] | ||
+ | * [[Qt/ModelView/StandardItemModel|A StandardItemModel 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/ListViewComboBox|A persistent ComboBox on a list view]] | ||
+ | * [[Qt/ModelView/ItemSelectionModel|Track selected items in a model]] | ||
+ | |||
+ | * [[Qt/ModelView/AbstractTableModelCheckable|A table with checkboxes]] | ||
== Utilities == | == Utilities == | ||
Line 38: | Line 51: | ||
* [[Qt/Utilities/StatusBar|Status bar]] | * [[Qt/Utilities/StatusBar|Status bar]] | ||
* [[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/EventFilter|Handle another widgets event]] | ||
+ | * [[Qt/Utilities/Settings|Save application settings]] | ||
== Other == | == Other == | ||
Line 46: | Line 62: | ||
* [[Qt/Images/MovingAPixmap|Move a pixmap in a QGraphicsView]] | * [[Qt/Images/MovingAPixmap|Move a pixmap in a QGraphicsView]] | ||
+ | |||
+ | * [[Qt/Images/SemiTransparentPixels|Make pixels semi-transparent]] | ||
+ | |||
+ | * [[Qt/Images/RubberBand|Use a QRubberBand to indicate a selected region in an image]] | ||
+ | |||
+ | * [[Qt/Images/RubberBandSignal|Customize QGraphicsView to monitor the RubberBand behavior]] | ||
+ | |||
+ | == Delegates == | ||
+ | * [[Qt/Delegates/ComboBoxDelegate|A combobox in a TableView]] | ||
+ | |||
+ | == Databases == | ||
+ | * [[Qt/Databases/ListView|A ListView of a table column]] | ||
+ | |||
+ | == QWT == | ||
+ | * [[Qt/QWT/Plot|Simple plot]] | ||
+ | |||
+ | == Events == | ||
+ | * [[Qt/Events/Resize|Resize a graphics item when the form is resized]] |
Latest revision as of 11:30, 21 September 2012
Contents
Building
See this guide to get started: http://www.itk.org/Wiki/CMake/Tutorials/Qt
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
- Save application settings