Ok, but what exactly is the problem?
BTW. Take a look at QUrl::fromLocalFile()
Ok, but what exactly is the problem?
BTW. Take a look at QUrl::fromLocalFile()
the problem is that when I pushed the button no file has shown.
i have get it!
but is any function in qt to open a pdf without havin installing into my software the adobe reader?
I dont think so.. though I guess there are 3rd party libraries to do that
Qt is not shipped with a pdf viewer, so to view pdf files:
you can embed adobe ActiveX control in your app,
or fires up the adobe reader ,
or use some third parties libraries (Poppler is the most known).
Last edited by toutarrive; 12th March 2010 at 09:41.
ok, i will try with poppler.
one question more please! Nowadays I want to see the .pdf into a text edit but problems occured. why? i have written this comand:
ui.textEdit->desk.openUrl(QUrl("a.pdf"));
thanks
This is not even a proper C++ syntax... And even if it was, you can't expect an application framework to do everything you could imagine it would be good to have. You can't place PDF files into QTextEdit. Please launch Qt Assistant, type in "QDesktopServices" in the index tab and read the description of what the class does.
you are right! i cannot use it-
Bookmarks