Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. QStateMachine is missed on pyside6 Linux version

QStateMachine is missed on pyside6 Linux version

Scheduled Pinned Locked Moved Unsolved Qt for Python
4 Posts 3 Posters 702 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Roger Huang
    wrote on last edited by
    #1

    @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 environment

    Has any suggestion?

    eyllanescE 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      How are you importing that class in your code ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • R Roger Huang

        @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 environment

        Has any suggestion?

        eyllanescE Offline
        eyllanescE Offline
        eyllanesc
        wrote on last edited by eyllanesc
        #3

        @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

        If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

        R 1 Reply Last reply
        0
        • eyllanescE eyllanesc

          @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

          R Offline
          R Offline
          Roger Huang
          wrote on last edited by
          #4

          @eyllanesc

          Thanks your info.

          Yes, after upgrade to 6.1.0 the demo code can work correct.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved