-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using QGeoView in ui.qml #24
Comments
This project was created to offer an alternative to Qt maps that are only available in QML. So use Qt maps (QLocation ) if you need to add a map to your QML program. |
Qt Location and Qt Positioning are removed modules for QT6. So, how can I use QLocation in my QML program? |
Are you sure ? |
Is it correct? |
QGeoView is QtWidget solution and not well adopted to be used in QML. P.S. here is related topic: https://forum.qt.io/topic/74727/rendering-qgraphicsscene-into-qml-scene-texture |
Stick to Qt 5 if you can. Regards. |
Hello @AmonRaNet, |
@Tevhit You need to forward mouse/touch events from QML to QGeoView. Lets say you will create some proxy QObject class and will add it instance as property to QQuickPaintedItem, than you can access it over QML. Very simplified (you need to send all events press, release, etc): in cpp:
in QML:
|
How can I use QGeoView widget in a sample ui.qml file?
The text was updated successfully, but these errors were encountered: