Quote:
Originally Posted by tuxor
Most important questions:
- How do we get the dialog window to be shown nicely every time it's executed?
- How do we get the focus for our QMessageBox?
- How can we dramatically ameliorate the performance?
|
1. I think you need to update screen in case of QEvent::WindowActivate and probably GC waveform should be used in this case. Or you may override exec() method like it is done in the Onyx MessageDialog:
Code:
show();
onyx::screen::instance().flush();
onyx::screen::instance().updateWidgetRegion(
0,
outbounding(parentWidget()),
onyx::screen::ScreenProxy::GC,
false,
onyx::screen::ScreenCommand::WAIT_ALL);
return QMessageBox::exec();
2. I'm not sure how does it work in this case would it get the focus if you will make .oar script and execute it from the menu?
3. The screen update will be faster if only black and white colors will be used so as the first step you may restyle the controls to use black and white colors using setStyleSheet() method of Qapplication or some specific widget.