【问题标题】:Opening files from Finder with a Qt-based application?使用基于 Qt 的应用程序从 Finder 打开文件?
【发布时间】:2011-03-27 22:45:36
【问题描述】:

显然,对于 Cocoa 应用程序,您应该实现 [[NSApp delegate] application:openFile:] 或类似的东西,以允许您的应用程序在 Finder 中双击打开文件。

您如何使用 Qt 实现此功能,因为要打开的文件的名称未在命令行中传递?

【问题讨论】:

    标签: c++ macos qt finder


    【解决方案1】:

    QFileOpenEvent (Qt4/Qt5) 应该可以解决问题。

    另见https://doc.qt.io/archives/qq/qq18-macfeatures.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-10
      相关资源
      最近更新 更多