Hello ,
I am new to Qt creator and i want to know how to open a file located in the string variable "path" ?
Thank you.
Hello ,
I am new to Qt creator and i want to know how to open a file located in the string variable "path" ?
Thank you.
Did you try the documentation?
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
gooooooood i found it) , QUrl("path") .
Your definition of "open a file" and mine are very different. Creating a URL doesn't do anything to the file. Have a look at QFile if you want to read the files contents in your program, or QDesktopServices::openUrl() if you want to launch whatever application would normally handle the file.
coooool, it wooooorks, finally.. this function even opens web pages.. thank you
Bookmarks