Results 1 to 2 of 2

Thread: [Qt 4.2] QTreeView: Text and branches not properly aligned

  1. #1
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question [Qt 4.2] QTreeView: Text and branches not properly aligned

    I just upgraded from Qt 4.0 to 4.2 today. When compiled and tried a simple app - a single QTreeView, nothing else - I noticed that the text was aligned to the top of the row instead of being aligned to center. Also the branch indicator wasn't aligned with the dotted line that connects it with the other indicators. They we're perfectly aligned in 4.0.

    I've attached a screenshot that shows what I mean.

    (User 'guilugi' had a problem with text aligment in QListWidget (in this thread), but these are probably not related.)

    I would like to know if anyone else has noticed the same thing, or is the problem in my setup.
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: [Qt 4.2] QTreeView: Text and branches not properly aligned

    I have Qt 4.2.1 and indeed the text isn't centered (even when you take into account letters like j or p) and the branch indicator is shifted one pixel to the left.

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.