Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Custom ListView UI update with long running QNetworkAccessManager data fetching
Qt 6.12 LTS is out! See what's new in the release blog

Custom ListView UI update with long running QNetworkAccessManager data fetching

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 11 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.
  • stasiozS Offline
    stasiozS Offline
    stasioz
    wrote last edited by stasioz
    #1

    List 1: list of items I fetched using QNetworkAccessManager asynchronously with manager's
    "finished" signal connected to a slot.

    When I have a long list, I want to be able to click on the individual item and get me a detailed item description or another list, while still loading the List 1 in the background.

    At first, I put List 1 as initialItem of a StackView, when I click on an item in the list, it will push a DetailedPage into the StackView. However, the unfinished List 1 cannot seem to finish properly. Or is It suppoed to resume fetching only after I pop() the detailed page? The List 1 also cannot seem to finish when the list is cropped inside a ScrollView.

    I thought I can work around this by using z property instead of StackView. meaning I thought with z view I could continue loading the items in List 1 in the background. But this method doesn't work either.

    Anyone care to show me to the right guide? I am still trying to understand the single UI thread thingey.

    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
    • Unsolved