Results 1 to 4 of 4

Thread: Strange resize behavior

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Strange resize behavior

    You can always try to play with the minimumSize property.

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

    Default Re: Strange resize behavior

    Quote Originally Posted by e8johan View Post
    You can always try to play with the minimumSize property.
    The problem is QPushButton has a minimumSizeHint of 40x25, so it should never shrink to 0 with sizePolicy set to Minimum or Fixed. This is really weird and I can't find a way to fix it. I have seen such things before but not in Qt4.

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Strange resize behavior

    Quote Originally Posted by e8johan View Post
    You can always try to play with the minimumSize property.
    yes, with minimumSize I can handel this, but I want, that the user can decided which font size should be used, and for that minimumSize is not optimal...

    But I just recognized, that this behavier could have to do with my QFrames. If I delete the QFrame on the bottom, and put the Buttons and the spacer in an Layout, than I can't shirk the Widget smaler than the buttons. I cant test it here in all ways, but I really guess that the problem must be in the two QFrames (top and bottem). I will have a look on it later that day.


    Lykurg

Similar Threads

  1. scrollbars strange behavior
    By siniy in forum Qt Programming
    Replies: 6
    Last Post: 29th December 2006, 10:27
  2. very strange behaviour
    By regix in forum Qt Programming
    Replies: 23
    Last Post: 20th July 2006, 17:38
  3. Unable to resize a QCanvas.
    By yellowmat in forum Newbie
    Replies: 2
    Last Post: 21st June 2006, 12:52
  4. QComboBox +SUSE10.0 +qt4.1 strange behavior
    By antonio.r.tome in forum Qt Programming
    Replies: 6
    Last Post: 20th March 2006, 17:49
  5. postponing resize event
    By Honestmath in forum Qt Programming
    Replies: 11
    Last Post: 26th February 2006, 00:32

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.