Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

TileMap with qml element Image



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


Log in to reply