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. How to handle the Mac OS X Open, Open with command or double clicking on a file with Qt
Forum Updated to NodeBB v4.3 + New Features

How to handle the Mac OS X Open, Open with command or double clicking on a file with Qt

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

    I have a Qt application for the Mac which loads it's own data file. I cannot get the file information when the Open or Open With command is invoked for this file or when the file is double clicked. My application runs but I don't see the name or path of the file to be opened.

    Were does one get this on the Mac. Or what must I do to be able to open the file in my application.

    Any help would be very much appreciated.
    Thanks.

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

      Hi,

      You have to look at QFileOpenEvent

      For that to work you must also setup your plist file following this

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kenchan
        wrote on last edited by
        #3

        Thank you for your help. I will take a look at that.

        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