Originally posted by Docko412
Okay
here's my problem i have a list view program which shows all the files in a directory,
how would i make it so when i click on the file it will open?
You must login or register to view this content.
like that say i double clicked that or just clicked it once whatever. how would i get it to open that picture or whatever.
any help would be appreciated.
What do you mean getting it to open?
If you wanted to load it with the default application, you can execute
start (or
open on OS X). Failing that, I believe Qt does have support for opening files, see here:
You must login or register to view this content..
Of course, if you wanted to load the file into your own application, you could just store the file path and then open it with the appropriate control.