[Qt-interest] two interfaces: gui, cl, inherit a QObject
Gabriele Kahlout
gabriele at mysimpatico.com
Wed May 19 19:40:24 CEST 2010
i 'solved' with something like this:
void CLinterface::run(){
string command;
while(true){
getline(cin, command);
emit cliCommand(QString(command.c_str()));
}
}
cliCommand is handled by the Controller (in the gui/main thread).
2010/5/19 Guido Seifert <Wargand at gmx.de>
>
>
> >
> > qDebug() is not for formatted text output.
> >
> Even worse. It allows only a certain amount of characters. The rest is
> silently dropped. Was at least how it worked in Qt 3. Did cost me
> quite some debugging time chasing a bug, which did not really exist.
>
> Guido
>
> --
> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
> _______________________________________________
> 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/20100519/636e5d6a/attachment.html
More information about the Qt-interest-old
mailing list