Results 1 to 8 of 8

Thread: Subclassing QWidget and QPushButton

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2009
    Posts
    12
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    3
    Thanked 2 Times in 2 Posts

    Default Re: Subclassing QWidget and QPushButton

    Quote Originally Posted by MrDeath View Post
    you dont have to cast it... widget->show() will do
    No a Widget instance do not know the show method. The compiler refuses it

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    8
    Thanked 133 Times in 128 Posts

    Default Re: Subclassing QWidget and QPushButton

    Quote Originally Posted by ber0y View Post
    No a Widget instance do not know the show method. The compiler refuses it
    yeah... my fault... you have named your class as widget... that confused me...

  3. #3
    Join Date
    Jul 2009
    Posts
    12
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    3
    Thanked 2 Times in 2 Posts

    Default Re: Subclassing QWidget and QPushButton

    yeah because when i created it i subclassed QWidget! ;-)
    thanks wagmare too !

Similar Threads

  1. Replies: 0
    Last Post: 11th November 2008, 15:36
  2. Qpushbutton
    By iamhere in forum Qt Programming
    Replies: 5
    Last Post: 15th October 2008, 04:40
  3. Dynamic updates of a QWidget in a QScrollArea
    By plamkata in forum Qt Programming
    Replies: 2
    Last Post: 20th July 2008, 23:45
  4. Dynamic widget not displayed upon Qwidget
    By ashukla in forum Qt Programming
    Replies: 5
    Last Post: 17th December 2007, 11:11
  5. Replies: 3
    Last Post: 8th March 2007, 14:54

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.