Results 1 to 6 of 6

Thread: Hiding taskbar and occupy entire Desktop

  1. #1
    Join Date
    May 2008
    Posts
    16
    Thanks
    5
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Hiding taskbar and occupy entire Desktop

    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.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Hiding taskbar and occupy entire Desktop

    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    jimc1200 (30th January 2009)

  4. #3
    Join Date
    May 2008
    Posts
    16
    Thanks
    5
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Hiding taskbar and occupy entire Desktop

    Quote Originally Posted by jpn View Post
    Thanks JPN!

  5. #4
    Join Date
    Jan 2009
    Posts
    78
    Thanks
    21
    Thanked 1 Time in 1 Post

    Default Re: Hiding taskbar and occupy entire Desktop

    Reading this thread i experimented this code:
    Qt Code:
    1. #include <QApplication>
    2. #include <QLineEdit>
    3.  
    4. #include "Dialog.h"
    5.  
    6. int main(int argc, char *argv[]){
    7. QApplication app(argc, argv);
    8. QLineEdit x("zxc");
    9. x.showFullScreen();
    10. Dialog *dialog = new Dialog;
    11. dialog->showFullScreen();
    12. return app.exec();
    13. }
    To copy to clipboard, switch view to plain text mode 

    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?

  6. #5
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Hiding taskbar and occupy entire Desktop

    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?
    J-P Nurmi

  7. #6
    Join Date
    Jan 2009
    Posts
    78
    Thanks
    21
    Thanked 1 Time in 1 Post

    Default Re: Hiding taskbar and occupy entire Desktop

    It's just a question ... but i get the Dialog idea

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.