Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1459

Standalone wheels do not pick qt.conf from the application bundle location

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.13.2, 5.15.2
    • PySide
    • None
    • macOS 10.13+
    • macOS

    Description

      The Qt documentation specifies three possible locations for a qt.conf file:

      (1) - :/qt/etc/qt.conf using the resource system
      (2) - on macOS, in the Resource directory inside the application bundle, for example assistant.app/Contents/Resources/qt.conf
      (3) - in the directory containing the application executable, i.e. QCoreApplication::applicationDirPath() + QDir::separator() + "qt.conf"

      Unfortunately, when creating an application bundle using the standalone wheels of PySIde2, the location (2) is ignored. The only workaround to this issue is to put a copy of the qt.conf file in the location (3), meaning in the Bundle.app/Contents/MacOS/ folder, slightly messing up with the bundle specification.

      Interestingly, when creating the bundle with a non-standalone version of the wheels (either manually built or built from Homebrew), the standard location (2) correctly works. That's because the detection is performed on the Qt side (see here).

      I suspect this detection mechanism is somewhat altered in the standalone wheels, possibly by this change: https://codereview.qt-project.org/c/pyside/pyside-setup/+/226543 .

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            alby128 Alberto Sottile
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes