[Interest] QPixmap : cannot create a qpixmap when no gui is being used

Etienne Sandré-Chardonnal etienne.sandre at m4x.org
Fri Jan 3 18:02:34 CET 2014


Dear all,

I have the following main function:

int main(int argc, char *argv[])

{

	//Check if gui is required (no parameters given, or "-gui" parameter)

	bool gui;

	if( argc<=1 || hasGuiParam(argc, argv) )

		gui = true;

	else

		gui = false;


 	QCoreApplication * a = new QApplication(argc, argv, gui);

	
	...
}

And I get the title error (cannot create QPixmap with no gui) at the
QApplication creation (not after)

What is wrong? That's the very start of the app.

Thanks,

Etienne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140103/3d2a41bd/attachment.html>


More information about the Interest mailing list