Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - QDialog always Full screen: (11 Items)
   
QDialog always Full screen  
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
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 ...
Re: QDialog always Full screen  
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
Re: QDialog always Full screen  
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
Re: QDialog always Full 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.
Re: QDialog always Full screen  
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 ?
Re: QDialog always Full screen  
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" 
Re: QDialog always Full screen  
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 ?
Re: QDialog always Full screen  
The correct start command is:

MyScreen -qpa qnx:no-fullscreen

(watch "nofullscreen" vs. "no-fullscreen")
Re: QDialog always Full screen  
Oh my bad, sorry, but yes I was using the correct command: MyScreen -qpa qnx:no-fullscreen

Still...it is opening full screen...
Re: QDialog always 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