Results 1 to 13 of 13

Thread: How to handle QTableView's behaviour

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10
    Join Date
    Feb 2008
    Posts
    491
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11
    Thanks
    12
    Thanked 142 Times in 135 Posts

    Default Re: How to handle QTableView's behaviour

    In paint() try:
    Qt Code:
    1. QColor color = index.data().value<QColor>();
    To copy to clipboard, switch view to plain text mode 

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

    alitoh (13th May 2011)

Similar Threads

  1. [QTableView] Custom selection behaviour
    By Rid in forum Qt Programming
    Replies: 3
    Last Post: 27th April 2012, 07:17
  2. QLineEdit behaviour
    By zgulser in forum Qt Programming
    Replies: 0
    Last Post: 9th July 2010, 14:37
  3. Handle KeyRelease or KeyPress on any row in QTableView
    By AbuYusuf in forum Qt Programming
    Replies: 2
    Last Post: 11th February 2010, 20:04
  4. Different behaviour of QApplication!!
    By Raajesh in forum Qt Programming
    Replies: 2
    Last Post: 30th June 2008, 17:00
  5. [Qt 4.1] Strange behaviour with QTableView
    By fane in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2006, 06:17

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.