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. iOS QThread slows down UI

iOS QThread slows down UI

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 418 Views 3 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.
  • V Offline
    V Offline
    Vi67
    wrote on last edited by
    #1

    Hello,

    I wrote a class to make http asynchronous requests. It works on both : iOS and Android.
    It works great for Android, but for iOS, the thread doesn't seem to be different than the UI Thread. When I make an http call, the QML animations are slowing down and can be stuck few seconds.

    There is the code > https://gist.github.com/Vi-dot/3fe948769377499b1253241848e19078

    Someone has an idea ?
    Thanks

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      QNetworkAccessManager is already asynchronous so why the additional classes ?

      That code is a pretty convoluted design to move your networking stuff in another thread.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

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