On Saturday 31 August 2024 15:33:39 GMT-7 David M. Cotter wrote:
> I manually twiddle the memory returned by bits(), and i want the cacheKey to
> be invaliated, so it knows the image cached on the video card is stale. I
> want to mix QPainter calls with my manual bit-twiddles. There doesn't seem
>
I manually twiddle the memory returned by bits(), and i want the cacheKey to be
invaliated, so it knows the image cached on the video card is stale. I want to
mix QPainter calls with my manual bit-twiddles. There doesn't seem to be a way
to do this.
I have way too much legacy code that does man
Am 31.08.24 um 23:06 schrieb Dirk Hohndel via Interest:
Yeah, I need one place where I can load my "main" QML file, and I need
a way to make my C++ classes visible from within those QML files.
So I'm not sure how I'd do that with only one "load"...
In Qt5 I used the "load" to get the main.qml f
Hi Dirk,
you may need to add one or more calls to
`QQmlApplicationEngine::addImportPath()` (
https://doc.qt.io/qt-6/qqmlengine.html#addImportPath): One to the file
system location where you installed your QML module, another to where to
find the `main.qml` file. (You may want to use Qt resources t
Yeah, I need one place where I can load my "main" QML file, and I need a way to
make my C++ classes visible from within those QML files.
So I'm not sure how I'd do that with only one "load"...
In Qt5 I used the "load" to get the main.qml file and then RegisterType to get
my C++ classes visible i
Hi Dirk,
in my apps ATM I'm only using one qt qml module, so I'm doing
engine.loadFromModule(...)
see https://t1p.de/ekkeCMakeQMLModule
Have no experiences yet if you have to deal with more modules. Later
will modularize my apps, much other refactorings must be done before ;-)
but you should
Hi Ekke,
Thanks so much for the quick response.
This is a massive project (Subsurface-mobile) that we build with CMake.
Thanks for the link to your site with an explanation... this feels like I'm
**ALMOST** there...
I had already added QML_ELEMENT to the class header.
In the existing code, w
What is your build system ? QMake or CMake ?
Instead of qmlRegisterType you should use QML_ELEMENT
see https://t1p.de/ekkeQML_ELEMENT
ekke
Am 31.08.24 um 21:23 schrieb Dirk Hohndel via Interest:
Hi there,
I've been trying to figure out how to port a QML app from Qt5 to Qt6
and have been una
Hi there,
I've been trying to figure out how to port a QML app from Qt5 to Qt6 and have
been unable to solve what seems like a fairly basic issue.
In the Qt5 version, I was able to make a class available from C++ by simply
calling
...
qmlRegisterType("org.subsurfacedivelog.mobile", 1, 0, "QML