On 21. juni 2010 06:55, Allison Warwick (Nokia-D-Qt/Brisbane) wrote: >> I saw the quite impressive QML presentation at LinuxTag and I liked it. >> But what I dislike is QML's SQL-based database interface, so I decided >> to implement a MongoDB-based NoSQL database interface for QML. >> > I wrote it and I don't like it either. It's following the HTML5 model. Way > too complicated, IMHO, but the theory is that it lets you port/share web JS > code more easily. > > If you just want key-value, there is an HTML5 draft for that too that you > could follow. If you want somewhere in between, I suspect MongoDB is an > excellent choice. > > >> To do so I'd need to implement a QScriptClass-like class. >> > You shouldn't *have* to do that (the current QML SQL doesn't, for example). >
From looking at the MongoDB docs, it looks like what he needs is a way to support functions that can take a variable number of arguments (Manuel, am I right?). For that, QScriptClass isn't needed; one could either 1) subclass QScriptable, or 2) use QScriptEngine::newFunction(). But as we pointed out already, this API can't be used with QML in 4.7. Manuel, I suggest voting on the task that Artur created for this: http://bugreports.qt.nokia.com/browse/QTBUG-11529 Regards, Kent _______________________________________________ Qt-qml mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-qml
