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. QProcess works with pictures?
Forum Updated to NodeBB v4.3 + New Features

QProcess works with pictures?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 454 Views 1 Watching
  • 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.
  • RIVOPICOR Offline
    RIVOPICOR Offline
    RIVOPICO
    wrote on last edited by A Former User
    #1

    I think qprocess only works when for example one example run one executable. But with pictures will work for example to open one picture? I think not but not sure?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      No, QProcess works ONLY with "exe" files. Something that is runnable.
      A picture is not.

      To open a picture using the default program for that, one can call
      http://doc.qt.io/qt-5/qdesktopservices.html

      QDesktopServices::openUrl(QUrl("file:///home/XX/fileName.png"))
      
      1 Reply Last reply
      4

      • Login

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