consider this a minute.
In the previous version, you wrote
dialog
->setGeometry
(QStyle::alignedRect(Qt
::LeftToRight, Qt
::AlignCenter, dialog
->size
(), qApp
->desktop
()->availableGeometry
()));
dialog->setGeometry(QStyle::alignedRect(Qt::LeftToRight, Qt::AlignCenter, dialog->size(), qApp->desktop()->availableGeometry()));
To copy to clipboard, switch view to plain text mode
then, you want to change QDialog's size. So, as lykurg said, you replace dialog->size() by the QSize you want.
now, what is the QSize you choose ?
88
88 is not a QSize
Q.E.D.
Bookmarks