This is how I build the class:
CustomMessageBox customMessageBox(..., parent, Qt::Dialog);
customMessageBox.setWindowModality(Qt::ApplicationModal);
customMessageBox.exec();
CustomMessageBox customMessageBox(..., parent, Qt::Dialog);
customMessageBox.setWindowModality(Qt::ApplicationModal);
customMessageBox.exec();
To copy to clipboard, switch view to plain text mode
and the constructor is:
CustomMessageBox
::CustomMessageBox(...,
QWidget *parent, Qt
::WindowFlags f
) : QDialog(parent, f
) { this->resize(...);
this->move(...);
this->setWindowFlags(Qt::FramelessWindowHint);
this->setAttribute(Qt::WA_TranslucentBackground, true);
// ...
}
CustomMessageBox::CustomMessageBox(..., QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f) {
this->resize(...);
this->move(...);
this->setWindowFlags(Qt::FramelessWindowHint);
this->setAttribute(Qt::WA_TranslucentBackground, true);
// ...
}
To copy to clipboard, switch view to plain text mode
The ... stands for some other instructions, such as creating some buttons, pixmaps etc...
The class inherits QDialog, I defined it as:
class CustomMessageBox
: public QDialog { // ...
}
class CustomMessageBox : public QDialog {
// ...
}
To copy to clipboard, switch view to plain text mode
Any idea what I'm doing wrong? (I'm working under Windows CE)
Thanks!
Bookmarks