Results 1 to 1 of 1

Thread: Possible bug . I can select treeitems by code and selectionmode = singleselection

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Possible bug . I can select treeitems by code and selectionmode = singleselection

    I'm sure. I can select by code more than 1 items and the treeWidget has singleselection mode ????

    Qt Code:
    1. ui->treeWidget->topLevelItem(0)->setSelected(true);
    2. ui->treeWidget->topLevelItem(1)->setSelected(true);
    3. ...
    To copy to clipboard, switch view to plain text mode 
    Is it a bug ?
    I have to clear selection every time I select some item....
    Last edited by tonnot; 14th September 2011 at 14:38.

Similar Threads

  1. Replies: 5
    Last Post: 18th January 2012, 08:25
  2. can't select item in a QTreeWidget via code
    By zack in forum Qt Programming
    Replies: 1
    Last Post: 14th July 2009, 20:31
  3. Calendar widget with selectionMode != SingleSelection
    By Tamara in forum Qt Programming
    Replies: 2
    Last Post: 28th September 2007, 10:13
  4. Pasting code from code tag in emacs
    By Gopala Krishna in forum General Discussion
    Replies: 0
    Last Post: 16th February 2007, 05:47
  5. Select None in QTableWidget
    By Rayven in forum Qt Programming
    Replies: 2
    Last Post: 9th June 2006, 14:10

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.