QML XmlListModel more than one element
Helo :) I am trying to get xml data into a QML XmlListModel, I’ve gotten most of it working now but bit lost with the last part to get multiple category streams. The xml itself looks like this:...
View ArticleDrag-able splash screen?
Nevermind, it does work! Sorry about that, I was setting the MouseArea to the wrong place.
View ArticleUse TableView to handle large data
Have anyone use TableView to handle a lot of data(10000 rows, 5 columns)? I need to update the model(listModel) at most 100 times per second Every time I update, i need to do one comparison(atleast)...
View Article[SOLVED] Nested QML doesn't trigger a build
Hmmm, I must be confused about which version of Qt I was running. I currently have four of them installed for testing purposes. I just re-ran again in 5.3.2 and you are correct it is fixed. FYI, I...
View ArticleAnimated Items in Gridview hides behind following items
Hi, I need some help! I have a grid view with a random number of items. If I click on an item I want the item to change position and size (should be greater and moving to the center of the...
View Articledynamic reparenting?
Hi folks, can somebody help me with the following problem? Setup: I have rectangles which can be dragged around with the mouse and there are DropAreas where the rectangles can be dropped. Each DropArea...
View ArticleApplying 'allowsVibrancy' from AppKit under OS X 10.10 (Yosemite) on desired...
Sure it’s worth, nothing wrong in asking good question :)
View ArticleWhen do the Loader clean resource?
hi all: I use Qt5.3 with QtQuick2.0. First, I use the Loader to load “screen1.qml”. screen1.qml just has a Rectangle element with objectName = “screen1”. Then, when the user click the Rectangle on the...
View Articledynamic reparenting?
Hmmm, does not work! What am I doing wrong? I paste the whole, runnable example. Maybe someone can check my code? I have inserted the new lines of code at row 148. What is wrong? import QtQuick 2.3...
View Articleaccessing parameter (with non-basic type) of C++ signal
Thanks for replies. No, QGeoSatelliteInfo is not registered because i wanted just to get size of the list. I have read in docs that List<T> where T is non-basic type cant be used for...
View ArticleTiming issue with draganddrop and reparenting
Hi folks, I encountered a “timing-issue” and unfortunately I don’t have an idea how to solve it. Setup: I have a rectangle which can be dragged around with the mouse and there is a DropArea where the...
View ArticleWhat is __panel
I’m working on a QtQuick (QML) project and I keep seeing references to __panel in code samples, but google, etc. has not helped me find out what __panel refers to. I would guess that the double...
View ArticleHow to know when ListView item enters the visible area?
Hi, I’m looking for a way to know when an item in my ListViews enters the visible area, so that after a certain delay I can mark that item as read. I can’t find any signal, and knowing that ListView...
View ArticleWhen do the Loader clean resource?
on QML the objects are not destroyed immediately, but there is something similar to a garbage collector as a concept. So, when you change from screen1 to screen2 the object is not destroyed at the same...
View ArticleHow to know when ListView item enters the visible area?
I agree with Cianlucas suggestions. ListView will not actually preload items by default unless you ask for it and you can explicitly set the cacheBuffer to 0 to prevent that. So for most cases you can...
View Article[Solved] dynamic reparenting?
Hi p3c0, thanks for your answers. Your proposed solutions work. And yes the main-problem is the interference of the ParentChange and the drag-handling. BTW: I found a different solution: In the...
View Article[Solved] Timing issue with draganddrop and reparenting
The problem can be solved by resetting the state before executing the drop. It’s a quirk but works. ...
View ArticleListView item disappears (not repainted) after scrolling outside visible area
I have a customised QStandardItemModel which I access in a QML ListView. My ListView is exhibiting this pathology: if I scroll the items up (by touch, on an Android device) such that the top items move...
View ArticleLogin to facebook and download data
Hi, can anyone help me with login to facebook via Qt & Javascript? I need to download profile picture, and check friends, how many msgs, likes etc. But I’m freeze at dead point, i can’t login...
View ArticleListView item disappears (not repainted) after scrolling outside visible area
it would be tough without seeing the code Yeah, I appreciate the trouble :) Have you reimplemented rowCount(const QModelIndex &parent) ? No, I keep the default one from QStandardItemModel. Or...
View Article