QStateMachine is missed on pyside6 Linux version
-
@All,
Used QStateMachine and related classes are not working at pyside6 linux version.
Below is my error messages after running example code " python eventtrans.py" under PySide6/examples/widgets/state-machine folder:Traceback (most recent call last): File "eventtrans.py", line 91, in <module> mainWin = MainWindow() File "eventtrans.py", line 52, in __init__ machine = QStateMachine(self) NameError: name 'QStateMachine' is not defined
Another functions is work fine. e.g. show main window of pyside6.
My OS: Ubuntu 20.04
Python: 3.8.6 with virtual environmentHas any suggestion?
-
Hi and welcome to devnet,
How are you importing that class in your code ?
-
@Roger-Huang As I see in the comments of https://www.qt.io/blog/add-on-support-in-qt-6.0-and-beyond:
Maurice Kalinowski[moderator]
The state machine framework has been moved to Qt ScXML, which again will be renamed to Qt State machine, as it incorporates both engines.
From above list, it will be part of 6.1.So probably when Qt ScXML is implemented in Qt 6.1 then it will be available in PySide6 6.1.0
-