Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
None
-
6.6.3
-
None
Description
The following example works without problems when I compile it from CMD using this command: emcc -g main.cpp -o public/index.html
main.cpp
#include <emscripten.h> #include <emscripten/html5.h> #include <iostream> int main() { // Mouse Button Down: emscripten_set_mousedown_callback( EMSCRIPTEN_EVENT_TARGET_WINDOW, nullptr, 0, +[](int eventType, const EmscriptenMouseEvent *e, void *userData) -> EM_BOOL { std::cout << "Mouse down: " << e->button << "\n"; return EM_FALSE; }); }
But when I create the "Empty qmake Project" in Qt Creator and run the example above but it doesn't work. I mean it doesn't print anything to the browser console.