Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. TileMap with qml element Image
Forum Updated to NodeBB v4.3 + New Features

TileMap with qml element Image

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.6k Views 2 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.
  • M Offline
    M Offline
    Matahari
    wrote on last edited by
    #1

    Hi,

    I'm thinking about TileMap in pure qml. I know how to draw one tile @Item{
    width:tilewith
    height:tileheight
    x:idxwidth
    y:idx
    height
    clip:true
    Image{
    source:sometileset
    }
    }@

    Now to show the entire map, I need to put the above code into a repeater and a grid. But I'm wondering what about performance. I know images are cached so they should be loaded just ones (is it true ?) but what about the clip property I have heard there are some performance issue with this property? Is there any other way of doing such thing ? Like playing with sourceSize of the image?

    thanks for reading me.

    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