Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. (Ubuntu 14.04) no windows appear when running any Qt5 application.
Forum Updated to NodeBB v4.3 + New Features

(Ubuntu 14.04) no windows appear when running any Qt5 application.

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 636 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • sobaka_zubravaS Offline
    sobaka_zubravaS Offline
    sobaka_zubrava
    wrote on last edited by sobaka_zubrava
    #1

    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:

    1. The "Qt Online Installer for Linux 64-bit (31 MB)" from https://www.qt.io/download-open-source/#section-2
    2. qtcreator (installed by apt-get install qtcreator).
    3. 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/

    1 Reply Last reply
    0
    • m.sueM Offline
      m.sueM Offline
      m.sue
      wrote on last edited by
      #2

      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

      sobaka_zubravaS 1 Reply Last reply
      0
      • m.sueM m.sue

        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

        sobaka_zubravaS Offline
        sobaka_zubravaS Offline
        sobaka_zubrava
        wrote on last edited by
        #3

        @m.sue : I don't use qmake system: i use CMake.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved