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. Qt Gui freezes on startup half of the time after upgrading to 5.2

Qt Gui freezes on startup half of the time after upgrading to 5.2

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 765 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.
  • C Offline
    C Offline
    curator
    wrote on last edited by
    #1

    Hi all,
    I implemented a kind of complex GUI in Qt unsing also vtk features (That means I use QVTKWidget). That worked quite good, until I upgraded Qt to version 5.2.1. When I start the program, to cases are possible with the same probability: a) everything works as expected. b) the gui starts (with correct size), but is filled white (or light gray). Then I am not able to move or resize the gui and have to close it in the hard way. I use Visual Studio 2010 and the error occurs in both release and debug mode. Unfortunatly, if I set a break point before the application.exec() and stop there, the program starts successfully after going further.

    So, it is hard to write a minimal example in this case. But is there any idea where I could start to search for the problem and how? Which information can I add?

    Sry for being so confused.

    kind regards,
    curator

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      You must be doing some time consuming activity in main. Since this involves your complex UI, you need start analysing the functionality which is taking time. Start disabling many of the functionality and see how it goes. One main thing is that main UI thread is doing some time consuming task. You should identify and move the time consuming task to worker thread.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      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