| 14 |
|
myWizard.setWindowIcon(QIcon(":/new/icons/package.png")); |
| 15 |
|
|
| 16 |
|
//Center and resize QWizard (http://www.thedazzlersinc.com/source/2012/06/04/qt-center-window-in-screen/) |
| 17 |
+ |
#ifdef Q_WS_WIN |
| 18 |
|
myWizard.resize(640,480); |
| 19 |
+ |
#else |
| 20 |
+ |
myWizard.resize(800,600); // Mac OS pcs should be able to render this resolution without any problem. It's also better |
| 21 |
+ |
// because the components on mac use more space |
| 22 |
+ |
#endif |
| 23 |
|
QRect position = myWizard.frameGeometry(); |
| 24 |
|
position.moveCenter(QDesktopWidget().availableGeometry().center()); |
| 25 |
|
myWizard.move(position.topLeft()); |