Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Get a pointer from QML to a cartography plugin class
Forum Updated to NodeBB v4.3 + New Features

Get a pointer from QML to a cartography plugin class

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 123 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Deymos
    wrote on last edited by
    #1

    Hello, I have a custom plugin for OpenStreetMap that works offline with maps, and in QML I have a Map component that uses this plugin:

        Window {
            visible: true
            width: 640
            height: 480
            Map {
                id: map
                anchors.fill: parent
                zoomLevel: 4
                center: QtPositioning.coordinate(54,28);
                copyrightsVisible: false
                plugin: Plugin {
                    name: "osm_custom";
                    PluginParameter {
                        name: "osm_custom.mapping.offline.directory"
                        value: "/home/deymos/Рабочий стол/build-Tiler-Desktop_Qt_5_14_1_GCC_64bit-Debug/offline_tiles"
                    }
                }
            }
        }
    

    And now it's time, besides displaying the map, to mark places and draw a route on it, and all calculations should occur on the plug-in side, and so, I need to somehow transfer the coordinates from QML to the plug-in class, ideally if there is such a possibility I need to get a pointer to plugin class and pass coordinates directly.

    P.S. The plugin is located in a different directory and is linked to the QML application only by what is specified in the Plugin component.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved