4444
4545from PySide6 .QtWidgets import QApplication , QSplashScreen # type: ignore
4646
47- from PySide6 .QtCore import QCoreApplication , QLoggingCategory , QObject , QUrl , QThread , QTimer , Slot , Signal , Qt , QLocale
47+ from PySide6 .QtCore import QLoggingCategory , QObject , QUrl , QThread , QTimer , Slot , Signal , Qt , QLocale
4848from PySide6 import QtCharts # pylint: disable=unused-import
4949
50- from PySide6 import QtQml
50+ from PySide6 import QtQml , QtCore
5151
5252from PySide6 .QtGui import QFontDatabase , QIcon , QPixmap
5353
@@ -771,7 +771,7 @@ def main(passed_args: Optional[Tuple[str, ...]] = None) -> int:
771771 found_help_arg = True
772772 args_main , _ = parser .parse_known_args (passed_args )
773773 if args_main .no_high_dpi :
774- QCoreApplication .setAttribute (Qt .AA_Use96Dpi ) # type: ignore
774+ QtCore . QCoreApplication .setAttribute (Qt .AA_Use96Dpi ) # type: ignore
775775 if args_main .qmldebug :
776776 sys .argv .append ("-qmljsdebugger=port:10002,block" )
777777 debug = QQmlDebuggingEnabler () # pylint: disable=unused-variable
@@ -780,8 +780,8 @@ def main(passed_args: Optional[Tuple[str, ...]] = None) -> int:
780780 # Silence webengine context logging.
781781 web_engine_context_log = QLoggingCategory ("qt.webenginecontext" ) # type: ignore
782782 web_engine_context_log .setFilterRules ("*.info=false" )
783- QCoreApplication .setAttribute (Qt .ApplicationAttribute .AA_ShareOpenGLContexts )
784- QCoreApplication .setAttribute (Qt .ApplicationAttribute .AA_UseDesktopOpenGL )
783+ QtCore . QCoreApplication .setAttribute (QtCore . Qt .ApplicationAttribute .AA_ShareOpenGLContexts )
784+ QtCore . QCoreApplication .setAttribute (QtCore . Qt .ApplicationAttribute .AA_UseDesktopOpenGL )
785785 QtWebEngineQuick .initialize ()
786786 app = QApplication (sys .argv )
787787 app .setWindowIcon (QIcon (":/images/icon.ico" ))
0 commit comments