Results 1 to 3 of 3

Thread: TableWidget selection colr is always active

  1. #1
    Join Date
    Jul 2009
    Posts
    36
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default TableWidget selection colr is always active

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: TableWidget selection colr is always active

    I do not understand the question. What is the difference between selected and active?
    It's nice to be important but it's more important to be nice.

  3. #3
    Join Date
    Jul 2009
    Posts
    36
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: TableWidget selection colr is always active

    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.

Similar Threads

  1. Problem with Painter in Qt4.4.1
    By merry in forum Qt Programming
    Replies: 1
    Last Post: 1st September 2008, 13:47

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.