developerUIT
21st March 2014, 11:56
Hi All,
I have problem with QTreeWidget.
I have added a label or Button into QTreeWidget by:
QLabel *status = new QLabel("<a href=\"" + QString::number(count) + "\"><img src=\":/images/status.png\" align=\"right\"></a>");
status->setTextFormat(Qt::RichText);
QTreeWidgetItem *statusItem = item;
ui->listMyPortals->setItemWidget(statusItem ,3 , status);
And seems like it always on right. I want to alignment it become to center of cell.
I hope somebody can help me.
Thanks
I have problem with QTreeWidget.
I have added a label or Button into QTreeWidget by:
QLabel *status = new QLabel("<a href=\"" + QString::number(count) + "\"><img src=\":/images/status.png\" align=\"right\"></a>");
status->setTextFormat(Qt::RichText);
QTreeWidgetItem *statusItem = item;
ui->listMyPortals->setItemWidget(statusItem ,3 , status);
And seems like it always on right. I want to alignment it become to center of cell.
I hope somebody can help me.
Thanks