Archa4
14th March 2011, 08:06
I tried to do a simple thing:
painter->drawText(rect, Qt::AlignTop && Qt::AlignRight, str);
painter->drawLine(rect.topLeft(), rect.bottomRight());
painter->drawText(rect, Qt::AlignBottom, "ASD");
But it didn't work...
The top line get's aligned only top, but not top + right.
How can i get it to align top + right?
I think it has something to do with flags, but i could not confirm that idea.
painter->drawText(rect, Qt::AlignTop && Qt::AlignRight, str);
painter->drawLine(rect.topLeft(), rect.bottomRight());
painter->drawText(rect, Qt::AlignBottom, "ASD");
But it didn't work...
The top line get's aligned only top, but not top + right.
How can i get it to align top + right?
I think it has something to do with flags, but i could not confirm that idea.