Results 1 to 2 of 2

Thread: Question on checkable QStandardItem in QTreeView

  1. #1
    Join Date
    Jan 2009
    Posts
    47
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Question on checkable QStandardItem in QTreeView

    I have a QTreeView with QStandardItemModel model and QStandardItem nodes in which
    1) top level folder nodes are not checkable unless it contains one of more child node(s)
    2) child node is always checkable
    I try to connect signal/slot to the select/deselect user interaction on checkable node

    Qt Code:
    1. connect(model, SIGNAL(itemChanged(QStandardItem * item)), this, SLOT(myItemChanged(QStandardItem *item)));
    To copy to clipboard, switch view to plain text mode 
    where model is QStandardItemModel , this is MainWindow. My MainWindow::myItemChanged(...) is never called. Please help.
    TNG

  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: Question on checkable QStandardItem in QTreeView

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    ttvo (3rd April 2009)

Similar Threads

  1. Making QTreeView Items Checkable
    By JimDaniel in forum Qt Programming
    Replies: 4
    Last Post: 30th January 2020, 17:43
  2. Disable Checkable Button Question
    By jbpvr in forum Qt Programming
    Replies: 9
    Last Post: 20th March 2007, 18:57
  3. QTreeView and QDirModel Header Sort Question
    By jimroos in forum Qt Programming
    Replies: 1
    Last Post: 20th March 2007, 09:04
  4. Replies: 1
    Last Post: 15th March 2007, 21:45

Tags for this Thread

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.