Skip to content

Missing QUndoStack import mapping (Qt5 QtWidgets vs Qt6 QtGui ) #490

@th3w1zard1

Description

@th3w1zard1

Have ran into an issue where I'm not getting expected imports from the expected module.

import qtpy
if qtpy.API_NAME in ("PyQt5", "PySide2"):
    from qtpy.QtWidgets import QUndoStack
elif qtpy.API_NAME in ("PyQt6", "PySide6"):
    from qtpy.QtGui import QUndoStack
else:
    raise ValueError(f"Invalid QT_API: '{qtpy.API_NAME}'")

is this something qtpy could explain/fix?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions