Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved Application hangs until i press "Enter" key in the console

    General and Desktop
    2
    3
    142
    Loading More Posts
    • 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.
    • ODБOï
      ODБOï last edited by ODБOï

      Hello,
      I have a Qt application running on windows 10
      It is a Qt5.15.0 program and i build it using and mingw81_64
      My probleme is that sometimes my applications hangs after a user interaction (example : user clicks a button).

      It is a debug build of my application and it has a console wondow, after the ui hands, if i switch to the console window and press "Enter" key on keyboard, i see tons of output ( my qDebug() statements, console.log() ) printed, and application starts responding again directly.

      Is this something known?
      Does this come from the fact that i have too meny output messages ?

      Thanks

      1 Reply Last reply Reply Quote 0
      • Cobra91151
        Cobra91151 last edited by Cobra91151

        Hello!

        Can you show the qDebug() output? Also, your app could hang because main GUI blocks due to heavy working process. Adding heavy stuff to threads could free the main GUI thread, which means your main window will respond faster. It depends on what exactly your app does when a user clicks a button.

        ODБOï 1 Reply Last reply Reply Quote 2
        • ODБOï
          ODБOï @Cobra91151 last edited by

          @Cobra91151 hi
          Thank you for your input

          You are right, my ui hangs because of 2 javascript for loops in one of my qml files.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post