QApplication without display

I am using Qt3.3 and I am trying to create QApplication without display. I need to check the signals from QSocket objects, and for this very reason I need QApplication.

I try to execute QApplication (0, 0), but I get "QApplication: Invalid Display * argument".

How to do it right?

+3
source share
1 answer

From the docs:

QApplication :: QApplication (int & argc, char ** argv, bool GUIenabled)

Creates an application object using the argc command line arguments in argv. If the GUIenabled is TRUE, the GUI application is built; otherwise, the application without the GUI (console) is created.

GUIenabled FALSE .

, , ,

QApplication::QApplication(Display *dpy,HANDLE visual=0,HANDLE colormap=0)

NULL * ( , , X11)

+9

Source: https://habr.com/ru/post/1715117/


All Articles