Results 1 to 5 of 5

Thread: Mainwindow size to be fixed as the size of the application Window

  1. #1
    Join Date
    Oct 2007
    Posts
    201
    Thanks
    19
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Mainwindow size to be fixed as the size of the application Window

    HI All
    I need my application window size to be fixed as the desktop screen size. How to do it?
    Last edited by phillip_Qt; 20th November 2009 at 11:23. Reason: correction
    Cheers,
    Phillip



    --- Please post the solution you got to solve your problem. It may help others.

  2. #2
    Join Date
    Apr 2007
    Location
    Sunny Darwin, NT Australia
    Posts
    186
    Thanks
    29
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Mainwindow size to be fixed as the size of the application Window

    window.showMaximized();
    BUT be aware it doesn't work on all platforms.

  3. #3
    Join Date
    Oct 2007
    Posts
    201
    Thanks
    19
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Mainwindow size to be fixed as the size of the application Window

    Quote Originally Posted by vieraci View Post
    window.showMaximized();
    BUT be aware it doesn't work on all platforms.
    I did like that only,. But if u doubleclick on main window toolbar mainwindow position is changing. I need It to be shown in fixed position always.
    Cheers,
    Phillip



    --- Please post the solution you got to solve your problem. It may help others.

  4. #4
    Join Date
    Apr 2007
    Location
    Sunny Darwin, NT Australia
    Posts
    186
    Thanks
    29
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Mainwindow size to be fixed as the size of the application Window

    Quote Originally Posted by phillip_Qt View Post
    I did like that only,. But if u doubleclick on main window toolbar mainwindow position is changing. I need It to be shown in fixed position always.
    What about intercept the double click event and stop it escalating up the event chain ?

  5. #5
    Join Date
    Oct 2007
    Posts
    201
    Thanks
    19
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Mainwindow size to be fixed as the size of the application Window

    Quote Originally Posted by vieraci View Post
    What about intercept the double click event and stop it escalating up the event chain ?
    Thank u for reply. But can u plz tell me how to do it.
    Cheers,
    Phillip



    --- Please post the solution you got to solve your problem. It may help others.

Similar Threads

  1. Replies: 3
    Last Post: 4th September 2009, 13:49
  2. Replies: 2
    Last Post: 19th November 2008, 10:01
  3. Resize Widget To Desktop Size
    By fruzzo in forum Qt Programming
    Replies: 6
    Last Post: 2nd October 2008, 16:29
  4. Replies: 2
    Last Post: 22nd September 2008, 10:22
  5. Qt Designer - Fixed size main form
    By nleverin in forum Newbie
    Replies: 3
    Last Post: 25th April 2008, 20:54

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.