aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols/filesystemexplorer/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quickcontrols/filesystemexplorer/main.py')
-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()