Results 1 to 6 of 6

Thread: An example class for creating a custom-skinned QDial

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2011
    Posts
    27
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default An example class for creating a custom-skinned QDial

    I had to create a custom-skinned QDial (with custom dial and needle images) recently, and I couldn't find any complete examples of doing it. While it isn't the hardest thing in the world, I thought I'd post a complete example of a class to do this.

    This class also allows the QDial to be customized via Qt Style Sheets, and works well in Qt Designer (when a QDial widget is promoted to this class). This class has some limitations, but should be a good starting point for anyone who wants to do the same.

    The complete class is posted here: Customized QDial with QSS Support

    Hope this helps anyone working on the same.

  2. The following user says thank you to droneone for this useful post:

    prof.ebral (11th December 2012)

Similar Threads

  1. Replies: 7
    Last Post: 18th August 2011, 14:43
  2. Creating pointer to a Class
    By Archa4 in forum Newbie
    Replies: 16
    Last Post: 10th February 2011, 12:58
  3. Trouble with creating custom class
    By jstippey in forum Qt Programming
    Replies: 9
    Last Post: 12th January 2011, 14:08
  4. Stuck creating << and >> operators for my custom class.
    By agerlach in forum Qt Programming
    Replies: 12
    Last Post: 3rd January 2011, 21:44
  5. Trying to create custom QDial
    By dpatel in forum Newbie
    Replies: 3
    Last Post: 16th March 2010, 12:33

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
  •  
Qt is a trademark of The Qt Company.