Closed LinArcX closed 4 years ago
It just an example. You can use it inside every class. I use it inside MainWindow. Just create QOnlineTranslator
instance, it works as any other QObject. And yes, you need to create an application object first in main.cpp
.
Thank you so much.
Hi. i want to use your library inside my app. but i don't want to use itin this way(since my app is qt-quick and uses qml/c++ in same time. so i connect every cpp class to a qml file):
Actually it works only in main.cpp and after this line:
QCoreApplication app(argc, argv);
I want to use it in other c++ classes that connect them to qml pages. how do that?