Tag Info

New answers tagged

0

The truth is that the API does not provide support for this. Because the API implements sandboxing trough the content hub. My application would have to go trough the sandbox.


0

I'm not 100% certain, but I suspect the problem is that you're storing the database connection instead of re-obtaining it each time you need to access the database. The LocalStorage documentation says, "Database connections are automatically closed during Javascript garbage collection." This makes me wonder if the connection is closed at the end of the ...


3

Ubuntu components include the StateSaver capability. This allows QML properties to be saved at program exit and restored at restart. For each element with properties you wish to save, set the StateSaver.properties property to a comma separated list of the properties that should be saved. However, there are two enormous limitations of the StateSaver. ...


1

Add clip: true to the UbuntuListView. By default, QML objects have this set to false, which allows them to draw outside their allocated rectangle. I assume this is an optimization, since it allows the renderer to avoid calculating clipping for each element. Most QML objects only draw within their allocated rectangle, so you don't notice this. But list ...


1

By the way, I also need to remove the corresponding model item, but how do I do that? Apparently this was the solution: I just deleted from the model, and the view updated itself. I added an ID to the listElements: ListElement {itemId: 1; itemName: "one"} In the action's onTriggered, I searched for the item and removed it from the model: ...



Top 50 recent answers are included