Results 1 to 3 of 3

Thread: Check and Uncheck on a Dir Tree?

  1. #1
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question Check and Uncheck on a Dir Tree?

    Hi All,

    I m using Qt 4.1.5 on my MAC.
    I have a little module in which I select the dir for which I have to make the Dir Tree and then add the hierarchical tree which include all the file and dir.

    now I want to check and uncheck the file and Dir in such a way that every parent of a child should have its check state according to its child check state.


    If any body knows then plz help me out.

    Thanks.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Check and Uncheck on a Dir Tree?

    Take a look at thread: QDirModel+QTreeView and checkable items. All you have to do is to implement the custom checkstate logic in MyDirModel::data() and/or MyDirModel::setData().
    J-P Nurmi

  3. #3
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question Re: Check and Uncheck on a Dir Tree?

    Actually I have no Idea about QDirModel and donot know how I can show the tree with this code.

    So plz explain me how I can combine this with my code and how I can do what I want.

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.