aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-03-04 09:03:40 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-03-04 11:16:23 +0100
commitd985296478c053202e41999bcb1826cf055652b1 (patch)
treeb7ba7c3348c840c47489352303f22aba604f47e9 /examples
parent31fac9b035594c12d75ac7ece4aab304ba4c135e (diff)
filesystemexplorer example: Remove import PySide6
This is bad practice which slows down the application startup. Task-number: PYSIDE-2576 Task-number: QTBUG-119785 Pick-to: 6.6 Change-Id: I761bceab9c2a3071a9a63c347df08c75fffec84f Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/quickcontrols/filesystemexplorer/main.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/quickcontrols/filesystemexplorer/main.py b/examples/quickcontrols/filesystemexplorer/main.py
index edbd1640f..1477023e9 100644
--- a/examples/quickcontrols/filesystemexplorer/main.py
+++ b/examples/quickcontrols/filesystemexplorer/main.py
@@ -11,10 +11,9 @@ This example shows how to customize Qt Quick Controls by implementing a simple f
# import FileSystemModule.rc_app
from editormodels import FileSystemModel # noqa: F401
-import PySide6
from PySide6.QtGui import QGuiApplication, QIcon
from PySide6.QtQml import QQmlApplicationEngine
-from PySide6.QtCore import QCommandLineParser
+from PySide6.QtCore import QCommandLineParser, qVersion
import sys
@@ -22,7 +21,7 @@ if __name__ == '__main__':
app = QGuiApplication(sys.argv)
app.setOrganizationName("QtProject")
app.setApplicationName("File System Explorer")
- app.setApplicationVersion(PySide6.__version__)
+ app.setApplicationVersion(qVersion())
app.setWindowIcon(QIcon("FileSystemModule/icons/app_icon.svg"))
parser = QCommandLineParser()