Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. running Qt on Linux fails
Forum Updated to NodeBB v4.3 + New Features

running Qt on Linux fails

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 356 Views 1 Watching
  • 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.
  • A Offline
    A Offline
    andreasM111
    wrote on last edited by andreasM111
    #1

    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?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

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

      (Z(:^

      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