Forums

OverviewV-Play 2 Support (Qt 5) › TintColor is a read only property?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13414

    Debashish

    Hi,

    I am new to v-play and trying out the examples in the tutorials and wrote the following code in the .qml file

    import VPlayApps 1.0
    
     App {
    
       onInitTheme: {
         Theme.tintColor = "red"
       }
    
       Page {
         AppSwitch {
           anchors.centerIn: parent
         }
       }
     }

     

    And I am getting the following error:

    TypeError: Cannot assign to read-only property “tintColor”

     

    Please help.

     

    Regards,

    D

    #13415

    Alex
    V-Play Team
    #13416

    Debashish

    That’s cool it worked!

     

    Theme.colors.tintColor = "red"

    I guess this must be updated in the docs?

     

    Regards,

    D

    #13417

    Alex
    V-Play Team
Viewing 4 posts - 1 through 4 (of 4 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