Re: [Interest] QVariant compare operator
On Friday, 17 April 2020 19:15:56 -03 evilruff wrote: > Hi,Recently I was debugging one of my project and ended up with something > which really surprise me.Are there any special reasons why QVariant compare Relational comparisons with QVariant are deprecated in 5.15 and will be removed because they are a misfeaure. Redesign your code so your question does not need to be asked. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel System Software Products ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
[Interest] QVariant compare operator
Hi,Recently I was debugging one of my project and ended up with something which really surprise me.Are there any special reasons why QVariant compare < not fully cover appropriate operators from other Qt classes.For example QByteArray has own operator < but within QVariant switch QByteArray type just defaults to toString() which for QByteArray is toUtf8() leads to fact that if you have:QByteArray a,b;Knowning that a < b is true, QVariant(a) < QVariant(b) may be false..Thats really really inconvinient especially working with ModelView concept which is QVariant based..Sort of workaround might be to allow toString custom replacing for Qt classes but still I will really appreceate if somebody explains me reasons for such strange concept to implement own comparasion within QVariant rather then using already existing operators.RegardsYuriОтправлено со смартфона Samsung Galaxy.___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] Getting source url of QML composite component from C++
Hi all, I am working on a tool to generate C# bindings for QML components defined in .qml files, and have hit a snag: How do I determine the source URL of a QML component that is used as the type of a QML property. Example.qml: import "./dirwithqmldir" Item { // Comes from "dirwithqmldir/OtherQmlItem.qml" property OtherQmlItem myprop } When I inspect the QMetaObject that gets generated for an instance of this Item, the "myprop" property will have a UserType that is named "OtherQmlItem_QMLTYPE2". The registered Qt meta type has no meta object itself. I am desperately trying to get at the source url of the underlying QML component, but haven't found a working way. I see that the QQMLEnginePrivate has the following field, which would have what I need, but it's even private in there: QHash m_compositeTypes; Are there any other ways of getting the source url given a meta type id (and associated QQMLEngine, if needed)? Best Regards Sebastian ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] Qt3D performance, and development resources
Thanks to all for the interesting C++ Qt3D links! I long wanted to play with Qt3D in C++. RHI supporting all major 3D APIs makes it really attractive. Christoph Feck ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest