Modality of a QDialog doesn´t work when disabling all frame using the CustomizeWindowHint on setWindowFlags...
QDialog dialog(getMainW());
dialog.setObjectName("dialog");
dialog.setWindowFlags( Qt::CustomizeWindowHint );
dialog.setWindowModality(Qt::ApplicationModal);
When i comment the third line, it doesn´t work at all. I get focus on the rest. How can i make it work?
Or how to remove the buttons and frame without doing this?