Results 1 to 4 of 4

Thread: static buttons

  1. #1

    Lightbulb static buttons

    Hi all;

    When I click the button it goes down. How can I create a static button, I mean when I click on that it stays motionless?

    Thanks in advance

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: static buttons


  3. #3

    Default Re: static buttons

    Thanks for reply.
    Have already tried that but when I click there is still an effect of going down.

  4. #4
    Join Date
    Jun 2010
    Location
    Salatiga, Indonesia
    Posts
    160
    Thanks
    11
    Thanked 32 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    1

    Default Re: static buttons

    Maybe, you can subclass QLabel and reimplement mousePressEvent().

Similar Threads

  1. Static Qt with static CRT (VS 2008)
    By JacekFx in forum Installation and Deployment
    Replies: 5
    Last Post: 15th June 2010, 13:57
  2. Buttons
    By valy12 in forum Qt Programming
    Replies: 8
    Last Post: 19th April 2010, 12:16
  3. Replies: 22
    Last Post: 8th October 2008, 13:54
  4. Several buttons
    By Mariane in forum Newbie
    Replies: 4
    Last Post: 15th March 2006, 20:50
  5. Replies: 4
    Last Post: 14th February 2006, 21:35

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.