Passing class object inside Q_PROPERTY and bind it with the QML file
Yes, I think it is possible, If your class is a QObject-dervied class. Can you give me an example ?
View ArticleIs it possible to use QAbstractTableModel with TableView from QtQuick.Controls?
Hi, I’m trying to implement following case: There is 2d table with values. I need to implement UI for viewing data and editing it. To simplify synchronisation between edits from UI and table updates...
View ArticleUsing QList in QML
use QQmlListProperty [qt-project.org] instead of QList. Or use Qt C++ model to contain your QList items. Thank you.
View ArticleUse QtQuick components in Qt 5.2
Thanks Jens, I wasn’t aware that it hadn’t actually released. I’ll be looking through that repo today.
View ArticleHow do I pass keypress events to QQuickFramebufferObject::Renderer?
While you can handle key presses in the renderer using signals, it isn’t exactly a clean separation of rendering and other logic. Ideally the renderer, that operates on the render thread, would perform...
View Article[SOLVED] One out of two Q_PROPERTY working
Hi everyone, I’m back with an other issue concerning Q_PROPERTY of one my object exposing another custom class that is not working properly. Here is some code to understand what is going on : -C++:...
View Article[SOLVED] One out of two Q_PROPERTY working
I have been looking for this for about an hour and four my problem, silly mistakes when registering types with copy/paste , both My1stObject and My2ndObject where registered with the same qmlName
View ArticlePassing c++ pointers to a QQuickItem subclass created in QML
I don’t like singletons either and I don’t think they would be necessary here; QML has no reason to actually use the data other than pass it off to another c++ object, which happens infrequently,...
View ArticleComponent property/variable declaration with children range of validy
Hey, i am declarating variables using property. When i declare them in my top-level component the range is global, but when i am declaring them in a children of my top-level component, the range doesnt...
View ArticleRunning QML application package
Well, QQmlApplicationEngine was introduced in Qt 5.1 and is still a finely useable component. If you are missing some dll’s it would output that, so the dependencies shouldn’t be a problem. And what do...
View Articlehow to display the values that I get on column of the table widget
Hi I get values output from a function and I can display that on a text browser Now I would like to know how to display that values in first column of the table. Actually I can creat the table widget...
View ArticleProblem Using Directory Import for QML Files
I’m pretty sure that the convention is to use a capital letter for element names, so it’s nto as simple as renaming choosePlates.qml to ChoosePlates.qml is it? In addition, if the files are in the same...
View Articlehow to display the values that I get on column of the table widget
Here’s a very small sample how to put the content of a tableview’s cell into a lineedit:...
View ArticleIs it possible to use QAbstractTableModel with TableView from QtQuick.Controls?
Sorry, i forgot to write that it is only ListView, but the principles are close to each other. maybe it’ll help you to find out what you are searching for: I don’t know the answer but i did want at...
View Article[SOLVED] Problem Using Directory Import for QML Files
That did it! So… id properties have to start with lowercase (that I read somewhere), but component names have to start with upper case? That I didn’t see anywhere. Thanks bloke! -Eric
View ArticleIs it possible to use QAbstractTableModel with TableView from QtQuick.Controls?
I’m pretty convinced by now that it is impossible to properly use table models with TableView. I looked at the sources, and it appears TableView is built around ListView. The only question I have left...
View Article2 dimensions flickable GridView
Hello. I want to get a gridview scollable horizontally AND vertically. I have got 100 items with 10 columns and 10 rows and my view is smaller and I want to drag my view everywhere on this surface. How...
View ArticleQtQuick Combobox reset list index not working
Hi, I’m trying to sort simple problem to clear qtquick combobox selected item in documention i read it should be done via set currentindex to -1 but its only clear selection in the list but text in...
View Article2 dimensions flickable GridView
The bad side is that a ListView or a GridView manage the cache memory (with cacheBuffer propertie) while with an Repeater, I have to create and delete my items manually :-(.
View Article