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. Get PID from QDesktopServices::openUrl
Forum Updated to NodeBB v4.3 + New Features

Get PID from QDesktopServices::openUrl

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 183 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.
  • G Offline
    G Offline
    GianniValenti_Alkeria
    wrote on last edited by
    #1

    Hello everybody,
    I was wandering if there is a way to open a URL like with QDesktopServices::openUrl and get a QProcess (or similar) object in order to kill it, if it's still alive, before closing the application.

    Thanks a lot,
    Gianni

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bonnie
      wrote on last edited by
      #2

      AFAIK, it is impossible to control the process opened by QDesktopServices::openUrl.
      I think your only approach is to find out the associated application by yourself, then use QProcess to execute it, with passing url as the argument.

      1 Reply Last reply
      3

      • Login

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