Quantcast
Channel: Active questions tagged qtquick2 - Stack Overflow
Viewing all articles
Browse latest Browse all 107

How to access C++ enum from QML?

$
0
0
class StyleClass : public QObject {public:    typedef enum        {            STYLE_RADIAL,            STYLE_ENVELOPE,            STYLE_FILLED        }  Style;    Style m_style;    //...};

The .h file has the above code. How to access the above enum through QML?


Viewing all articles
Browse latest Browse all 107

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>