Results 1 to 6 of 6

Thread: QDialog with wordrap-activated Label: disfunctional Layout

  1. #1
    Join Date
    Jan 2006
    Location
    Frankfurt, Germany
    Posts
    34
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    3
    Thanked 2 Times in 2 Posts

    Default QDialog with wordrap-activated Label: disfunctional Layout

    Hallo,

    To reproduce: create a QDialog, for example in Qt Designer, and put a Wordwrap-activated label and a button below it, and set a vertical layout for the dialog. Set the label to some text that the text gets splitted into more than one line. (it's enough if it's long enough to be splitted before the dialog reaches it's minimum size in normal layout mode)
    If you then open preview mode, you'll notice that the dialog can be resized up to 0,0. This isn't normal behaviour - test it without wordwrap oder a short text in the label.

    I've tested this in Qt 4.3, 4.2.1 and 4.1.4. Is this a feature? Oo
    I really don't like this behaviour. I want my app to always respect the minimumSizeHints set - but also want to use the wordwrap on labels.

    btw: behaviour is the same in the real app - not just Qt Designer.

    thx,
    andre

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 541 Times in 521 Posts

    Default Re: QDialog with wordrap-activated Label: disfunctional Layout

    You most likely did something wrong...
    Take a look at the attached UI. I have tested it with Qt 4.2.2 and with Qt 4.3, and I haven't found any problems.

    Regards
    Attached Files Attached Files

  3. #3
    Join Date
    Jan 2006
    Location
    Frankfurt, Germany
    Posts
    34
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    3
    Thanked 2 Times in 2 Posts

    Default Re: QDialog with wordrap-activated Label: disfunctional Layout

    It's the same here with your dialog. I can resize it down to 8x24 (Windowmanager minimum).

    Which version are you using? On which OS did you test it?

    I'm using commercial Edition 4.3/4.2.1/4.1.4 with X11 (Linux). I'll test it with open source version and Windows later today.

  4. #4
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 541 Times in 521 Posts

    Default Re: QDialog with wordrap-activated Label: disfunctional Layout

    I tested with 4.3 and 4.2.2 commercial on Windows. It can get resized to a minimum width of 100 OR a min height of 100( but the entire text is visible ).

  5. #5
    Join Date
    Jan 2006
    Location
    Frankfurt, Germany
    Posts
    34
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    3
    Thanked 2 Times in 2 Posts

    Default Re: QDialog with wordrap-activated Label: disfunctional Layout

    On Open Source/Win everything's fine here. Can someone test this problem on Linux? Or is it just me

  6. #6
    Join Date
    Jan 2006
    Location
    Frankfurt, Germany
    Posts
    34
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    3
    Thanked 2 Times in 2 Posts

    Default Re: QDialog with wordrap-activated Label: disfunctional Layout

    Please just try with Marcel's ui-file and Linux. I'll contact trolltech support and post the reply, if nobody can help me here.

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.