View Full Version : TableWidget selection colr is always active
sosanjay
28th November 2009, 09:40
Hi,
I am working in QTableWidget and I want to active the selected row always.
I want to disable the Inactive mode in pallette . Something like this but its not correct.
ui->tableWidget->palette().highlight()
can anyone help me regarding this problem.
axeljaeger
28th November 2009, 13:04
I do not understand the question. What is the difference between selected and active?
sosanjay
30th November 2009, 06:00
I am displaying 100 rows data in TableWidget and I will do so many action according to selected row data.
Like If i Select a row and press a button then the color of the row is changed similarly if I select a row and delete button is press then particular row is deleted.
My problem is that when I press color change button then row color is changed but at that time when I press delete button it will not delete the row.
In tablewidget there is a property Palette through which you can customized the color display.In Palette there are three state i.e. Active, Inactive and disabled.
When I select a color change button then it will be changed the color and Highlight color(row selection color) will go in disabled state. So I want to Enable this Highlight properties.
I think you can understand the question and if any query please send.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.