Results 1 to 4 of 4

Thread: compile a Qt program (by not a Qt programmer)

  1. #1
    Join Date
    Sep 2010
    Posts
    2
    Qt products
    Qt4

    Default compile a Qt program (by not a Qt programmer)

    Hello, I'm sorry because this forum might not be the place to post my questions,
    Basically I'm not a Qt programmer. I'm also very new to C++. I have used some interpreted languages though.

    So I have an application sourcecode which requires Qt.
    I can't share the sourcecode, sorry.

    The main sourcefile has the include:
    Qt Code:
    1. #include <QApplication>
    To copy to clipboard, switch view to plain text mode 
    Also one of the headers has 'include <QtGui>' header.

    So I downloaded the Qt SDK to compile it.
    I had Code::Blocks IDE, but looks like Qt Creator which came with the SDK is an IDE too, right?
    So should should I set the location of QApplication.h and QtGUI.h or is it automatically added with Qt Creator? Because I got an error and I'm not sure if its the issue.

    Sorry for all the mystery.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: compile a Qt program (by not a Qt programmer)

    If you installed the Qt SDK, then everything is already set up for you.

    What error do you get?

  3. #3
    Join Date
    Sep 2010
    Posts
    2
    Qt products
    Qt4

    Default Re: compile a Qt program (by not a Qt programmer)

    In function 'void fuctionname()':

    "zQMessageBox" has not been declared.

  4. #4
    Join Date
    Aug 2010
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: compile a Qt program (by not a Qt programmer)

    ...'functionname()' is a function created by you, correct? u have included a 'z' before the 'QMessageBox', this is the error, just remove it

Similar Threads

  1. Cannot compile program- pls help
    By qtnewby in forum Newbie
    Replies: 7
    Last Post: 31st March 2010, 23:02
  2. Compile general C++ program from Qt
    By srinivasj in forum Qt Programming
    Replies: 3
    Last Post: 30th December 2008, 08:19
  3. Replies: 9
    Last Post: 8th July 2008, 23:23
  4. I can't compile my program in windows!!
    By brevleq in forum Qt Programming
    Replies: 12
    Last Post: 29th November 2007, 22:08
  5. Use VC2005 to compile Qt program (4.3.0)
    By firegun9 in forum Qt Programming
    Replies: 3
    Last Post: 8th June 2007, 16:04

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.