Unsolved (Ubuntu 14.04) no windows appear when running any Qt5 application.
-
I use Ubuntu 14.04 and IceWM (simplest window manager).
I tried to run three different Qt5 applications (see below) - all running, no exit, no crash, but no windows appear. The last example (3) is my code: it prints the message in console, but no windows appear (i expect empty window of size 250x150).The list of what I tried to run:
- The "Qt Online Installer for Linux 64-bit (31 MB)" from https://www.qt.io/download-open-source/#section-2
- qtcreator (installed by apt-get install qtcreator).
- My own code:
#include <iostream> #include <QApplication> #include <ctime> // kill #include "Controller.h" // kill #include "WindowMain.h" // kill int main (int argc, char **argv) { QApplication app(argc, argv); QWidget window; window.resize(250, 150); window.setWindowTitle("Simple example"); window.show(); std::cout << "exec...\n"; return app.exec(); }
I build my application with my custom CMake script: https://github.com/pavelkolodin/audigger/blob/master/CMakeLists.txt
UPDATE:
There is a bug in IceWM:https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751794
https://sourceforge.net/p/icewm/git/ci/395cfbb56a4adaee7028cfcbe6177ec0b94c181d/
-
You could try your simple example with the following qmake-script and see if you have the same problem:
QT += core gui widgets
TARGET = test
TEMPLATE = app
SOURCES += main.cpp -
@m.sue : I don't use qmake system: i use CMake.