Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
5.8.0, 5.9.1
-
None
-
macOS
Description
When using a file path icon from QtDesigner (ie, not a qrc resource nor a theme name), this produce wrong file path on macOS.
For some reason, QtDesigner try to translate the file path relative to something (the app ?) instead of keeping the file path absolute and this relative file path is wrong.
It seems it forget to prepend 3 cd up (coming from the macOS bundle).
Original filepath:
/Users/pasnox/Pictures/Avatars/minitel.png - works
QtDesigner filepath:
../../../../../Users/pasnox/Pictures/Avatars/minitel.png - does not works
Manually fixed filepath:
../../../../../../../../Users/pasnox/Pictures/Avatars/minitel.png - works
The uic generated code:
QIcon icon;
icon.addFile(QStringLiteral("../../../../../Users/pasnox/Pictures/Avatars/minitel.png"), QSize(), QIcon::Normal, QIcon::Off);
setWindowIcon(icon);