Forums

OverviewV-Play 2 Support (Qt 5) › timeline swipe loading images åperformance

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14638

    Bas

    hi, i would like to create a swipable timeline app.

    in the app when swiping a timeline events are triggered and i want images and text occur on certain moments.

    i need a lot of images and text.

    what would be the best aproach to deal with lots of images triggered by the timeline points.

    i was thinking about creating a json file which is a representation of the timeline with images

    and tekst as a sequence of nodes.

    but i do not know how to deal with the images, will it be fast enough when loaded from resource.

    and i think i wil have a certain slots where images are loaded on the fly and text slots are rendered on the fly

    so my question here is: is my theory correct, would this work?

    or do you have some alternatives other ideas how to handle

    this?

     

    p.s.

    i don’t want to use a grid

     

    thanx in advance

    #14640

    Günther
    V-Play Team

    Hi Bas!

    The approach to use a json file to configure the nodes (text) and images (sourcePath) is correct. Displaying the images from the project resources or assets folder is definitely fast enough. You can use for example the Repeater type to visualize your json data (the model) with QML elements (the delegate).

    Of course you can also manually go through your JSON data and create UI elements dynamically with Qt.createComponent.

    Best,
    Günther

     

    #14641

    Bas

    thanx!

    i will try some different approches with 130 images or so.

    probably  create a script which generates the json file

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support