Hello, I want to display a QDialog which only takes a part of my screen... But if I don't set the window flags to Qt::Tool ... it will always shows Full Screen, not matter what... Am I missing something ? Regards, Paul
This is actually part of a bigger problem : QDialog > always open full screen => so setWindowFlags(Qt::Tool) but windows with Qt::Tool flag seems to be non modal : it can loose focus if the mouse is pressed somewhere else... In order to workaround this problem I used to activateWindow() when the focus was lost but this function is not working anymore since 5.3 ...
Hi, Are you using .show() by any chance? If so, could you please try .showNormal() instead?? Cheers, Sent from my BlackBerry 10 smartphone. Original Message From: Thilloy Paul Sent: Freitag, 6. Juni 2014 10:57 To: general-qt Reply To: general-qt@community.qnx.com Subject: Re: QDialog always Full screen This is actually part of a bigger problem : QDialog > always open full screen => so setWindowFlags(Qt::Tool) but windows with Qt::Tool flag seems to be non modal : it can loose focus if the mouse is pressed somewhere else... In order to workaround this problem I used to activateWindow() when the focus was lost but this function is not working anymore since 5.3 ... _______________________________________________ Qt General http://community.qnx.com/sf/go/post110621 To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com
My Dialog is opened using exec() ...but I tried show, showNormal... nothing matters I even tried to set a maximum size . .. when I get the size with size() I got the correct size...but it doesn't match the one displayed on the screen
I'm moving this thread up as Qt 5.3 doesn't seem to correct the issue... I found a QTBUG : https://snusmumriken.qtproject.c.bitbit.net/browse/QTBUG-32433 which seems related... but was apparently fixed... My problem is a mix between those two because : - If I don't open the QDialog with the flags Qt::Tool set, my Dialog will be full screen - If I open with Qt::Tool, the Dialog isn't modal, it can loose focus with a mouse click.
I keep replying to myself as I'm still looking for a solution to my problem... I posted the Qt::Tool problem on the Qt Bug Tracker... I was replied to launch my app with -qpa qnx:nofullscreen option to force it to be non full screen, but no result so far still the same issue. Anybody is able to open QDialog which are not fullscreen ?
As discussed on the Qt bug tracker all windows, will open in full screen by default, not matter what. This happens on the window level in QPA. Your quote for the related QPA option is not correct: a dash is missing. It should be "-qpa qnx :no-fullscreen"
So to be correct and clear.... my app is named MyScreen I should so start my app with > MyScreen -qpa qnx:nofullscreen then this option set, shouldn't all dialogs opened not in fullscreen mode ?
The correct start command is: MyScreen -qpa qnx:no-fullscreen (watch "nofullscreen" vs. "no-fullscreen")
Oh my bad, sorry, but yes I was using the correct command: MyScreen -qpa qnx:no-fullscreen Still...it is opening full screen...
As the solution was found in the Qt Bug Tracker thread I post it here also: the option is -platform qnx:no-fullscreen Then all windows will be opened normal by default (even main window). If you want FullScreen, then use showFullscreen