Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

running Qt on Linux fails



  • Hi, i am on Linux Manjaro and want to set up newest Qt, doing one simple C++ "Hello World" program.
    You see my code in the attached pic. But when I run it the cmd window closes immediately after pressing F5. No Text is put to screen.
    Also the user input with "cin" seems beeing ignored. What im doing wrong?
    Pic showing it on Debug/Breakpoint:
    0_1543776634296_Bildschirmfoto vom 2018-12-02 19-45-29.png

    Edit: I found out that a additional
    while(1);
    at the end will let the window open only.
    Can someone explain why it is closing else?


  • Moderators

    What happens when you run the app from terminal (not Qt Creator)?


Log in to reply