Results 1 to 4 of 4

Thread: QTableWidget QTableWidgetItem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: QTableWidget QTableWidgetItem

    Quote Originally Posted by TheKedge
    There is no colour change to be seen. I can colour any other item in the table this way, but not those from the headers. What do I need to do?
    You must either override
    QHeaderView::paintSection()or
    use a custom style and implement:
    QStyle::drawControl(QStyle::CE_Header)
    Another thing...
    the signal QTableWidget::itemDoubleClicked ( QTableWidgetItem * /*item*/ )
    gets called on double click on any cell, except those in the headers.
    QHeaderView::sectionDoubleClicked()

    PS. Headers are accessible through QTableView::horizontalHeader() and QTableView::verticalHeader()
    J-P Nurmi

  2. The following user says thank you to jpn for this useful post:

    TheKedge (6th September 2006)

Similar Threads

  1. QTableWidget Update - slow
    By DPinLV in forum Qt Programming
    Replies: 16
    Last Post: 18th August 2006, 21:09
  2. Problem inserting in QTableWidget
    By DPinLV in forum Qt Programming
    Replies: 2
    Last Post: 2nd August 2006, 00:10
  3. QTableView versus QTableWidget
    By jcr in forum Qt Programming
    Replies: 2
    Last Post: 24th May 2006, 19:51
  4. Replies: 6
    Last Post: 5th March 2006, 21:05
  5. QTableWidget -> QDockWidget,
    By ogre in forum Qt Programming
    Replies: 3
    Last Post: 26th January 2006, 06:51

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
  •  
Qt is a trademark of The Qt Company.