Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QQXcbConnection: Could not connect to display
Shidharth last edited by Shidharth
I have created C++ console application to convert HTML to PDF using Qt WebKit. it is working fine when running the application using terminal. I have started the console application in web application using C#.
When I deploy it using nginx, it throws below error, QQXcbConnection: Could not connect to display .
Qt version: 5.5
OS: Ubuntu 16.04
I have deploying the application in localhost.
Can anyone help me to resolve this?
@Shidharth Can you show the pro file?
Shidharth last edited by
I have set below ENVIRONMENT variable and it is working fine.