Results 1 to 3 of 3

Thread: really stupid/easy question on Widget Subclassing

  1. #1
    Join Date
    Feb 2008
    Posts
    25
    Thanks
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default really stupid/easy question on Widget Subclassing

    In know that this a stupid and very newbie question, but I am having a hard time finding information on it.

    What I would like to learn how to do is to create a subclass widget and apply it to a layout that I already have created. I will do a series of QPainter things to this widget if that helps with anything. I have a book but it doesn't not get into subclassing at all. If you could give me a code example of this or a good tutorial I would be greatly appreciated.

    Again I know this is trivial to a lot of you but I need some help.

    Thanks

  2. #2
    Join Date
    Sep 2007
    Location
    Rome, GA
    Posts
    199
    Thanks
    14
    Thanked 41 Times in 35 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: really stupid/easy question on Widget Subclassing

    Take a look at my Vista-style AeroButton class:

    http://www.qtcentre.org/forum/f-qt-s...t-4-11834.html

    I subclass a QPushButton and repaint it...maybe it will help, although I notice you're using Qt3. I'd be happy to help with any other specific questions you have.
    Last edited by JimDaniel; 14th February 2008 at 19:59.

  3. #3
    Join Date
    Feb 2008
    Posts
    25
    Thanks
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: really stupid/easy question on Widget Subclassing

    I will take a look at it, but does anyone have an example from qt3 that I could take a look at.

Similar Threads

  1. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 10:35
  2. Custom tab widget question
    By PrimeCP in forum Qt Programming
    Replies: 2
    Last Post: 7th August 2007, 11:17

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.