I have been developing a GUI, and have run into an issue (or possible bug) with a QCheckBox
Adding a QCheckBox component to my form, compiling and running it has no issues.
Problem:
However when clicking on the checkbox, no visible feedback is displayed.
I added a listener for the clicked(bool) signal, used a the debug output to display the current state, which does change.
More Info:
Only 3 settings are changed on the checkbox:
-
Component Text
-
Component Name
-
Component Checkedstate : Checked.
I added another checkbox to the page, recopiled and ran it, without changing anything. Again, this new checkbox does not respond to changes.
Furthermore, I created a new project, added only a checkbox, compiled and ran it. Had no issues displaying the state change.
Must be an issue with my project.
Output of stateChanged(int) and clicked(bool) signals:
qDebug() output
QCHECKBOX STATE (stateChanged): "2"
QCHECKBOX STATE (clicked): "checked"
QCHECKBOX STATE (stateChanged): "0"
QCHECKBOX STATE (clicked): "unchecked"
QCHECKBOX STATE (stateChanged): "2"
QCHECKBOX STATE (clicked): "checked"
QCHECKBOX STATE (stateChanged): "0"
QCHECKBOX STATE (clicked): "unchecked"
p.s. if any additional project info is required, feel free to leave a comment
Aucun commentaire:
Enregistrer un commentaire