use QAction (c++) in QML Menu
Thanks for the answer, I wanted to be sure that there is no other way :)
View ArticleExtending QML - Styling design principles?
Hi! I am developing some custom widgets, and want to make the elements styleable in the same way many QML widgets are. I’m a little confused about what styling is exactly for, based on reading the...
View ArticleIs it possible to define an action for the removal of an item in a ListView?
So I have a ListView with a few dynamically created items. Some of the items have started a timer. At some point, the list gets refreshed and all references to the timers are gone. Conclusion: Stop the...
View ArticleFont hinting from QML
Hi all, is there any way for a QML application to control the kind of font hinting? I’d like to use full hinting on an Embedded Linux system for small fonts. Of course I tried renderType:...
View ArticleIs it possible to define an action for the removal of an item in a ListView?
how about catching onRemove signal ? This will help you.
View ArticleExtending QML - Styling design principles?
Aren’t you just supposed to set the public properties which determine the visuals of the calendar? The event handlers are there for the Calendar to “work”, but we as users should only worry about the...
View ArticleChanging the content of qmldir at runtime
Not sure why you need absolute path. Did you try something like this ? import QtQuick 2.2; import ‘qrc:/pthinks/qmlmodules/’; import ‘qrc:/pthinks/maths/factorial.js’ as fact; Here qmldir is under...
View Article[SOLVED] Is it possible to define an action for the removal of an item in a...
Yap, that is something I was thinking about, but there is no onRemove for Component or Item (The types my delegate for the list consists of and where the reference to the timer is held). Where can I...
View ArticleChanging the content of qmldir at runtime
Hello, If I don’t add qmldir into qrc; the relative path is ok. For ex: ../Plugin. But if I add qmlfir into qrc, QmlEngine can’t understand the current path to specify the location of Plugin, so I need...
View ArticleHow can I save a ListModel in Qt Quick ?
Hi I’m new with Qt Creator and I just started a simple qt quick project to learn about it. My question is : Can I save a ListModel and then load it each time I execute my application ? Thanks.
View ArticleHow can I save a ListModel in Qt Quick ?
Welcome to forum. You need to extend QAbstractitemModel in C++ and expose it QML. Extended class need to have save method to save contents to file or any local storage. When you are start QML app, read...
View ArticleCenter GridView Rows on screen
Suppose I have a GridView whose width takes up the whole screen. I want the item rows to be centered on the screen. How do I do it?
View ArticleAlternatives to Component inside a Component
Hm…. I’m using Window component to create dialogs. So, when I need to create custom dialog I use something like this: import QtQuick 2.2 import QtQuick.Controls 1.2 import QtQuick.Window 2.0 ...
View ArticleImage masks alternative for QML items
Please advise image masks [goo.gl] alternative approach for QML items. I have: 1. Root rectangle with gradient ( Yellow to red and vice versa ) 2. On screen rectangle (anchors.fill: parent) with...
View ArticleLocal storage working on Desktop but not in Android
I am developing my first application in Qt Quick and I am using local storage to store data. When used on desktop (ubuntu) it works perfectly. Deployed in Android though, it stores the data only as...
View ArticleHow to determine the number of items per row in GridView
Trying to get this grid centered regardless of how many items show up in a row (could change depending on screen resolution). If I can get the number of items in a GridView “row” then I can get it...
View ArticleLocal storage working on Desktop but not in Android
Which version of qt you’re using? Are you set offlineStoragePath?
View ArticleLocal storage working on Desktop but not in Android
I am using Qt 5.3 and I didn’t change offlineStoragePath.
View ArticleImage masks alternative for QML items
IMO, using States [qt-project.org] and Transitions [qt-project.org] would be a good way to implement the above.
View ArticleQML Text Element background-color support for divs
Hi I am creating an application which allows a user to design and view an HTML page in Qt Quick 2.0 using QML. My issue is that when I attempt to apply the style=“background-color: #fff” option to the...
View Article