Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.13.2, 5.15.2
-
None
-
macOS 10.13+
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 .