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. Qtlocation run with linuxfb not draw MapPolyline
Forum Updated to NodeBB v4.3 + New Features

Qtlocation run with linuxfb not draw MapPolyline

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 1 Posters 292 Views
  • 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.
  • P Offline
    P Offline
    poucz
    wrote on last edited by
    #1

    Hi,
    I write simply code That draw line in map.
    If I run the program in windows manager line is displayed corectly.
    When I run the program without xserver ( with parametr -plugins linuxfb) map is displayed corectly, but no line is showen.

    I need run program without xserver.
    Can you help me?

    Thank for help

    import QtQuick 2.9
    import QtQuick.Window 2.2
    import QtLocation 5.6
    import QtPositioning 5.6
    
    Window {
        width: 640
        height: 480
        visible: true
    
    
        Plugin {
            id: mapPlugin
            name: "osm"
        }
    
        Map {
            anchors.fill: parent
            plugin: mapPlugin
            center: QtPositioning.coordinate(59.9, 10.75)
            zoomLevel: 14
    
            MapPolyline {
               path:[
                {latitude:59.85, longitude:10.70},
                {latitude:59.97, longitude:10.86}
               ]
    
               line.color: 'red'
               line.width: 5
            }
    
        }
    }
    
    
    1 Reply Last reply
    0
    • P Offline
      P Offline
      poucz
      wrote on last edited by
      #2

      Same behavior on Qt5.10 and Qt5.11 - maybe it's bug?

      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