Results 1 to 3 of 3

Thread: I want run one application with GUI or Console based on commandline

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Question I want run one application with GUI or Console based on commandline

    if "Config += console" is added in the ".pro" file, the GUI application will show a console in background, how I remove this console window?
    or how can I start a console in code without using "Config += console".

    My Sample code is as following.
    Qt Code:
    1. main(int argc, char *argv[])
    2. {
    3. if(argc<=1)
    4. runGUI();
    5. else
    6. runConsole();
    7. }
    To copy to clipboard, switch view to plain text mode 
    any suggestion?
    Last edited by wysota; 30th March 2011 at 10:55. Reason: missing [code] tags

Similar Threads

  1. about console application
    By jirach_gag in forum Qt Programming
    Replies: 2
    Last Post: 5th January 2012, 12:39
  2. Replies: 7
    Last Post: 13th September 2011, 14:15
  3. Replies: 2
    Last Post: 21st November 2010, 19:03
  4. QT Console application QTextStream
    By Lis in forum Qt Programming
    Replies: 2
    Last Post: 6th November 2010, 06:18
  5. Exiting a Qt Console Application
    By nbetcher in forum Qt Programming
    Replies: 4
    Last Post: 23rd March 2009, 22:03

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.