Page 3 of 3 FirstFirst 123
Results 41 to 42 of 42

Thread: Hover and Highlight QTable and QTree Items

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

    Default Re: Hover and Highlight QTable and QTree Items

    If you change the code that does the selection then yes. I only selected a single index.

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

    VireX (18th May 2007)

  3. #42
    Join Date
    Jan 2007
    Posts
    209
    Thanks
    34
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Hover and Highlight QTable and QTree Items

    /*Hmm I almost have it working but I have to use
    view->selectionModel()->select(index.sibling(index.row(), 0), QItemSelectionModel::Select);
    view->selectionModel()->select(index.sibling(index.row(), 1), QItemSelectionModel::Select);
    view->selectionModel()->select(index.sibling(index.row(), 2), QItemSelectionModel::Select);*/
    Nvm, I think I got it to work now. Thanks for your help .
    Last edited by VireX; 18th May 2007 at 22:07.

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.