PDA

View Full Version : [Qt 4.2] QTreeView: Text and branches not properly aligned



pxide
12th November 2006, 12:35
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 (http://www.qtcentre.org/forum/f-qt-programming-2/t-qlistwidget-qlistview-bug--4361.html)), 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.

jacek
12th November 2006, 16:56
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.