Forums

OverviewV-Play 1 Support › background colour setting

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6377

    Michael

    Hi

    I’ve noticed on my android phone a small amount of letterboxing, which is expected, but I wondered whether it is possible to set a solid background colour to avoid the black bars? Maybe a GameWindow property of backgroundColour? In my game this would be nice as I’m using a solid colour rectangle inside a Scene to set an overall background for the scalable game area. Or is it as simple as setting a rectangle in the GameWindow? Sorry to ask the basic questions.

    Cheers, Michael.

    #6393

    Alex
    V-Play Team

    Hi Michael,

    you are right, it is as simple as your suggestion:

    GameWindow {
      id: window
      Rectangle {
        color: "red"
        anchors.fill: window //(or parent if you prefer)
      }
    
      // scenes and stuff...
    
    }

    Cheers,
    Alex

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

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