Results 1 to 3 of 3

Thread: QPushButton with blinking boundary

  1. #1
    Join Date
    Aug 2012
    Posts
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt/Embedded

    Default QPushButton with blinking boundary

    Hi all,

    this is my first post in this forum.
    I need to setup a button which changes its background color depending on some application parameters and has a boundary that blinks when pressed.
    At this moment I put the button inside a QFrame a little bit larger than the button so, the application tells the button to change its background in certain situations and when the button is pressed the Qframe background blinks thanks to a timer. The effect I want to create is that only the larger part of the Frame should be visible during the blink making a sort of boundary to identify the pressed button.
    The problem is that the Qframe background color covers the button when blinks, I suppose because the button has autofillbackground property setted.

    Which is the best way to solve this problem? (Also solutions different from mine..)

    Any help is appreciated, thanks.

    Giovanni

  2. #2
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Thanks
    29
    Thanked 50 Times in 47 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QPushButton with blinking boundary

    Use stylesheet for changing the background and the border of the QPushButton.
    Heavy Metal Rules. For those about to rock, we salute you.
    HIT THANKS IF I HELPED.

  3. #3
    Join Date
    Aug 2012
    Posts
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt/Embedded

    Default Re: QPushButton with blinking boundary

    Using this solution it works.

    thanks

    Giovanni

Similar Threads

  1. Blinking Buttons
    By metdos in forum Newbie
    Replies: 7
    Last Post: 22nd July 2009, 16:36
  2. Blinking/Flickering Image
    By soumyadeep_pan in forum Qt Programming
    Replies: 1
    Last Post: 23rd March 2009, 15:38
  3. qt4 with light blinking on device
    By khcbabu in forum Qt Programming
    Replies: 1
    Last Post: 9th March 2009, 16:52
  4. Blinking QGraphicsItem
    By arjunasd in forum Qt Programming
    Replies: 1
    Last Post: 1st September 2007, 02:33
  5. widget blinking at task bar
    By lawrence in forum Qt Programming
    Replies: 1
    Last Post: 19th January 2007, 12:30

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.