Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

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.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded