Results 1 to 2 of 2

Thread: How to set the border for QTableWidgetItem located inside the QTableWidget

  1. #1
    Join Date
    Oct 2009
    Posts
    66
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Question How to set the border for QTableWidgetItem located inside the QTableWidget

    Hi,
    I am using a QTableWidget and accessing the table details using the QTableWidgetItem class. I want to highlight the border of the selected area (like in excel sheet) for single or multiple selections. How this can can be achieved ???


    thanks,
    sudhish kapoor.

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to set the border for QTableWidgetItem located inside the QTableWidget

    you can use two options:
    1. write a delegate
    2. use QSS, there is an example in Qt Assistant how to customize QTableView.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

Similar Threads

  1. Replies: 2
    Last Post: 5th June 2008, 21:32
  2. QComboBox inside QTableWidget
    By campana in forum Qt Programming
    Replies: 7
    Last Post: 20th March 2006, 17:22

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.