Render texture to QQuickFramebufferObject using OpenGL
I’m following QQuickFramebufferObject example and now I’m editing logorenderer class to render single texture that rotates in 3D and it only renders black square. Could you help me, please? Thank you....
View ArticleHowTo: Struct -> QVariant -> QML type
I think you should wrap your struct in an QObject-derived class, and then register this class to QML engine so that you can instantiate the class in QML. You can create a method, which is callable in...
View ArticleWay to filter/search ListView contents
Sorry, my brain wasn’t working properly — I completely missed the fact that you’re working in QML. Anyway, does this help?:...
View ArticleHow to use other items in a view?
Hi, I’m new to QtQuick but have already done a lot with QtQwidgets and the standard views like QTableView. In our current project we still use QTableView to display appointments. When an appointment...
View ArticleUsing a Loader for a string of QML
I’ve been using the Loader QML element for loading screens. Now I’m trying to load a string of QML dynamically. Qt.createQmlObject enables me to do so, but I can’t seem to get the Loader element to...
View ArticleHow to use other items in a view?
Okay, I have found a way: TableView { TableViewColumn{id: col1; role: "V1"; title: "VALUE_1"; width: 100 } ...
View ArticleQt Quick Compiler
Can I buy the Qt Quick Compiler add-on by itself or is it only available for hundreds of dollars per month via an enterprise subscription?
View ArticleQt Quick Compiler
Ask Digia, maybe they will make some special offer for you. Otherwise, you need the whole commercial package, AFAIK.
View ArticleQtQuick very slow on linux
Most of the unexpected performance problems seen with QML seem to relate to rendering, particularly when OpenGL rendering is being carried out using software rendering rather than hardware. If you...
View ArticleHow to queue the invocation of a slot instead of calling directly ?
The closest you can do is create a Timer object with a timeout of 1 millisecond (actually, 0 might work, not sure), and invoke the function in the onTriggered / onTimeout or whatever it’s called,...
View ArticleNo mechanism to be notified by QImage on last reference to private data
Here’s my requirements: rgb pixel data is generated asynchronously (by decoders, transforms, etc., that are not part of Qt). A QImage is created from the data (the data must not be copied for...
View Article'QQmlListProperty' is not registered?
I want to use QQmlListProperty to access list-values in QML. The class where I register the list with Q_PROPERTY(QQmlListProperty<int> items READ items) is a...
View Article'QQmlListProperty' is not registered?
Okay, I have found the solution: In my example class I had to set an instance of the class in the root context as property of course. In my singleton class I just had to add the namespaces in the...
View ArticleQml Canvas loadImage not working
I have a Qt Quick app that is trying to load an image (from a local drive) into a Canvas element. canvas.loadImage("C:\Users\John_T\Desktop\paint.png") And then:...
View ArticleEmbedding a QWindow inside a QML scene?
Is it possible to embed a QWindow inside a QQuickItem? For example, if I have a QWindow that I’m using to render an OpenGL scene (or I just have a second QQuickView ) and I want to use it as an item...
View ArticleGetting bytes from VideoOutput
Hello All, I’m using an extension of QVideoProbe haplessly stolen from this post (http://www.qtcentre.org/archive/index.php/t-57981.html) in an attempt to get QVideoFrames from my Camera. The...
View ArticleUndo the setContextProperty
Can we undo the setContextProperty() operation ? I use setContextProperty to bind a particular property to the QML. I want to add a feature wherein I should be able to undo this binding “effect”...
View ArticleQtQuick 2 unreliable, breaking and showing "anonymous" error messages ?!?
I am getting “anonymous” error messages from QML, bindings breaking in automated testing environment. Note that all code works perfectly well when the user interacts with it, but as soon as I run...
View ArticleQml Canvas loadImage not working
OK, it works now. Paths needed to be something like this: file:///C:/Users/John_T/Desktop/something.png If only those error messages were a little more helpful.
View Article