Listview delegate using Loader gives null element
Hi everyone, I am using a ListView that is supposed to display different type of data so it needs different delegates according to data’s type. What I did is that the delegate is a Loader that will...
View ArticleConnecting a Qt Quick Controls signal to a C++ slot
Hi, there are many ways of doing what you want, so I can just tell your how I would do this in your case. Instead of connecting a QML signal to a c++ slot I usually just call the c++ slot from c++...
View ArticleListview delegate using Loader gives null element
This would not work because Loader is called whenever the ListView encounters a row in its model because that Loader is set as the delegate. So calling myListView.delegate = item does nothing but...
View ArticleInclude QML in a Qt Widget application
Hi – I am attempting to embed a QtQuickView window into a layout on a QMainWindow object via the use of a QWidget::createWindowContainer call. While it is partially working, I am having several...
View ArticleCanvases update: best practice and advices
Hi Chris, 1) Got it. I’ve done something similar in another portion of code. Good point. 2) Interesting point. If I follow the suggestion in 1) this point still applies to an C++ element-value type as...
View ArticleSelective crop when using Transitions
Obviously…;-) I was informing to know what is considered common nowadays / easy to explain to new users since Devnet doesn’t have the capability to store images. Imgur seems to fulfill the needs, at...
View ArticleQML and js reading json file and change content "on the go"
well to explain that a little, everything that comes from outside of QML (a file on your disk, network etc) goes through c++, you might not see it but If you use an Image in QML the file gets loaded...
View ArticleFont rendering bug on some Android devices!?
Hi, I have some weird font rendering bug with Qt 5.2.1 on Android, until now only one user reported that bug but I cannot reproduce it on any of my Android devices. It looks like this (he send me a...
View ArticleFlickable doesn't function in a Column
Hi, I think you have to set the contentHeight of the Flickable to the height of the Column, also the Column height should be the height of all children, usually you don’t need to set the height in a...
View ArticleFont rendering bug on some Android devices!?
Hi, the user didn’t provide the android version.. I might ask him, but as far as I can see it should be Android 4.0.3+ Anyway I don’t think that should matter much, since Qt should run on all android...
View ArticleSelective crop when using Transitions
I don’t think that has anything to do with how you create the object, sometimes you can’t change the position (x/y) because of the layout or anchors, in your case it’s hard to see why it doesn’t work...
View ArticleQtGraphicalEffects usage questioning
I’ve recently started to use QtGraphicalEffects module and the effect set is really nice! Howerver I think the approach to apply an effect on a qml item is somewhat cumbersome. The docs...
View ArticleQtGraphicalEffects usage questioning
+1 Nice idea, I use “many” overlay effects in my app so your second syntax would be a relief. I do use the first syntax mentioned in the doc so far, because as you mentioned it is impossible to access...
View ArticleGet all the childrne form an element, even the "outerly added children"
Hi, I am doing a little project only consisting in a button (that I will use later in another project) and I have a problem: The code is here: https://github.com/ddeunagomez/qmlbutton , check...
View ArticleIs there a way we can use a period/dot seperator in variable names in qml for...
My QML file should look something like this Rectangle { id: rect width: 500 height: 500 color:...
View ArticleGet all the childrne form an element, even the "outerly added children"
You are still missing the length property? parent.children is a list or array and you are comparing that to 0.
View ArticleIs there a way we can use a period/dot seperator in variable names in qml for...
I don’t think you can do that, but there are many ways to set the value. You could use a global property and bind it to the text and then easily change it from c++ or you get the specific QML item from...
View ArticleBlocking behavior Quick qt 5.2.1: random crash on Image elements when caching...
i’m sorry i read it wrong
View Article