Using non-creatable type in QML
I played with QML/C++ interfacing this week. In a test projet I wanted to declare a QML property using a type that is registered via qmlRegisterUncreatableType(). The property is initialized with...
View ArticleGet/Set cookies from qml
Hi all: I am writting a client program. When I login, the server will send some cookies to me in the ‘Set-Cookie’ header field. I need to get the cookies, because the rest of the request will need...
View ArticleAccess dynamic created ListModel elements from C++!
It is a counter-productive thing to access QML from C++. It defeats the whole purpose of UI and logic abstraction. The idea is to be able to access C++ functionality from C++ but not the other way...
View ArticleGet/Set cookies from qml
That’s impossible from QML. There is code in quite low level that basically prevents cookies. That code is done because of security issues but is completely irrelevant to QML.
View Articlestarting with the Qt Quick Tutorial...
…dated February 28, 2013, entitled “Introduction to Application Development with Qt Quick Release 1.0…” On pages 5/6, it instructs me to create a new project and select Qt Quick UI* project type. This...
View ArticleMake QSGRenderer public for custom use?
Is there any reason why the QSGRenderer belongs to the private parts of Qt? I’m sure I don’t fully comprehend its internals, but wouldn’t it be nice if it was possible to use the QSGRenderer class...
View ArticleExposing C++ model property of type QList to QML
Hello, sorry if this has been covered but I did try to search and could not find a solution. I am trying to use QtQuick to build user interface and work with C++ model. So far the model is as simple as...
View ArticleMake QSGRenderer public for custom use?
Doesn’t the QSGRenderer render a QQmlContext, which in turn is managed by a QQmlEngine that compiles the scripts, instantiates (through an incubator) objects and updates them? To me, this sounds like a...
View ArticleExposing C++ model property of type QList to QML
According to the documentation in Exposing Attributes of C++ Types to QML [doc-snapshot.qt-project.org] QQmlListProperty<> is recommended for exposing object-list type properties.
View ArticleExposing js file in qmldir
In Qt5 you can – see: see http://qt-project.org/doc/qt-5.0/qtqml/qtqml-modules-qmldir.html for more information about JavaScript Resource Files in modules. Cheers, Chris.
View ArticleRectangles & padding
Hello it seems I’m either very stupid in finding this information or it truly doesnt exist. Do rectangles have a padding property or how is padding realized with the current functionality? Of Course...
View ArticleUsing non-creatable type in QML
I understood you. As I said, you cannot declare a property whose type is uncreatable in a QML object declaration. No, you’re not correct is stating that the only use for uncreatable types is for...
View ArticleRectangles & padding
It is the anchors which define how the child rectangle fills the parent rectangle. Remember, in QML, just because an object instance is declared within another one does NOT mean that it is visually...
View ArticleMake QSGRenderer public for custom use?
But wasn’t the scenegraph also developed for Qt? Qt… the C++ framework? It is not like it is a common practice for Qt to develop APIs in C++ that are not possible to use from C++, at least until now…...
View ArticleSmoothly rotate a Rectangle in QML
I need to make a rectangle and rotate it a bit (5-10 degrees), but I’m getting a weird non-smooth result. Is it a way to make it smooth? QML code: Rectangle { smooth: true ...
View ArticleAccess dynamic created ListModel elements from C++!
It is a counter-productive thing to access QML from C++. It defeats the whole purpose of UI and logic abstraction. The idea is to be able to access C++ functionality from C++ but not the other way...
View ArticleGet/Set cookies from qml
Exactly. While there is no reason why that shouldn’t be possible using pure QML. P.S. Maybe that’s possible using webkit but that’s different topic.
View ArticleSmoothly rotate a Rectangle in QML
Ah, you are using Qt4… it seems there is no such property in QtQuick 1…
View ArticleDynamic QML object question
I can create the qml object using Qt.createQmlObject, but how do I reference the object in javascript if I want to change it’s properties. Thanks
View Article