Forums

OverviewV-Play 2 Support (Qt 5)PolygonItem in V-Play 2 › Reply To: PolygonItem in V-Play 2

OverviewV-Play 2 Support (Qt 5)PolygonItem in V-Play 2 › Reply To: PolygonItem in V-Play 2
#11893

Paweł

The problem is I cannot see the texture property.

import VPlay 2.0
import QtQuick 2.0

...

Scene {
	
	...

	PolygonItem {
		id: polygon

		anchors.centerIn: logo
		vertices: [
			Qt.point(0, 0),
			Qt.point(100, 0),
			Qt.point(50, 100)
		]

		//texture: "../../assets/img/splash/logo.png" //not visible
	}
}

QtCreator says “Invalid property name”. I am using the VPlayBase Plugin v1.0.13.

However OpacityMask works just fine. Thanks! :)

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