Solved QInputDialog warning?
-
Hi,
I use QInput dialog in below code:bool ok; QString grupAd = QInputDialog::getText(this, "Ana Grup Girişi?", "Ana Grup Adını Girin", QLineEdit::Normal,"", &ok); if (ok) { }
But application Output like belov. Why?..
QWindowsWindow::setGeometry: Unable to set geometry 120x30+604+286 (frame: 136x69+596+255) on QWidgetWindow/"QInputDialogClassWindow" on "\.\DISPLAY1". Resulting geometry: 220x90+604+286 (frame: 236x129+596+255) margins: 8, 31, 8, 8 minimum size: 220x90 maximum size: 524287x90 MINMAXINFO maxSize=0,0 maxpos=0,0 mintrack=236,129 maxtrack=524303,129)
Regards,
Mucip:) -
I can make that warning go away on windows by adding to the windows flags parameter:
... &ok, this->windowFlags() | Qt::MSWindowsFixedSizeDialogHint);
-
Hi,
What version of Qt ?
What OS ?
Likely Linux, if so:
-what distribution ?- what desktop environnement ?
- what window manager ?
-
Hi @SGaist ,
You're completely right. I'm very sorry...
I'm using Qt 5.13.2.
On win10 unfortunately :)Regards,
Mucip:) -
Virtual Machine ?
If not, what graphic hardware are you using ? -
Hi @SGaist ,
No. I'm programing now on laptop not wirtual machine.
GeForce 920M.Regards,
Mucip:) -
I can make that warning go away on windows by adding to the windows flags parameter:
... &ok, this->windowFlags() | Qt::MSWindowsFixedSizeDialogHint);
-
Hi @mranger90 ,
It worket for me. Thanks...Regards,
Mucip:) -
Unfortunately the flag Qt::MSWindowsFixedSizeDialogHint does not allow to change the dialog size in horizontal direction.
Is there any other possibility to get rid of this warning without adding the flag Qt::MSWindowsFixedSizeDialogHint?
Thanks for your continued help...