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