Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-109229

Document that QCoreApplication::libraryPaths() also looks in darwin app bundle Contents/PlugIns directory

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • None
    • None
    • None
    • macOS

    Description

      https://doc.qt.io/qt-6/qcoreapplication.html#libraryPaths

      The documentation for QCoreApplication::libraryPaths() states that it considers the executable dir, the $qt_prefix/plugins dir, the QT_PLUGIN_PATH env var, and the qt.conf file.

      It does not mention that it also considers a mac / ios bundle's PlugIns dir
      as implemented at https://codereview.qt-project.org/c/qt/qtbase/+/149771
      fcfe2a5f67f0045e8ed606f60330df5e24cf03b2

      We should document that in all the relevant places, at least in these 2 locations

      https://doc.qt.io/qt-6/qcoreapplication.html#addLibraryPath
      https://doc.qt.io/qt-6/qcoreapplication.html#libraryPaths

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            alexandru.croitor Alexandru Croitor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes