Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Learning #6

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Learning #6

wants to merge 7 commits into from

Conversation

clint456
Copy link

@clint456 clint456 commented Mar 13, 2024

       @QtCore.Slot(int)
        def test_slot(state: int) -> None:
            if state == Qt.Checked:
                print("复选框被选中了!")
            elif state == Qt.Unchecked:
                print("复选框被取消选中了!")
            elif state == Qt.PartiallyChecked:
                print("复选框被部分选中!")

这里需要添加.value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants