Re: [Interest] Should Q_INVOKABLE functions be marked as such in the documentation ?
Done : https://bugreports.qt.io/browse/QTBUG-59083 2017-02-22 13:08 GMT+01:00 Bo Thorsen: > Den 22-02-2017 kl. 11:13 skrev Pierre-Yves Siret: > >> Hello, >> >> Reading the doc, there is no indication that a function is Q_INVOKABLE. >> It can sometimes be useful to know what functions of a Qt C++ class (not >> specifically designed for QML) can be called from QML in addition to the >> slots. >> >> The only way I know to do that is to read the source of the class >> (thanks to the Woboq people for easing that pain). >> >> Is there a reason to hide this information ? >> > > My guess is that it's only this way because no one asked for it before. > Sounds like a reasonable thing to show. > > I checked the bug tracker, but I didn't find this. You should add a > feature request. > > Bo Thorsen, > Director, Viking Software. > > -- > Viking Software > Qt and C++ developers for hire > http://www.vikingsoft.eu > ___ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Should Q_INVOKABLE functions be marked as such in the documentation ?
Den 22-02-2017 kl. 11:13 skrev Pierre-Yves Siret: Hello, Reading the doc, there is no indication that a function is Q_INVOKABLE. It can sometimes be useful to know what functions of a Qt C++ class (not specifically designed for QML) can be called from QML in addition to the slots. The only way I know to do that is to read the source of the class (thanks to the Woboq people for easing that pain). Is there a reason to hide this information ? My guess is that it's only this way because no one asked for it before. Sounds like a reasonable thing to show. I checked the bug tracker, but I didn't find this. You should add a feature request. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Should Q_INVOKABLE functions be marked as such in the documentation ?
Hello, Reading the doc, there is no indication that a function is Q_INVOKABLE. It can sometimes be useful to know what functions of a Qt C++ class (not specifically designed for QML) can be called from QML in addition to the slots. The only way I know to do that is to read the source of the class (thanks to the Woboq people for easing that pain). Is there a reason to hide this information ? Cheers, Pierre-Yves Siret ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest