Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Can C++ totally replace Javascript?

$
0
0
hey guys Im pretty new to programming and qt/qml. I’ve looked at a few QML examples and noticed most of them can make use of C++ or Javascript for logic. Now i don’t actually use C++, i use Python but its bindings of Qt allow its users to do nearly everything C++ can when working with QML, so all my questions will refer to C++ not python. The qml example “Same Game”, is made with the logic purely being external javascript files. My question is: is it possible for C++ or any Qt language binding to totally replace Javascript and perform all the logic in the “Same Game” example or any other qml app and get the same results that Javascript could? I don’t really know Javascript, but I know it would be silly not to make use of Javascript, and i plan to within the same qml file, but any external files i would rather it be a .cpp file rather than a .js one.

Viewing all articles
Browse latest Browse all 4972

Trending Articles