[Qt-interest] What makes an application show a console?
Gabriele Kahlout
gabriele at mysimpatico.com
Mon May 10 05:16:40 CEST 2010
That's it. I'm writing a background application, that shows a window
occassionaly (listening to key events).
How could I then hide this console?
2010/5/10 Tony Rietwyk <tony.rietwyk at rightsoft.com.au>
>
> -----Original Message-----
> > Hello,
> >
> > My GUI application also starts a cmd.exe window, along the window. While
> other qt
> > gui projects i create in qt creator (to compare) don't. What could be in
> the DNA
> > of my app to require that console?
> >
> > don't tell me CONFIG -= console, as these other gui apps don't have it,
> and anyway
> > it doesn't change a dyme.
> >
>
> Are you sure that you are using QApplication in your main.cpp?
>
> Also, my understanding is that Windows starts a short timer when your
> application starts. If you do not create a window quickly enough, Windows
> assumes the app is console. Do you have a particularly long initialisation?
>
> HTH
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
Regards,
K. Gabriele
--- unchanged since 25/1/10 ---
P.S. Unless a notification (LON), please reply either with an answer OR with
" ACK" appended to this subject within 48 hours. Otherwise, I might resend.
In(LON, this) ∨ In(48h, TimeNow) ∨ ∃x. In(x, MyInbox) ∧ IsAnswerTo(x, this)
∨ (In(subject(this), subject(x)) ∧ In(ACK, subject(x)) ∧
¬IsAnswerTo(x,this)) ⇒ ¬IResend(this).
Also note that correspondence may be received only from specified a priori
senders, or if the subject of this email ends with a code, eg. -LICHT01X,
then also from senders whose reply contains it.
∀x. In(x, MyInbox) ⇒ In(senderAddress(x), MySafeSenderList) ∨ (∃y. In(y,
subject(this) ) ∧ In(y,x) ∧ isCodeLike(y, -LICHT01X) ).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100510/307d2c9e/attachment.html
More information about the Qt-interest-old
mailing list