Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 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 Felgo 3.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
    Felgo 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
    Felgo 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.