Qdialog trouble with change show size
-
Hi
What about setGeometry ?You might need to call
http://doc.qt.io/qt-5/qwidget.html#showNormal
since it last was in maxi mode. -
@mrjj hi. Set geometry don't help, because trouble in Maximized mode, yep.
showNormal don't help too(
"setGeometryDp: Unable to set geometry 640x480+0+23 on QWidgetWindow/'briefWindow'. Resulting geometry: 1680x987+0+23 (frame: 8, 31, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 93x93, maximum size: 16777215x16777215)."
only showMinimized (and showmaxi) don't call it's message, but it's not cool -
@mrjj i can say more:
"instr->showMinimized();
instr->showNormal();"
Not maximize mode:
window creat minimized and expanded in the normal state
After maximize mode:
window creat minimized and expanded in the maximize state (like in picture), but without error message. -
but after
ShowNormal, it should allow you to set the size ? -
@mrjj if you mean
"instr->showNormal();
instr->resize(640, 480);"
it's worked, thank you.
But call this message again:
"setGeometryDp: Unable to set geometry 1680x987+8+31 on QWidgetWindow/'briefWindow'. Resulting geometry: 1680x987+0+23 (frame: 8, 31, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 240x240, maximum size: 16777215x16777215)."