Unsolved [Bug] Why QDialog display empty rarely.
-
@VRonin The phenomena is strange, in the empty status, although I couldn't see the controls(such as the switch button) but if I move mouse to the position of the button(it should be), all the controls will turn to display.
-
Just like the dialog doesn't call paint() automatically.
-
@jsulm Thanks.
I create the dialog in a Wdiget's constructor function like this.
{
……
mDialogBank = new DlgBank(this);
}//Click button display the dialog.
void Wgt_Tuning::on_btnBank_clicked()
{
//Display the dialog.
if (QDialog::Accepted == mDialogBank->exec()) {
}
} -
@brucezcg On which platform do you have this behaviour?
You also could try to run through debugger and check the stack trace when this happens. -
@jsulm Qt 5.12.3 mingw7 32bit.
This phenomena is never occur on my PC, It occurred on my college's PC rarely. -
@brucezcg What is the OS on that PC and graphics driver?
-
@jsulm Win10 & Intel HD Graphics 520
-
@brucezcg Try to update the graphics driver.
-
@jsulm But this is very rarely. most of the time the dialog display well.
-
@brucezcg
Hi
maybe a rare driver bug. :)In any case, if possible you should test if a new driver helps on your college's PC.
-
@mrjj Thanks for the reply, and I try to use QWidget instead of QDialog.
-
Maybe related to https://forum.qt.io/topic/107728/qscrollarea-causes-crash-on-close/4 ? Please try with 5.12.5