using inpaint of opencv in qt
If you are on windows and using the g++ come with Qt, you need to recompile the openCV by yourself.
View ArticleQt5 Custom GeometryExample with beziercurve and QSGGeometry::setLineWidth
Hi, Does somebody know how is the setLineWidth of QSGGeometry supposed work? If I try to change the line width in the custom geometry example it has no effect. It’s using GL_LINE_STRIP as drawing mode...
View ArticleSorting in QtQuick 1.1 GridView
I’ve used a QSortFilterProxy model to sort a given model and passed the QSortFilterProxy model to the QML’s GridView but only the filterRow member function gets called e.g. only filtering works. The...
View ArticleQt5 Custom GeometryExample with beziercurve and QSGGeometry::setLineWidth
This seems to be a problem with the Qt5 libraries I am using. If I switch to Qt5 libraries I built myself for OpenGL (not ANGLE) the lineWidth function starts to work. Also antialiasing doesn’t work...
View ArticleC++ model (QAbstractItemModel) with Qt Quick view?
So for example, let’s say that I have a view-model type architecture where the UI layer is also required to perform some complex UI related processing and even keep UI related state, are you saying...
View ArticleScrollView and adding scrollbars to app window
I am trying to add scrollbars to my app’s main window using the following code: import QtQuick 2.0 import QtQuick.Controls 1.0 ScrollView { Rectangle { ...
View ArticleHow do you simulate a tree view in Qt Quick since it's not included in...
I have a similar requirement for a tree view structure which I’ll start having a play with today. I’ve done collapsible sections in lists so I hope I can extend that to simulate a tree. It is based on...
View ArticleHow to display errors for Loader?
You need to anchor your Text element. Also, make sure Loader is working as you expect with: id: view // ... onStatusChanged: { console.log("Loader status changed to " +...
View Articleimport Qt Quick Components
I think the problem is the qmenu.h. Can you tell me why? The incorrect compiling causes an error while using the components in Qt and running the application (“module “QtDesktop” plugin “styleplugin”...
View ArticleWhy model data isn't exposed as properties of the delegate object?
For a project menu I have a list view and a sidebar that display properties of selected project. I need to be able to access properties of delegate from the sidebar element. For the moment my...
View ArticleLaunch a child QML window from a parent QML window
I am using Qt 5.1 and the Qt Quick Controls provided with it inorder to implement the user interface. I want to launch a (child) window when user clicks on a button. The part where I am confused is how...
View ArticleWhy model data isn't exposed as properties of the delegate object?
In this case I need to create in my c++ model an Q_INVOKABLE method “get” that return an instance of an element, but while the delegate doesn’t require to register the element type, it’s need for the...
View ArticleLaunch a child QML window from a parent QML window
Thanks, it worked! I was inane enough to use “this” instead of the id of ApplicationWindow. I am curious though, as to how this could be implemented in QML + C++. Please guide me if you know that....
View ArticleI18N - Qt Quick5.0 - How to implement for user entered text string(s)
I’ve explored I18N example of Qt Quick 4.8 and could have it successfully implemented for Qt Quick 5.0 for label strings which are displayed in main.qml. Now, I wish to proceed with next step, where in...
View ArticleQt5 Scene Graph custom geometry and gradients
Hi, Is there any other way to apply gradients to custom geometries in scene graph than creating custom material and own shader programs? Is their some material similar to QSGFlatColorMaterial with a...
View ArticleHow to reload a qml changing contents.
I tried to develop UI in QML. The development environment is embedded. This environment spends a lot of time to boot. So, Tries to use the following method with Loader element. //Main.qml Rectangle {...
View ArticleQt5 Scene Graph custom geometry and gradients
Thanks unai_i! Do you have any example on how this could work? Maybe this kind of general stuff could be already implemented in the ready made materials in the future?
View ArticleQt5 Scene Graph custom geometry and gradients
I don’t really have an example as the code will highly depend on the kind of shape and gradient you are trying to achieve. The easiest way is to use QSGGeometry::ColoredPoint2D for your vertices data...
View ArticleTextEdit font rendering scaling problem in QtQuick 1.1
This problem is already reported here: https://bugreports.qt-project.org/browse/QTBUG-17435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel [bugreports.qt-project.org] and also...
View ArticleQtQUICK 2.0 vs C++ Widget
I have a problem: I want to make a GUI interface to QUICK 2.0. I want to make C + + component that displays a graph and embed it in QUICK 2.0. how to make such a component?
View Article