To create JavaBean-like getter in Qt Creator



  • Creator creates a property, by typing Q_PROPERTY and let the auto completion fill the rest, using the myVar() and setMyVar() as the getter and setter. I have not been able to find a way to configure it to use JavaBean-style getMyVar() instead. Any hints on that? Thanks!


  • Qt Champions 2016

    @Vinnie

    Q_PROPERTY(MyVarType myVar READ getMyVar WRITE setMyVar)
    

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.