qt:mainwindow-buildicon
This is an old revision of the document!
void MainWindow::buildIcon(QIcon* const theIcon, QString const &iconRscTemplate, QList const &sizeList) { QString theResource; // used to expand the iconRscTemplate for each entry in sizeList foreach (const int iconSize in sizeList) { // replace %size% in iconRscTemplate << iconSize << "x" << iconSize // TODO theIcon->addFile(theResource, QSize(iconSize, iconSize)) } }
qt/mainwindow-buildicon.1305204203.txt.gz · Last modified: 2011/05/12 12:43 by mithat