[Qt-interest] Adding arbitrary depth to Graphics Scene & Friends
Kishore
kitts.mailinglists at gmail.com
Sat Apr 30 05:41:22 CEST 2011
On Wednesday 27 Apr 2011 10:17:20 PM Jason H wrote:
> In theory no, but in practice yes.
> You'll have to make a QAppliction instance, but you [probably] won't have
> to call app.exec().
>
> main ()
> {
> QApplication app;
> QGraphicsView gv...
>
> /* do your manipulation here */
> /* do your output here */
> /* no need for exec (most likely) */
>
> return 0;
> }
I don't know how compiler optimizations work in such a case, but is it
possible that it completely avoids the creation of app since it is not
actually used anywhere below?
--
Cheers!
Kishore
More information about the Qt-interest-old
mailing list