Results 1 to 12 of 12

Thread: How to call WinWord.exe through the Qt program?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Posts
    33
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to call WinWord.exe through the Qt program?

    I am out of office for a few days, and I think read the windows registry may be is better, thank you , I will try!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to call WinWord.exe through the Qt program?

    Better than using QDesktopServices::openUrl()? I don't think so...
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to call WinWord.exe through the Qt program?

    Most certainly, openUrl should work on Windows, Mac & Linux, whereas registry approach is Windows specific.

    If you don't care your program is Windows specific, then can even use OLE:

    Variant MSWord;
    MSWord = CreateOleObject("Word.Basic");
    MSWord.Exec(Procedure("AppShow"));
    MSWord.Exec(Procedure("FileNew") << "Normal");
    MSWord.Exec(Procedure("Insert") << "Hello World!");

    This way uses an existing instance if available, or loads the application if it's not already running.

  4. #4

    Default Re: How to call WinWord.exe through the Qt program? [where is QCoreSettings?]

    Where can I find QCoreSettings? I have downloaded latest Qt open source and commercial versions (trial) but QCoreSettings is not there.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to call WinWord.exe through the Qt program? [where is QCoreSettings?]

    There is no such class in Qt. It's QSettings.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Segmentation Fault when Program Starts
    By KaptainKarl in forum Newbie
    Replies: 7
    Last Post: 10th September 2009, 08:43
  2. External Program Management with Qt
    By rapajic in forum Qt Programming
    Replies: 5
    Last Post: 7th April 2009, 09:52
  3. Eclipse Integration and program not starting
    By Cruz in forum Installation and Deployment
    Replies: 1
    Last Post: 16th January 2009, 22:32
  4. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 04:19
  5. call bash/terminal command with QT
    By myta212 in forum Newbie
    Replies: 1
    Last Post: 13th November 2006, 15:38

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
  •  
Qt is a trademark of The Qt Company.