hi
I need to add a image to the table column header. When user sorts data based on particular column...i want to show a image on the sorted column.
And also want to know how to increase the cell size in a table.
Regards
Nagesh
hi
I need to add a image to the table column header. When user sorts data based on particular column...i want to show a image on the sorted column.
And also want to know how to increase the cell size in a table.
Regards
Nagesh
to display image you can simply use Label
You also can style the sort indicator using a style sheet and the QHeaderView ::up-arrow, and ::down-arrow sub-controls.
tableWidget1->setStyleSheet(QString::fromUtf8("QHeaderView::sec tion\n"
"{\n"
"border-image: url(:/new/prefix1/timebar11.PNG);\n"
"}"));
//tableWidget1->setHorizontalHeaderItem(0, new QTableWidgetItem("Text", QTableWidgetItem::UserType));
Bookmarks