Results 1 to 7 of 7

Thread: subclass qpushbutton

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: subclass qpushbutton

    Quote Originally Posted by Cremers View Post
    But I get an error, extra qualification on member Button.
    You have Button::Button in your header inside class Button, but the constructor name should only be the class name
    Qt Code:
    1. class Button : public QPushButton
    2. {
    3. Q_OBJECT
    4. public:
    5. Button(const QString & text, QWidget * parent = 0 );
    6. };
    To copy to clipboard, switch view to plain text mode 

    Cheers,
    _

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

    Cremers (23rd June 2013)

Similar Threads

  1. Subclass QList<T>
    By Seishin in forum Qt Programming
    Replies: 4
    Last Post: 23rd April 2013, 23:22
  2. Replies: 2
    Last Post: 15th April 2013, 06:33
  3. Replies: 8
    Last Post: 12th February 2010, 02:41
  4. Subclass
    By merry in forum General Programming
    Replies: 2
    Last Post: 1st March 2007, 10:34
  5. Reg - Subclass of QListBoxItem
    By lawrence in forum Newbie
    Replies: 1
    Last Post: 6th January 2007, 14:18

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.