Forums

OverviewV-Play 1 SupportAssigning calculated value to height property › Reply To: Assigning calculated value to height property

OverviewV-Play 1 SupportAssigning calculated value to height property › Reply To: Assigning calculated value to height property
#7181

Christian
V-Play Team

Hi bliss,

I think the best way to solve this would be to create a new Item element in your Scene, which is bigger than the scene (see also this post) and then put the MultiTouchArea inside this element. The width/height of the “wrapper” element can be calculated by the number of buttons you create.

I also think you should look into the Flickable element, which can handle scrolling by itself. This could make your code a bit easier 😉 (You could use a Flickable inside your scene which contains the buttons.)

If you do this, make sure to set the entityContainer of EntityManager to the correct container item to place the buttons into.

Cheers, Chrisu

  • This reply was modified 4 years, 3 months ago by  Chrisu.

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