PDA

View Full Version : Hiding taskbar and occupy entire Desktop



jimc1200
30th January 2009, 22:22
Hi ,

Is there an way in QT 4 to hide the taskbar and have my application occupy the entire screen when maximized just like a Powerpoint presentation ?

Thanks.

jpn
30th January 2009, 22:32
Hi. See QWidget::showFullScreen().

jimc1200
30th January 2009, 22:38
Hi. See QWidget::showFullScreen().

Thanks JPN!

gt.beta2
31st January 2009, 16:23
Reading this thread i experimented this code:

#include <QApplication>
#include <QLineEdit>

#include "Dialog.h"

int main(int argc, char *argv[]){
QApplication app(argc, argv);
QLineEdit x("zxc");
x.showFullScreen();
Dialog *dialog = new Dialog;
dialog->showFullScreen();
return app.exec();
}

The x widget is maximized but the Dialog no.
I supose this is because the Dialog was created with QtDesigner and i must change it there?

jpn
31st January 2009, 16:26
QDialog is a window that should be decorated as a dialog (i.e., typically no maximize or minimize buttons in the title bar). Why did you design a dialog if you want to show it in full screen mode?

gt.beta2
31st January 2009, 16:42
It's just a question ... but i get the Dialog idea;)