Results 1 to 3 of 3

Thread: make error

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: make error

    I can only see a few minor misspellings there:

    finddialog.cpp:
    Qt Code:
    1. void FindDialog::enableFindButton(const QString &text)
    2. {
    3. findButton->setEnabled(!text.isEmpty());
    4. }_ // <-- remove the additional underscore
    To copy to clipboard, switch view to plain text mode 

    main.cpp:
    Qt Code:
    1. #include "finddiaglog.h" // <-- typo
    2. ...
    3. QApplication app(argc, argv); // <-- semicolon missing
    To copy to clipboard, switch view to plain text mode 

    PS. Please use [ code ] -tags to make code snippets more readable..
    J-P Nurmi

  2. #2
    Join Date
    Sep 2006
    Posts
    27
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: make error

    I tkink you should also explicitely call "delete" on top-level widgets, else it never gets deallocated:

    Qt Code:
    1. //...
    2. FindDialog *dialog = new FindDialog;
    3. dialog->show();
    4. const int nReturnValue = app.exec();
    5. delete dialog;
    6. return nReturnValue;
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Qt-x11-commercial-src-4.2.0-snapshot-20060824 error
    By DevObject in forum Installation and Deployment
    Replies: 4
    Last Post: 24th August 2006, 23:31
  2. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52
  3. Problems
    By euthymos in forum Installation and Deployment
    Replies: 2
    Last Post: 13th June 2006, 19:11
  4. Fed up with M$ Window$ !!! Why is Tux leaving me alone???
    By fullmetalcoder in forum General Discussion
    Replies: 35
    Last Post: 18th March 2006, 12:57
  5. Am I the only one with "make" error ?
    By probine in forum Installation and Deployment
    Replies: 1
    Last Post: 13th February 2006, 12: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.