PDA

View Full Version : Getting palletForegroundColor of QTableItem



lawrence
25th April 2007, 15:33
Hi,

Using paint method, each item of a table is filled with different foreground colors. I want to get the foreground color of each item. How to achieve?

Regards,
Lawrence

thawkins
25th April 2007, 18:37
Can you be a bit more specific? Do you have code of what you are currently doing? The items in the table, are they just text? Are you referring to QTableView of QTableWidget?

lawrence
25th April 2007, 21:10
I am testing an application with automated test tool. The application has a QTable. The items in the table are text. The text are written in the table using paint method. I have to get the foreground color of the QTableItem. Please suggest me the code in Qt 3...

Regards,
Lawrence