View Full Version : QML and JavaScript - Online Database
pabloj
21st August 2014, 23:22
Hello
Is there a way to create/register a user, then login and send/read records from online database using QML/JavaScript?
Thanks in advance.
anda_skoa
22nd August 2014, 10:28
Probably by using http://qt-project.org/doc/qt-5/qtqml-javascript-qmlglobalobject.html#xmlhttprequest
Cheers,
_
pabloj
23rd August 2014, 12:31
Probably by using http://qt-project.org/doc/qt-5/qtqml-javascript-qmlglobalobject.html#xmlhttprequest
Cheers,
_
Hmm so there is no possibility to connect with online database directly?
From your answer I understand I would have to creat php scriipt that will interpret requests and inster/update db by that.
anda_skoa
23rd August 2014, 13:06
Sure, if the database is directly accessible.
See QSqlDatabase.
Cheers,
_
pabloj
23rd August 2014, 14:20
Sure, if the database is directly accessible.
See QSqlDatabase.
Cheers,
_
How can I use it in QtQuick project?
anda_skoa
23rd August 2014, 16:01
QSqlDatabase (and related classes) is a non-UI class, so it is always used the same, no matter whether an application even has UI or which UI technology it is using.
Cheers,
_
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.