Results 1 to 4 of 4

Thread: Compile general C++ program from Qt

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2008
    Posts
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question Compile general C++ program from Qt

    Hi All,
    I want to compile a general c++ program from Qt while I click a Push button widget. How can I achieve that?

    can I use shell script in Qt?

    Thanks in Advance.

    -Srinivas

  2. #2
    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: Compile general C++ program from Qt

    See QProcess.
    J-P Nurmi

  3. #3
    Join Date
    Dec 2008
    Posts
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Compile general C++ program from Qt

    HI,

    But using Q process I can only execute a process but I cannot compile right.

    For example,

    I have a program say helloworld.cpp. From the Qt application If I click on The QPushbutton I want to compile this helloworld program. How can I compile this? I did not find any oprion to compile the program using QProcess.

  4. #4
    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: Compile general C++ program from Qt

    Quote Originally Posted by srinivasj View Post
    But using Q process I can only execute a process but I cannot compile right.
    Compiler is a program that you can start with QProcess.

    I have a program say helloworld.cpp.
    It's not a program but a source file you pass as a parameter to the compiler.

    From the Qt application If I click on The QPushbutton I want to compile this helloworld program. How can I compile this? I did not find any oprion to compile the program using QProcess.
    QProcess is not only for compiling. QProcess wouldn't be too reusable if it was aimed for compilation processes only don't you think? QProcess is used to start any external program and to communicate with it.
    J-P Nurmi

Similar Threads

  1. Replies: 9
    Last Post: 8th July 2008, 23:23
  2. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 07:18
  3. Access to PostgreSQL DB on a linux server
    By rmagro in forum Qt Programming
    Replies: 28
    Last Post: 13th March 2008, 09:02
  4. Use VC2005 to compile Qt program (4.3.0)
    By firegun9 in forum Qt Programming
    Replies: 3
    Last Post: 8th June 2007, 16:04
  5. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 04:19

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.