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. Make button background visible on click
QtWS25 Last Chance

Make button background visible on click

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 3 Posters 982 Views
  • 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 Offline
    M Offline
    morker
    wrote on last edited by
    #1

    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
    0
    • J Offline
      J Offline
      jsprenkle
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Rolias
        wrote on last edited by
        #3

        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
        0

        • Login

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