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] open file in its associated application (win / linux)
Forum Updated to NodeBB v4.3 + New Features

[solved] open file in its associated application (win / linux)

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 928 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.
  • C Offline
    C Offline
    ChanchoCiego
    wrote on last edited by
    #1

    as I can open a file in its associated application without knowing which application was associated that file?

    thank you very much,

    greetings,

    1 Reply Last reply
    0
    • CKurduC Offline
      CKurduC Offline
      CKurdu
      wrote on last edited by
      #2

      You can use QDesktopServices Class. You can learn more from "http://doc.qt.io/qt-5/qdesktopservices.html":http://doc.qt.io/qt-5/qdesktopservices.html
      You should look QDesktopServices::openUrl() method.

      You reap what you sow it

      1 Reply Last reply
      0
      • C Offline
        C Offline
        ChanchoCiego
        wrote on last edited by
        #3

        thank you very much CKurdu

        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