Results 1 to 2 of 2

Thread: QAxWidget

  1. #1
    Join Date
    May 2006
    Posts
    6
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default QAxWidget

    I'm using Qt4.1.4 and I want to know how to display PDF file inside QAxWidget,
    I didn't use ActiveQt yet ,
    can somebody help me ?

  2. #2
    Join Date
    Jun 2006
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QAxWidget

    I show you the simple example:

    QAxWidget* Widget = new QAxWidget(this);
    Widget->setControl(QString::fromUtf8("{8856F961-340A-11D0-A96B-00C04FD705A2}"));
    Widget->dynamicCall("Navigate(const QString&)", QString("http://qtcentre.org"));

    It opens Internet Explorer in the widget and navigates to http://qtcentre.org.
    (It is also the way to opening pdf, but it is ugly sollution )
    I never had to embed PDF Reader but you should change ID given in setControl() method to PDF Reader`s ID, and probably change the name of the method called via dynamicCall().
    I think this information are available on Adobe`s site, but I'm not sure.

Similar Threads

  1. QAxWidget Properties
    By ToddAtWSU in forum Newbie
    Replies: 1
    Last Post: 13th February 2006, 17:45
  2. QAxWidget
    By ToddAtWSU in forum Newbie
    Replies: 2
    Last Post: 3rd February 2006, 17:29

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.