SetTextAlignment has no effect with QListWidget items
-
@MyItem = new QListWidgetItem(QIcon(), "Testing");
MyItem->setTextAlignment(Qt::AlignHCenter);
this->GetListWidget()->addItem(MyItem);@"Testing" will always appear aligned to the left. why?
-
Please try to example code posted at this FAQ: "How can I align the text and icons in an itemview?":http://developer.qt.nokia.com/faq/answer/how_can_i_align_the_text_and_icons_in_an_itemview