Author Topic: [QT and C::B] - GUI Application displays 'console' windows  (Read 8171 times)

Offline skunkos

  • Single posting newcomer
  • *
  • Posts: 2
[QT and C::B] - GUI Application displays 'console' windows
« on: November 17, 2010, 10:19:30 pm »
Hi.
I use QT - latest version with C::B 10.05.
1. I create QT GUI Project and compile default code that should show GUI application with 'QUIT' button.
2. But when i run that compiled program there appears GUI of 'QUIT' program and another console window appears too.

I think this shouldn't happen because when i build the same code in QT Creator IDE, there appears just GUI windows and console windows isn't shown.
I use GCC compiler and Windows 7.

Excuse my bad english.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: [QT and C::B] - GUI Application displays 'console' windows
« Reply #1 on: November 17, 2010, 10:58:19 pm »
Check "Project -> Properties -> Build targets" and make sure that the type is set to "GUI application".
If that does not work, try to add -mwindows manually to the linker settings (Other linker options).

Offline skunkos

  • Single posting newcomer
  • *
  • Posts: 2
Re: [QT and C::B] - GUI Application displays 'console' windows
« Reply #2 on: November 18, 2010, 05:01:08 pm »
thx for advice....everything works well now