but i'm getting error while opening variable name...
Here instead of ":/input.txt", i want to specify a variable. Is that possible?Qt Code:
return;To copy to clipboard, switch view to plain text mode
but i'm getting error while opening variable name...
Here instead of ":/input.txt", i want to specify a variable. Is that possible?Qt Code:
return;To copy to clipboard, switch view to plain text mode
Last edited by aurora; 11th October 2011 at 10:17.
Did you read Wysota's example?
Check the Qt examples svgviewer and svggenerator, if you're using windows they are in
C:\QtSDK\Examples\4.7\painting\svgviewer
and
C:\QtSDK\Examples\4.7\painting\svggenerator
__________________________________________________
My projects: calculator MathGraphica ; SuperEpicMegaHero game ; GooglePlay ; bitbucket ; github
Like my projects ? Buy me a kofi
Maybe your real question is "how do I allow the user to choose a fle to open?"
If so, then the answer is use QFileDialog::getOpenFileName().
Qt Code:
To copy to clipboard, switch view to plain text mode
aurora (12th October 2011)
No....i want to open a file, that file name is entered by user without any path...and my program will search in specific directory.
Now i just confusing how can i read file name and search in directory?
This is also fine...but how can i select multiple files....it is just allowing me to select single file at one time
Last edited by aurora; 17th October 2011 at 06:02.
Did you read the friendly manual? QFileDialog::getOpenFileNames()
Bookmarks