from PySide6.QtWidgets import QWidget

from ui.custom_message_box import CustomMessageBox


def show_qt_error(parent: QWidget | None, title: str, message: str) -> None:
    msg = CustomMessageBox(
        title=title,
        message=message,
        icon_type=CustomMessageBox.WARNING,
        buttons=CustomMessageBox.OK,
        parent=parent,
    )
    msg.exec()
