Results 1 to 3 of 3

Thread: Custom made widget - advanced button

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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 made widget - advanced button

    You're going in the rigth direction.
    I personally wouldn't go for QML. I would create a custom widget.

    You need to implement the paint event to do some custom drawing.
    You can call the style to draw the standard parts, like bordes.

    As for updating at 100Hz: does this mean updating the text on the widget 100 times per second?
    If so, think about what you're doing. The visual processor in my head can't deal with that amount of updates per second. Neither can any other normal person.
    So it would be a big waste of processing power if you update a widget 100 times per second. I don't say anything about data collection though.

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

    KjellKod (10th November 2010)

  3. #2
    Join Date
    Jan 2006
    Location
    Scandinavia
    Posts
    62
    Thanks
    5
    Thanked 2 Times in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Custom made widget - advanced button

    Thanks tbscope. Of course it's the data collection that is updated with 100Hz. The visual update of the text, data values on the button will be much less frequent. I guess I penned down the question a little too fast ;-)

Similar Threads

  1. Custom widget: a button within a button
    By Gnurou in forum Qt Programming
    Replies: 7
    Last Post: 18th June 2009, 09:03
  2. Replies: 3
    Last Post: 26th November 2007, 18:01
  3. custom slider question (very advanced)
    By MarkoSan in forum Qt Programming
    Replies: 17
    Last Post: 21st November 2007, 08:19
  4. How to get correct header with custom made widgets?
    By Arthur in forum Qt Programming
    Replies: 3
    Last Post: 26th April 2007, 17:07

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.