-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.5.0
-
None
-
Windows 7, Kubuntu
For opening file or directory I should use prefix "file://" on Linux system, while on Windows that will not work. However, specifying path without prefix "file://" will work fine.
QML samples below.
Windows
Qt.openUrlExternally('C:/1.jpg'); Qt.openUrlExternally('C:/mydir');
Linux
Qt.openUrlExternally('file:///home/user/1.jpg'); Qt.openUrlExternally('file:///home/user');
Again: windows code snipped will NOT work on Linux, and vice versa. It's not convenient for cross-platform development.