Menu

lack of setChecked(bool) method for QGroupBox widget

Anonymous
2021-02-24
2021-03-01
  • Anonymous

    Anonymous - 2021-02-24

    Hi szieke,

    I develop some app that has many checkable groupboxes which act as "channels" for my app.

    Checked/Unchecked groupbox acts as enable/disable certain channel.

    Due to number of that channels I would like to add button to check/uncheck all groupboxes at the same time, but i see that there is no method to check/uncheck groupbox from the code. In documentation for QT (https://doc.qt.io/qt-5/qgroupbox.html) there is a method for that.

    Could you add it in new release?

    Many thanks in advance!
    Adam

     
  • Stefan Zieker

    Stefan Zieker - 2021-02-25

    Hi Adam,

    I have uploaded a prerelease (Files/Test) that contains setChecked, isChecked and checkBoxClickedSignal. Here is an example:

    function groupBoxCheckBoxClickedSlot(checked)
    {
          UI_testTextEdit.append("groupBoxCheckBoxClickedSlot: " + checked)
        //Do something.
    }
    //Toggle the group box checkbox.
    UI_checkableGroupBox.setChecked(!UI_checkableGroupBox.isChecked();
    

    Regards,
    Stefan

     
  • Anonymous

    Anonymous - 2021-03-01

    Hi Stefan,

    wow! That was fast! I though that I can visit forum after longer time, but I see that project is very active all the time :)

    Thank you very much!
    Adam

     

Anonymous
Anonymous

Add attachments
Cancel