Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Pressed Button
Qt 6.11 is out! See what's new in the release blog

Pressed Button

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 333 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.
  • jondoeJ Offline
    jondoeJ Offline
    jondoe
    wrote on last edited by
    #1

    Hello,
    I have 3 button " Games , Shop , News ". When I clicking to button " Games " this button will be white and others will be dark color. How can I do this ? I tried like pushButton:pressed but its working just when I clicking after click color again dark. I want will be white when I will click to other button than will be dark.

    For example
    http://prntscr.com/lgy3jb

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Try setting the background color when pressed & released. It should stay in that color. When you press the other button you need to reset the colors every appropriately.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      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