Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Make button background visible on click

    QML and Qt Quick
    3
    3
    801
    Loading More Posts
    • 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.
    • M
      morker last edited by

      Hi,

      how can I make the button background visible if the button is clicked and if the button is clicked agin or another button is clicked the button background is invisible? Like the behavior of a RadioButton...

      !http://fs1.directupload.net/images/141212/vt29q7wg.png(Button Background invisible)!

      !http://fs1.directupload.net/images/141212/hcb8gplt.png(Button clicked and background is visible)!

      1 Reply Last reply Reply Quote 0
      • J
        jsprenkle last edited by

        You might post the qml you've tried. A more specific question is easier to answer.

        1 Reply Last reply Reply Quote 0
        • R
          Rolias last edited by

          You could put the image in a rectangle and change the rectangle background color or you could use two images and just swap them. There would be lots of ways. Without more information it's hard to know what problem you're having and what you've already tried.

          Check out my third course in the trilogy on Qt
          "Integrating Qt Quick with C++"
          http://bit.ly/qtquickcpp
          published by Pluralsight

          1 Reply Last reply Reply Quote 0
          • First post
            Last post