Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. SOLVED: Need help launching external apps from qtdesktopplugin

SOLVED: Need help launching external apps from qtdesktopplugin

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 2.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gcolquhoun
    wrote on last edited by
    #1

    Platform: Win XP, Qt Creator 2.0.0, Qt 4.7.0 (32bit)

    I adding my own menu item to the grapher plugin example, to launch external applications.

    The following code works, starts up Notepad with the specified file loaded:

    QStringList args;
    args.append("d:/temp/readFileTest.txt");
    process.start("notepad", args, QIODevice::ReadWrite);
    

    When I change the start code line to:

    process.start("acrord32");
    

    I get a "Failed to start" process error. I have added the path to Adobe Reader into my PATH environment variable and can start the Reader from the command line using just "acrord32".

    Why does it fail to start? Any ideas, suggestions, comments?

    Thanks,
    Gordon

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gcolquhoun
      wrote on last edited by
      #2

      I just had a suggestion from a co-worker. He had to use short names in the paths in the make file, or he couldn't get examples to compile properly.

      So, I put the short name path in for Adobe Reader and it launched!

      The bottom line: Always use short names when specifying any directory or filenames to Qt.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved