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. Draw MapPolyline as dotted line
Forum Updated to NodeBB v4.3 + New Features

Draw MapPolyline as dotted line

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

    Hello!
    How to draw QML MapPolyline item as dotted(not solid) line?
    Do I need override MapPolyline repainting?
    How i should do it better?
    Can I do this from QML or do I have to use C++?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      keydon3
      wrote on last edited by
      #2

      As I understand it the easiest way is to modify the C++ rendering for QML element at the stage of packing it in dll.
      In C++ code is enough to change only one line Qt::SolidLine => Qt::DottedLine.
      It is strange that the Qt developers did not make this custom.
      I need make my custome module, as did Qt, make [qmldir]((http://doc.qt.io/qt-5/qtqml-syntax-directoryimports.html#directory-listing-qmldir-files) and plugins.qmltypes.
      And then build my custom dll, which will contain the modified QML types.

      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