Results 1 to 2 of 2

Thread: App hangs on Starting a Thread

  1. #1
    Join Date
    Mar 2014
    Posts
    8
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Exclamation App hangs on Starting a Thread

    My dialog hangs on running a thread from constructor. Below is code

    pThread = new QThread;
    connect(pThread, SIGNAL(started()), this, SLOT(StartDisplay()));
    pThread->start();

    Please suggest what is wrong?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: App hangs on Starting a Thread

    What do you mean with "hangs"?

    There is nothing in the posted code that would "hang" the thread executing it.

    Cheers,
    _

Similar Threads

  1. Starting QT GUI in a seperate Thread
    By bbui210 in forum Qt Programming
    Replies: 8
    Last Post: 27th June 2018, 17:17
  2. Qt GUI app hangs sometimes
    By rampage644 in forum Qt Programming
    Replies: 7
    Last Post: 10th June 2011, 13:19
  3. Qt 4.5 Embedded hangs
    By nickich in forum Qt Programming
    Replies: 2
    Last Post: 2nd April 2009, 12:15
  4. Designer hangs, trying to connect, while starting
    By darkadept in forum Qt Tools
    Replies: 1
    Last Post: 24th March 2009, 21:58
  5. Using COM(ActiveX?) hangs up
    By gri in forum Qt Programming
    Replies: 4
    Last Post: 6th March 2007, 23:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.