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
Forum Updated to NodeBB v4.3 + New Features

Unable to start QThread in Qt 5.4 beta

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 1.4k 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.
  • A Offline
    A Offline
    anutosh
    wrote on 23 Nov 2014, 05:55 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 23 Nov 2014, 12:04 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 23 Nov 2014, 13:36 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 23 Nov 2014, 15:29 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 28 Nov 2014, 14:18 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

            4/5

            23 Nov 2014, 15:29

            • Login

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