Results 1 to 4 of 4

Thread: Command line prompt window along with qt's application on Windows platform

  1. #1
    Join Date
    Feb 2011
    Posts
    12
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Command line prompt window along with qt's application on Windows platform

    Guys,

    I have a strange problem. Every time I run my QT4 application by double clicking the exe, there's a command line prompt window along with the app. I don't know how to remove it, just show the application window.

    I compiled the source code with visual studio 2003.NET. I also checked the Makefile.am, found nothing special. Can anyone tell me how to fix this problem? BTW, I'm using QT4.7.0, but I don't think version matters this time.

    Thank you very much!

  2. #2
    Join Date
    Feb 2011
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Command line prompt window along with qt's application on Windows platform

    On Qt SDK i did this: project--->properties-->buildtarget-->type-->GUI appliction

    But for you, edit your project.pro file, with option add " -mwindows",
    if still not work, gooooooogle something about VS 2003.NET, no ideas for it.

    Last edited by c154387417; 9th March 2011 at 11:09.

  3. #3
    Join Date
    Feb 2011
    Posts
    12
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Command line prompt window along with qt's application on Windows platform

    sorry, I can't find the setting option in visual studio.NET 2003 for your first solution.
    For your second solution, I don't have a pro file, just Makefile.am. Can you explain in more detail?
    Thank you!

  4. #4
    Join Date
    Feb 2011
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Command line prompt window along with qt's application on Windows platform

    Sorry about my English . I said my envronment is Qt SDK ( qtcreator as IDE ).

    But did you mind your VS project type any time?
    I think you may create a Windows Appication **instead** Console Application project,
    at the startup of your VS.

Similar Threads

  1. Replies: 32
    Last Post: 29th January 2011, 23:14
  2. Replies: 1
    Last Post: 7th September 2010, 16:49
  3. Replies: 2
    Last Post: 5th May 2010, 18:32
  4. Replies: 3
    Last Post: 23rd February 2010, 05:33
  5. Is there a command-line window in Qt4?
    By miaoliang in forum Qt Programming
    Replies: 2
    Last Post: 8th November 2006, 09:56

Tags for this Thread

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.