Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Unable to start QThread in Qt 5.4 beta
QtWS25 Last Chance

Unable to start QThread in Qt 5.4 beta

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 1.4k Views
  • 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
    anutosh
    wrote on last edited by
    #1

    I recently installed Qt 5.4 beta. I am facing an issue with QThread. QThread::start() function never returns. It just hangs there. For example in the below code snippet:

    void EmulatorTest::threadTest(){
    QThread thread;
    qDebug() << "starting thread";
    thread.start();
    qDebug() << "thread started";
    }
    The debug statement "thread started" never gets printed and my application hangs. Please let me know if anyone is facing this issue.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      Vincent007
      wrote on last edited by
      #2

      You use emulator or real devices to test your code?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        anutosh
        wrote on last edited by
        #3

        In this case I have used emulator. But with Qt 5.3 I had used both emulator and device and that worked fine.

        1 Reply Last reply
        0
        • V Offline
          V Offline
          Vincent007
          wrote on last edited by
          #4

          I suggest you try Qt 5.4 RC once it is available.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            anutosh
            wrote on last edited by
            #5

            Hi Vincent,

            I have tried Qt 5.4 RC as well and still the same issue. This time I tested it on both emulator and windows phone.

            Please advise.

            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