Get file name, line number and function name in QML Javascript from C++. How?
Unsolved
QML and Qt Quick
-
wrote on 2 Feb 2021, 09:48 last edited by bogong 2 Feb 2021, 09:55
Hello!
I've got clear how to get file name, line number and function name in QML via Javascript function. The question is how to do the same but FROM C++, I need to get JavaScript file name, line number and function name in QML WITHOUT using JS directly. Just C++ code. Something like this:C++ header
... public slots: void mGetStack(void); ...
C++
void SomeClass::mGetStack(void) { ... (some C++) }
QML
onCompleted: { SomeClass.mGetStack() }
What should be instead of "some C++"?
1/1