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. Application hangs until i press "Enter" key in the console
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 361 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.
  • ODБOïO Offline
    ODБOïO Offline
    ODБOï
    wrote on last edited by ODБOï
    #1

    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
    0
    • Cobra91151C Offline
      Cobra91151C Offline
      Cobra91151
      wrote on last edited by Cobra91151
      #2

      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ïO 1 Reply Last reply
      2
      • Cobra91151C 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ïO Offline
        ODБOïO Offline
        ODБOï
        wrote on last edited by
        #3

        @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
        0

        • Login

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