Can I use action to tie 2 buttons?



  • I have two buttons in a toolbar, one shows image and the other shows text associated with that image so both essentially respond to one item. Now they both needs to hidden if the value they represent is zero.

    I know actions are typically used for menu and toolbar buttons but can actions be used in this case? Could you show me how can I tied the two items below to an action so when action is say disabled, these buttons both disappear?

    @Text {
    id: thingText
    }

    Image {
    id: thingImage
    }@


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.