Results 1 to 2 of 2

Thread: QTableView item's Highlight in QCombox

  1. #1
    Join Date
    Jun 2009
    Posts
    11
    Qt products
    Qt4
    Platforms
    Windows

    Default QTableView item's Highlight in QCombox

    Hello everyone!
    I ran into a problem, please help me.

    first i set currentindex (combox->setCurrentIndex(3)
    then i popup tableview ,the tableview's current index is corrected,and show Highlight,
    but when mouse move into tableview, the Highlight is change with mouse move,
    how can disable auto change Highlight ,and limited change Highlight only when mouse click?
    Last edited by litterflybug; 26th August 2009 at 10:58.

  2. #2
    Join Date
    Jun 2009
    Posts
    11
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTableView item's Highlight in QCombox

    i tried tableView->viewport()->setMouseTracking(false);
    this is worked

    but someone will notice that combox->setView(tableView);
    will call itemview->setMouseTracking(true);

    so usage:
    combox->setView(tableView);
    tableView->viewport()->setMouseTracking(false);

    thank

Similar Threads

  1. Replies: 2
    Last Post: 7th June 2009, 10:47
  2. Very high CPU usage with QTableView and MVC
    By montylee in forum Qt Programming
    Replies: 7
    Last Post: 24th March 2009, 06:14
  3. QTableView
    By dragon in forum Qt Programming
    Replies: 0
    Last Post: 22nd September 2008, 16:53
  4. make QTableView work as a multi-column list view
    By wesley in forum Qt Programming
    Replies: 1
    Last Post: 11th March 2008, 14:43
  5. Multi-line messages in QTableView
    By Conel in forum Qt Programming
    Replies: 6
    Last Post: 13th April 2006, 13:49

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.