OverviewV-Play 1 SupportPolygonItem › Reply To: PolygonItem

OverviewV-Play 1 SupportPolygonItem › Reply To: PolygonItem


Hi Alex,

i don´t know the size of the texture in your example, but could it be possible, that the textures size is bigger than the polygons size, so that one tile fills out the whole polygon?
In my case the polygon is much bigger than the texture, so that the texture has to be repeated to fill the whole polygon. Between these texture tiles i have always an empty space. Could you please try the following code with the polygon larger than the texture (my texture is 50×50 px):

import VPlay 1.0
import QtQuick 1.1

GameWindow {
    activeScene: scene
    width: 960
    height: 640
    Scene {
        id: scene
        width: 960
        height: 640

        PolygonItem {
          texture: "texture.png"
          vertices: [
            Qt.point(250, 0),
            Qt.point(0, 250),
            Qt.point(0, 500),
            Qt.point(250, 500),
            Qt.point(500, 500),
            Qt.point(500, 250)


Today i switched to daily builds 1.5.1 what didn´t solve the problem.



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
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support