Results 1 to 3 of 3

Thread: custom image dial and switch

  1. #1
    Join Date
    Oct 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default custom image dial and switch

    I'm planning on using my own .jpg images for an on/off switch and a dial that can select around 10 different numbers. Can anyone hint at the best way to go about doing this?

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: custom image dial and switch

    A QWidget subclass with a custom paint event.

  3. #3
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Thanks
    10
    Thanked 31 Times in 25 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: custom image dial and switch

    You can look at the source of these for hints :
    - QSwitch
    - QDisplay

    Regards,
    Marc

Similar Threads

  1. Can I set image for qwt dial
    By validator in forum Qwt
    Replies: 3
    Last Post: 17th December 2010, 06:20
  2. Replies: 2
    Last Post: 14th March 2008, 12:38
  3. How can I draw needle for dial in Qwt
    By validator in forum Qwt
    Replies: 6
    Last Post: 3rd February 2008, 20:27
  4. image for a custom menu Item.......
    By Naveen in forum Qt Programming
    Replies: 2
    Last Post: 23rd February 2006, 09:28
  5. Can I launch a dial-up connection in Windows?
    By gtthang in forum Qt Programming
    Replies: 3
    Last Post: 9th February 2006, 12:32

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.