Add square in table widget
Unsolved
General and Desktop
-
Hi guys,
I have a table widget with 3 rows and 5 columns and I wanna add in the first column of any row a simple green square.
I don t want add an external png, how I can do it?for (int j = 0; i < var.size(); ++j) ui->tableWidget->setItem(j, 0, new ??? );
-
Hi guys,
I have a table widget with 3 rows and 5 columns and I wanna add in the first column of any row a simple green square.
I don t want add an external png, how I can do it?for (int j = 0; i < var.size(); ++j) ui->tableWidget->setItem(j, 0, new ??? );
You generate QImage with setColor tranform with QPixmap::fromImage for instance.
-
You generate QImage with setColor tranform with QPixmap::fromImage for instance.