[Qt-interest] QWidget: Must construct a QApplication before a QPaintDevice
Thiago Macieira
thiago at kde.org
Tue Sep 6 10:54:09 CEST 2011
On Tuesday, 6 de September de 2011 06:49:52 Syam Krishnan wrote:
> Ahem.. A little bit of nitpick. That line actually declares a function
> and not a function pointer. 'app' becomes a function
> that takes no arguments and returns a QApplication object. It's not a
> function pointer. For example, you cannot assign
> anything to it.
> If it were a function pointer, then the declaration would've been:
> QApplication (*app)();
>
> Isn't it so?
You´re right. The GCC error message saying "QApplication (*)()" threw me off.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
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/20110906/865058ed/attachment.bin
More information about the Qt-interest-old
mailing list