qt:mainwindow-buildicon
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
qt:mainwindow-buildicon [2011/05/12 12:38] – mithat | qt:mainwindow-buildicon [2011/05/13 11:29] – mithat | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <code cpp-qt> | + | Something like this: |
- | void MainWindow:: | + | |
+ | <code cpp-qt | ||
+ | /** | ||
+ | * Append a regularly defined set of different sized icon images to a QIcon. | ||
+ | * | ||
+ | * The following usage example assumes the resources ": | ||
+ | * ": | ||
+ | * that we want to bundle them together into exitIcon. | ||
+ | * | ||
+ | * \code | ||
+ | | ||
+ | | ||
+ | | ||
+ | * \endcode | ||
+ | * | ||
+ | * Does NOT check whether the referenced resources actually exist. | ||
+ | * | ||
+ | * @return void | ||
+ | */ | ||
+ | void MainWindow:: | ||
+ | QString const & | ||
+ | QList< | ||
+ | | ||
{ | { | ||
- | | + | foreach (const int iconSize, sizeList) |
- | | + | |
{ | { | ||
- | | + | |
- | // TODO | + | theResource.replace(QString(" |
- | theIcon-> | + | |
+ | |||
+ | theIcon-> | ||
} | } | ||
}</ | }</ |
qt/mainwindow-buildicon.txt · Last modified: 2011/05/13 12:32 by mithat