Results 1 to 6 of 6

Thread: Get Full Path Of TreeWidget

  1. #1
    Join Date
    Oct 2011
    Posts
    36
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Get Full Path Of TreeWidget

    I Use TreeWidget For Get Directory
    How I Get Full Path Of Tree Widget Child

    Thanks

  2. #2
    Join Date
    Oct 2011
    Posts
    36
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Get Full Path Of TreeWidget

    Please Help Me

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Get Full Path Of TreeWidget

    How do you populate the tree widget? You can use the user data to store additional informations.

  4. #4
    Join Date
    Oct 2011
    Posts
    36
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Get Full Path Of TreeWidget

    i Use TreeWidget For Dirctory Tree

    Example :

    C:\
    >D:\
    .>MyFolder
    .NewFolder

    i Want Get Path Of MyFolder
    Example:
    D:\MyFolder

    i not want use
    QString Path=Parent+Child

    i Not Want This code


    Thanks

  5. #5
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Get Full Path Of TreeWidget

    Quote Originally Posted by METEOR7 View Post
    i not want use
    QString Path=Parent+Child
    What's wrong with that?
    You can create a simple function which traverses the tree upwards and creates a path for you, I don't think that thtere's a out-of-a-box method to do that for you.

  6. #6
    Join Date
    Oct 2011
    Posts
    36
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Get Full Path Of TreeWidget

    this Soultion Not Enable on 5 Node
    I Tested That But Found Problem

    if You Work With C# I Want Method(FullPath) of Tree Node

    Thanks

Similar Threads

  1. Full path and filename of a Qt Plugin at runtime
    By be-noix in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2011, 15:38
  2. Replies: 2
    Last Post: 18th May 2010, 22:44
  3. Replies: 8
    Last Post: 17th October 2009, 08:10
  4. Replies: 2
    Last Post: 19th May 2009, 09:30
  5. OpenGL app at full speed? Can you do it?
    By mattropolis in forum Qt Programming
    Replies: 1
    Last Post: 18th October 2007, 10:54

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.