qt:toward_robust_icon_support
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
qt:toward_robust_icon_support [2018/08/03 19:40] – [Icons and Actions] mithat | qt:toward_robust_icon_support [2018/08/03 19:46] (current) – mithat | ||
---|---|---|---|
Line 11: | Line 11: | ||
In Qt, there are (at least) five different approaches to binding icons((http:// | In Qt, there are (at least) five different approaches to binding icons((http:// | ||
- | ==== Using Qt Resources in Qt Designer ==== | + | ==== Option 1: Use Qt Resources in Qt Designer ==== |
The path-of-least-resistance for binding icons to actions when developing Qt applications with Qt Designer((Throughout, | The path-of-least-resistance for binding icons to actions when developing Qt applications with Qt Designer((Throughout, | ||
Line 42: | Line 42: | ||
* Not consistent with system icon theme | * Not consistent with system icon theme | ||
- | ==== Explicitly build and bind icons at runtime ==== | + | ==== Option 2: Explicitly build and bind icons at runtime ==== |
It's possible to build '' | It's possible to build '' | ||
Line 113: | Line 113: | ||
* Requires lots of coding | * Requires lots of coding | ||
- | ==== QStyle' | + | ==== Option 3: QStyle' |
An alternative to using icon resources is provided by the '' | An alternative to using icon resources is provided by the '' | ||
Line 145: | Line 145: | ||
* Limited range of icons | * Limited range of icons | ||
- | ==== System | + | ==== Option 4: Use the system |
On X11 systems, Qt lets you access all the icons that are part of the system icon theme using the static function '' | On X11 systems, Qt lets you access all the icons that are part of the system icon theme using the static function '' | ||
Line 210: | Line 210: | ||
QIcon:: | QIcon:: | ||
- | ==== Custom | + | ==== Option 5: Use a custom |
The static function '' | The static function '' |
qt/toward_robust_icon_support.1533325242.txt.gz · Last modified: 2018/08/03 19:40 by mithat