QStateMachine in PyQt6?

Phil Thompson phil at riverbankcomputing.com
Fri May 3 08:16:03 BST 2024


On 02/05/2024 22:21, Damon Lynch wrote:
> Hi Phil,
> 
> Unless I'm missing something obvious, QStateMachine was dropped in the
> transition from PyQt5 to PyQt6. Was this deliberate?

No. It was because Qt6 moved it out of QtCore into its own library.

> Maybe not a coincidence: I can't find a single Python code block on 
> GitHub
> that uses  QStateMachine, apart from the sources for PyQt and  PySide 
> that
> developers have uploaded into their repositories.
> 
> Is this a sign that QStateMachine is used exclusively by complex GUI
> applications, which are primarily written in C++, or are proprietary? 
> Or is
> QStateMachine not used much in those domains either? I have no idea.
> Probably Qt consultants to proprietary application developers would 
> know.

You are the first person who has mentioned it so my guess is that there 
is no demand for it.

Phil


More information about the PyQt mailing list