44import argparse
55import json
66
7- from PySide2 import QtCore
8- from PySide2 .QtCore import Qt , QUrl , QJsonValue , qInstallMessageHandler , QtMsgType , QSettings
9- from PySide2 .QtGui import QIcon
10- from PySide2 .QtWidgets import QApplication
7+ from PySide6 import __version__ as PySideVersion
8+ from PySide6 import QtCore
9+ from PySide6 .QtCore import Qt , QUrl , QJsonValue , qInstallMessageHandler , QtMsgType , QSettings
10+ from PySide6 .QtGui import QIcon
11+ from PySide6 .QtWidgets import QApplication
1112
1213import meshroom
1314from meshroom .core import nodesDesc
@@ -188,7 +189,7 @@ class MeshroomApp(QApplication):
188189 def __init__ (self , args ):
189190 meshroom .core .initPipelines ()
190191
191- QtArgs = [args [0 ], '-style' , 'fusion ' ] + args [1 :] # force Fusion style by default
192+ QtArgs = [args [0 ], '-style' , 'Fusion ' ] + args [1 :] # force Fusion style by default
192193
193194 args = createMeshroomParser (args )
194195
@@ -202,8 +203,6 @@ def __init__(self, args):
202203 }
203204 logging .getLogger ().setLevel (logStringToPython [args .verbose ])
204205
205- QApplication .setAttribute (Qt .AA_EnableHighDpiScaling )
206-
207206 super (MeshroomApp , self ).__init__ (QtArgs )
208207
209208 self .setOrganizationName ('AliceVision' )
@@ -355,6 +354,7 @@ def _recentProjectFiles(self):
355354 p = {"path" : p , "thumbnail" : thumbnail }
356355 projects .append (p )
357356 settings .endArray ()
357+ settings .endGroup ()
358358 return projects
359359
360360 @Slot (str )
@@ -394,6 +394,7 @@ def addRecentProjectFile(self, projectFile):
394394 settings .setArrayIndex (i )
395395 settings .setValue ("filepath" , p )
396396 settings .endArray ()
397+ settings .endGroup ()
397398 settings .sync ()
398399
399400 self .recentProjectFilesChanged .emit ()
@@ -539,7 +540,8 @@ def _systemInfo(self):
539540 import sys
540541 return {
541542 'platform' : '{} {}' .format (platform .system (), platform .release ()),
542- 'python' : 'Python {}' .format (sys .version .split (" " )[0 ])
543+ 'python' : 'Python {}' .format (sys .version .split (" " )[0 ]),
544+ 'pyside' : 'PySide6 {}' .format (PySideVersion )
543545 }
544546
545547 systemInfo = Property (QJsonValue , _systemInfo , constant = True )
0 commit comments