according to the Qt specification, QGraphicsScene is a faceless QGraphicsItems data model. I have a tool that can be used in windowed and non-windowed mode (when giving it command line arguments). In non-windowed mode, it should run as a console application (for example, it does not connect to X or so). However, either I use the application as QCoreApplication (qt5), or I set the guienabled (qt4) flag to false in QApplication my application (obviously?) Crashes when I try to instantiate a QGraphicsScene object.
Any idea on using QGraphicsScene in a console application (other than "no, you can't")? Thanks,
source share