[Qt-interest] two interfaces: gui, cl, inherit a QObject
Thiago Macieira
thiago at kde.org
Wed May 19 19:28:06 CEST 2010
Em Quarta-feira 19 Maio 2010, às 19:12:17, Gabriele Kahlout escreveu:
> > You can create a QSocketNotifier on file descriptor 0 (that is,
> > fileno(stdin))
> > and see if it fires. I don't know if that works. It might, but it might
> > not.
> > You'll need to test yourself.
>
> I've came across that in previous posts, but it was discouraged as not
> cross-platform. I couldn't find it in the Qt documentation too.
> Apparently, this is a well-known missing feature.
There's no Qt support for terminal access, at all. That's why you don't find
any pretty-formatting text-output functions, like cout and cerr, nor setting
the cursor position, getting the terminal size, etc.
qDebug() is not for formatted text output.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100519/4875e189/attachment.bin
More information about the Qt-interest-old
mailing list