PDA

View Full Version : Get Full Path Of TreeWidget



METEOR7
26th November 2011, 14:26
I Use TreeWidget For Get Directory
How I Get Full Path Of Tree Widget Child

Thanks

METEOR7
27th November 2011, 12:30
Please Help Me

Lykurg
27th November 2011, 15:14
How do you populate the tree widget? You can use the user data to store additional informations.

METEOR7
28th November 2011, 15:58
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

Spitfire
28th November 2011, 16:03
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.

METEOR7
28th November 2011, 16:48
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