Difference between revisions of "Qt"
From ProgrammingExamples
Daviddoria (Talk | contribs) |
Daviddoria (Talk | contribs) (→Building) |
||
(33 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 == | ||
+ | * [[Qt/AutoConnect|Auto connect slots]] | ||
+ | * [[Qt/ToolbarIcons|Toolbar icons]] | ||
+ | * [[Qt/Icons|Use icons without resources (QCommonStyle) - Old method]] | ||
* [[Qt/Toolbar|Display a toolbar (also an example of resources)]] | * [[Qt/Toolbar|Display a toolbar (also an example of resources)]] | ||
* [[Qt/Dialog|Display a dialog]] | * [[Qt/Dialog|Display a dialog]] | ||
Line 9: | Line 16: | ||
* [[Qt/Widgets/ProgressBar|Progress bar widget]] | * [[Qt/Widgets/ProgressBar|Progress bar widget]] | ||
* [[Qt/Widgets/ProgressBarMarquee|Progress bar marquee widget]] | * [[Qt/Widgets/ProgressBarMarquee|Progress bar marquee widget]] | ||
+ | * [[Qt/Widgets/ProgressThreaded|Display a progress bar while a long operation is being processed]] | ||
* [[Qt/Widgets/Slider|Slider widget]] | * [[Qt/Widgets/Slider|Slider widget]] | ||
* [[Qt/Widgets/FileDialog|File dialog]] | * [[Qt/Widgets/FileDialog|File dialog]] | ||
+ | * [[Qt/Widgets/FileDialogDefaultSuffix|File dialog - append a specified suffix if one is not provided]] | ||
* [[Qt/Widgets/RadioButton|Radio button widget]] | * [[Qt/Widgets/RadioButton|Radio button widget]] | ||
* [[Qt/Widgets/Timer|Timer]] | * [[Qt/Widgets/Timer|Timer]] | ||
Line 18: | Line 27: | ||
* [[Qt/Widgets/QWidgetSubclass|QWidget subclass in a cpp file]] | * [[Qt/Widgets/QWidgetSubclass|QWidget subclass in a cpp file]] | ||
* [[Qt/File|Operations on files (exist, etc)]] | * [[Qt/File|Operations on files (exist, etc)]] | ||
− | * [[Qt/FileInfo|Information about a file (basename, path, etc)]] | + | * [[Qt/FileInfo|Information about a file (basename, path, extension, etc)]] |
* [[Qt/Widgets/FileMenu|File menu]] | * [[Qt/Widgets/FileMenu|File menu]] | ||
* [[Qt/Widgets/WidgetInsideMainWindow|Display a widget inside a main window]] | * [[Qt/Widgets/WidgetInsideMainWindow|Display a widget inside a main window]] | ||
Line 25: | Line 34: | ||
* [[Qt/Widgets/LineEdit|LineEdit widget - a text box]] | * [[Qt/Widgets/LineEdit|LineEdit widget - a text box]] | ||
* [[Qt/Widgets/Label|Label]] | * [[Qt/Widgets/Label|Label]] | ||
+ | |||
+ | == Model/View == | ||
+ | * [[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 == | ||
* [[Qt/Widgets/Time|Get the system time]] | * [[Qt/Widgets/Time|Get the system time]] | ||
+ | * [[Qt/Utilities/StatusBar|Status bar]] | ||
+ | * [[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 == | ||
* [[Qt/Boost|Using Qt with Boost]] | * [[Qt/Boost|Using Qt with Boost]] | ||
+ | |||
+ | == Images == | ||
+ | * [[Qt/Images/Pixmap|QPixmap]] | ||
+ | |||
+ | * [[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