View Full Version : How to open any file on button click???
r3aktor
7th July 2009, 17:57
Hello, does anyone know how to open external file,
for example BAT file, with a given name, when I click the button?
Thanks
wysota
7th July 2009, 18:12
Hello, does anyone know how to open external file,
for example BAT file, with a given name, when I click the button?
Yes, we do.
Did you try anything already?
r3aktor
7th July 2009, 18:19
Yes, we do.
Did you try anything already?
I cant find anything similar in the docs, or google.
Im not asking for the whole source code, only for the command, or link
codeslicer
7th July 2009, 18:20
Try QDesktopServices::openUrl().
See http://www.qtcentre.org/forum/f-qt-programming-2/t-call-extern-app-adobe-acrobat-to-open-pdf-20542.html
r3aktor
7th July 2009, 19:03
Thanks:):):):)
qt_gotcha
8th July 2009, 09:54
check this:
http://www.qtforum.org/article/3079/howto-start-an-external-program-from-a-qt-application.html?d924c368
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.