Results 1 to 2 of 2

Thread: make QTableView work as a multi-column list view

  1. #1
    Join Date
    Feb 2008
    Posts
    49
    Thanks
    2
    Thanked 4 Times in 1 Post

    Question make QTableView work as a multi-column list view

    Hello,guys,
    I am going to subclass QTableView and make it work as a multiColumn list view, may be a item delegate need.

    I used setSelectionBehavior(QAbstractItemView::SelectRows ) to make all columns of one row show focus.

    But now, I have a problem with QTableView, how can I draw a cursor bar image on the current row?
    QTableView does not like QTreeView that has a virtual protected interface named draw() which we can reimplement to paint something before drawing the columns of row.

    QTableView call its item delegate to draw each cell directly, how can I draw a cursor bar image for current row?

    any idea is welcome.! ^_^

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: make QTableView work as a multi-column list view

    What do you mean by a "cursor bar image"?

Similar Threads

  1. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 06:57

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.