December 21, 2010

syedasadalibs03 syedasadalib..
Lab Rat
24 posts

Problem in QDialog Full Screen with Exec() ?

 

i am using Qt for Symbain 4.6 and, i want to show the QDialog in Full screen through exec() because i want Modal Dialog

Thanks in Advance

9 replies

December 21, 2010

VCsala VCsala
Lab Rat
339 posts

Can you be more specific? What is your problem exactly? Maybe it is a good idea to show some code snippets related to the problem (do not forget to use ‘@’ tags for the codes)

December 21, 2010

Volker Volker
Ant Farmer
5428 posts

Try

  1.     QDialog *d = new QDialog(this);
  2.     d->setWindowState(d.windowState() | Qt::WindowMaximized);
  3.     d->exec();

December 21, 2010

Vass Vass
Ant Farmer
743 posts

Volker Qt::WindowMaximized != Qt::WindowFullScreen ;)

 Signature 


Vasiliy

December 21, 2010

Volker Volker
Ant Farmer
5428 posts

Vass, upps… right!

I leave the correct line as a puzzle for the audience ;-)

December 21, 2010

Immii Immii
Lab Rat
239 posts

calling slot showMaximized() should also do the job.

  1. QDialog *d = new QDialog(this);
  2. d->showMaximized()

[Edit: code markup fixed, Volker]

December 21, 2010

Gerolf Gerolf
Robot Herder
3253 posts

I think, we were at fullscreen, not maximized :-)

 Signature 

Nokia Certified Qt Specialist.
Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

December 21, 2010

QtK QtK
Lab Rat
1140 posts

syedasadalibs03 wrote:
i am using Qt for Symbain 4.6 and, i want to show the QDialog in Full screen through exec() because i want Modal Dialog

Thanks in Advance

By modal do you mean like Global Query Dialogs in Symbian

July 4, 2013

guru guru
Ant Farmer
61 posts

QDialog *newdialog;

newdialog = new QDialog(this);

newdialog->showfullscreen();

use above code..

July 13, 2013

Vittal Vittal
Lab Rat
48 posts
QDesktopWidget desk; QRect screenres = desk.screenGeometry(0); newDialog->setGeometry(QRect(screenres.x(),screenres.y(),screenres.width(),screenres.height()));

newDialog->show();

 
  ‹‹ [Closed] Modal QMainWindow ?      scroll bar of QListWidget ››

You must log in to post a reply. Not a member yet? Register here!