[SOLVED]QPushButton click signal with QStringListModel
I'm trying to create sth like in the picture:
The boxes are ListViews and the buttons QPushButtons
Right now I have a QStringListModel that allows me to create the different buttons with their texts, and automatically adds the scroll bar to the listview. the problem I have with this, is that i don't now how to enable/disble the different buttons of the right box when one or another buttons is clicked.
I have tried to add the buttons to a qbuttongroup but they stop showing.
Maybe i'm not using the irght model or sth but i'm really stuck and would appreciate any help.
Thank you in advance!
I think I found the answer. When I create my buttons I add them to a group, and the with the buttonClick(QAbstractButton *) signal I get that there was a button clciked and im allowed to enable buttons from other listviews based on their ids
If I change anything ill post it here :-)
Hi and welcome to devnet,
Nice you found a solution and thanks for sharing.
Can you also please update your thread title prepending [solved] so other forum users may know a solution has been found :)