Pdf viewer using QDesktopServices
-
Hi,
bq. You don’t have any desktop environment that handles file/program association so how should Qt know what to launch ?
I dint understand your sentence. Can you tell me little details about that?
bq. Also since you are using QWS, if you had any program able to read your pdf it should also be built to use QWS.
While building Qt source what should I include so that I can get the pdf view?
-
Desktop Environment: KDE, Gnome, LXDE etc…
The file type/program association is not something that is automagical, your desktop environment has settings where this information is stored so when you double click on a document/media/whatever it opens one application. QDesktopEnvironment uses these services when available.For viewing PDFs, you need to use an external library like poppler
-
Yes I have Gnome Desktop environment.
When I double click on the document, it opens with application also. Still when I run the application that statement pops up. -
Not on your target, otherwise you wouldn't be using QWS
-
On my target itself I have gnome running.
When I double click on the pdf it opens using evince application. -
Then if your target is running Gnome, why do you use Qt for Embedded Linux ?
-
I want to run a Qt application, that opens pdf while I am running the application.
-
That point is clear. My question is why don't you use a standard Qt, since you already have Gnome running on your target ?
-
I don't want Qt to be installed on the target, so I have used Qt for embedded linux.
-
Qt for Embedded Linux doesn't mean it won't get installed. It means that you can use Qt without a display server like Xorg
-
Yes I understood that.
But I need to open a pdf how do I do that? -
Have a look at poppler