[Qt-interest] Using QGraphicsScene in console application

Constantin Makshin cmakshin at gmail.com
Thu Feb 10 14:08:26 CET 2011


AFAIK, GUI-related parts of Qt like QGraphicsScene require the application object to be of type QApplication instead of QCoreApplication. To prevent X Window initialization use
http://doc.qt.nokia.com/4.7/qapplication.html#QApplication-2

On Thursday 10 February 2011 15:29:45 AK wrote:
> Hello Guys,
> 
> My graphics tool is supposed to work in a console application. It will read
> a script and populate the QGraphicsScene.
> It will also use the QTransform and hit-testing API's of the scene.
> 
> Question:
> 
> - Since I have to link QGui4.lib for Graphics Framework to work. Can I be
> sure that X-Window initialization in not done. My application object is of
> type QCoreApplication.
> - Will there be any side-effects of using Graphics Framework in console
> application?
> 
> A. K.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110210/5cc9c43b/attachment.bin 


More information about the Qt-interest-old mailing list