[Qt-interest] Using QGraphicsScene in console application
Bo Thorsen
bo at fioniasoftware.dk
Thu Feb 10 14:04:44 CET 2011
Den 10-02-2011 13:29, AK skrev:
> 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?
When you use GUI stuff, it's not a console application. A console
application is not defined by being an application that doesn't open a
window.
Link to QtGui and use QApplication.
Bo Thorsen,
Fionia Software.
--
Expert Qt and C++ developer for hire
Contact me if you need expert Qt help
http://www.fioniasoftware.dk
More information about the Qt-interest-old
mailing list