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
Forum Update on Monday, May 27th 2025

Make button background visible on click

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 3 Posters 986 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 12 Dec 2014, 14:06 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 12 Dec 2014, 16:57 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 12 Dec 2014, 22:16 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

        1/3

        12 Dec 2014, 14:06

        • Login

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