penny
31st March 2011, 12:19
I have a QGraphicsView. I have plotted a series of text in it. However the text starts from the middle of the view and not from the top. Surprisingly, when i say open new file in my application, the text comes properly in place for the newly opened file. It is just the first time, that the text comes misaligned.
If i force the text to align on top by using steAlignment(Qt::AlignTop) then it comes aligned on top, but the vertical scroll bar gets disabled.
If i force the text to align on top by using steAlignment(Qt::AlignTop) then it comes aligned on top, but the vertical scroll bar gets disabled.