Results 1 to 2 of 2

Thread: Q3Frame : no appropraite default constructor available

  1. #1
    Join Date
    Mar 2007
    Posts
    15
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Q3Frame : no appropraite default constructor available

    Class Declaration:-

    class TestApp : public Q3Frame
    {
    public:
    TestApp();
    TestApp( QWidget *parent, const char* name = 0, Qt::WFlags f=0 );
    virtual ~TestApp();
    };



    CPP File:-

    After changing Qframe to Q3Frame, I am getting following error saying :-

    Q3Frame : no appropraite default constructor available

    TestApp::TestApp()
    {
    }


    TestApp::TestApp( QWidget *parent, const char* name, Qt::WFlags f ) : Q3Frame( parent, name, f )
    {
    }


    TestApp::~TestApp()
    {
    }

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Q3Frame : no appropraite default constructor available

    Qt Code:
    1. TestApp::TestApp() : Q3Frame( 0 )
    2. {
    3. // empty
    4. }
    To copy to clipboard, switch view to plain text mode 

  3. The following user says thank you to jacek for this useful post:

    Project25 (27th March 2007)

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.