Results 1 to 4 of 4

Thread: setFixedSize

  1. #1
    Join Date
    Jan 2006
    Posts
    273
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    42
    Thanked 1 Time in 1 Post

    Unhappy setFixedSize

    Hello,

    QT: 3.4
    Compiler: MINGW
    OS: WINXP


    I want to show my MainWIndow and set a Fixed size, so that nobody are able to make it bigger or smaller

    i tried this:

    Qt Code:
    1. w.setFixedSize(621,647);
    To copy to clipboard, switch view to plain text mode 

    The Size is correct, but i am able to change the size with the mouse
    Think DigitalGasoline

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,374
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: setFixedSize

    Set ResizeMode property to Fixed.

  3. #3
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows
    Thanks
    9
    Thanked 27 Times in 27 Posts

    Default Re: setFixedSize

    Quote Originally Posted by wysota
    Set ResizeMode property to Fixed.
    for what?
    QMainWindow doesnt have this property
    a life without programming is like an empty bottle

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,374
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: setFixedSize

    Quote Originally Posted by zlatko
    QMainWindow doesnt have this property
    QLayout does.

Similar Threads

  1. Docking widgets setFixedSize and setBaseSize Problem
    By forrestfsu in forum Qt Programming
    Replies: 2
    Last Post: 16th October 2006, 19:20

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
  •  
Qt is a trademark of The Qt Company.