Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Can I use action to tie 2 buttons?
Forum Updated to NodeBB v4.3 + New Features

Can I use action to tie 2 buttons?

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 472 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    xalam
    wrote on last edited by
    #1

    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
    }@

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved