Qml in qt widgets
I just created new QtUI application project and did the following. It works perfectly. What is ‘this’ object in your case ? It is QMainWIndow or QWidget ? QWidget *wid = new QWidget; ...
View ArticleHow to force update a hidden window?
Thanks for the answer. I destroy the hiddenNode in the destructor of the RenderWidgetHostViewQtDelegateQuick. The problem is that QtWebEngine sends the “loaded” signal, which means that a page been...
View ArticleQML thumbnail list
Hi all, I have a problem making a thumbnail list/view in QML – I have no idea where to start with this. I’ve been searching a lot through Qt documentation and stackoverflow, but even though there are...
View ArticleC++ to change QML object properties
I want to change QML objects properties using C++. I tried the “http://qt-project.org/doc/qt-5/qml-qtqml-qtobject.html”. I couldn’t get it working on QT5.3. If anyone could provided working example for...
View ArticleQt installation problem
Now it is installed. checked disk space. But installer isn’t made properly, because it said firstly that space is available
View ArticleExpose C++ QVariantList to QML with setContextProperty : view in QML in not...
Hi, I am making a data exchange between C++ (JSON RPC server with some additional logic) and QML. For a list of complex objects, I store them in a C++ QMap, and construct a QVariantList from that. This...
View ArticleQml in qt widgets
I have additional problem with QQuickView(), namely I couldn’t set transparency for it. If I set ->setColor(QColor(0,0,0,0)) it’s starting to be black. setColor(Qt::transprarent) also dosn’t...
View ArticleQML thumbnail list
Did you look at ListModel insert(…) set(…) etc method. Based on some user action you should be able do something like imageModel.insert(….) Please note insert expects you insert JSON object. Please...
View Articleapplicaton icon Qt5.2, Windows and Linux, QML
Hello!! Very simple problem: I can not figure out how to change the application icon from default (the icon on the top left of the window). From, http://qt-project.org/doc/qt-5/appicon.html, it seems I...
View ArticleC++ to change QML object properties
In the same way as above you can set the “running” property of animation so that you can start or stop the animation or set other properties.
View Articleapplicaton icon Qt5.2, Windows and Linux, QML
UPDATE: I tried something else but still not working. Note, I’m using Linux ~ maybe that has something to do with it? #include <QtQuick> #include <QApplication> ...
View ArticleQAbstractListModel & QML
Hello I have some problems to get my qml to work with a QAbstractListModel. Here is my code: Data.h #ifndef DATA_H #define DATA_H #include <QAbstractListModel> #include...
View Articleapplicaton icon Qt5.2, Windows and Linux, QML
Is it giving any error now or it is not just displaying icon ? Instead of loading from resource try it from a fixed path. For e.g app.setWindowIcon(QIcon("/root/new_blue.png"));
View ArticleQML thumbnail list
Hi and thanks for replying. Yesterday I’ve had some success with append() method – I’ve realized that it shouldn’t be that hard if I use underlying C++ for handling file names only – QML’s ListModel...
View ArticleCapture Screen in qml
Hi, I have developed an application and installed on Android for which i have to capture the screen of that application through button click.Ho w do i do that with qml.Please help me with suitable...
View ArticleCannot make QQuickView transparent
I would expect to use this in your main before any qml file is loaded. Hope it helps
View ArticleBind a QML property on JS object through a function
Just stumbled upon this myself. Any idea?
View ArticleQAbstractListModel & QML
Change the model name in QML’s ListView to something other than data, seems like it is referring to Item’s data [qt-project.org] property. I renamed my working model to data and had the same error.
View ArticleC++ QVariantList in QML : view in QML is not updated when I change data in...
You may consider subclassing QAbstractListModel [qt-project.org]
View Articlepositioning text right after word wrapped text
ListView { anchors.fill: parent model: ContactModel {} delegate: Item { width: parent.width height: toopis.height + pls.height + 10...
View Article