dear all,
i have couple of questions
1)i have simple program tat loads icons form "images" directory(located in current directory) to 3X3 qtablewidget. code is given below. but when i run the program i cant see any icons on qtablewidget.
2) how do i set the iconsize
for (int r = 0; r < t.rowCount(); ++r)
{
for (int c = 0; c < t.columnCount(); ++c)
{
QTableWidgetItem* item = new QTableWidgetItem;
item->setBackgroundColor(Qt::black);
item->setIcon(QIcon(QPixmap(":/images/*.png")));
t.setItem(r, c, item);
}
}
i have included the snapshot of output i get to make things much clear
qt version= 4.7.0
thanks
regards
rashmi
Bookmarks