Sheet style dialog with Qt
05 October 2019
Sheet style is a nice feature on macOS, to achieve it in Qt, all you need are following statements.
QMessageBox *msgBox = new QMessageBox(parent);
msgBox->setWindowFlags(Qt::Sheet);
msgBox->setText("sheet style");
msgBox->show();
Note:
parentandQt::Sheetare two mandatory conditions.msgBox-> exec();also works, with the same effect
What does it look like?

blog comments powered by Disqus