Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for MCUs
  4. Is the Shape QML type supported by NXP 1050?
Forum Updated to NodeBB v4.3 + New Features

Is the Shape QML type supported by NXP 1050?

Scheduled Pinned Locked Moved Unsolved Qt for MCUs
1 Posts 1 Posters 280 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.
  • M Offline
    M Offline
    Manuel81379
    wrote on last edited by
    #1

    Hi,

    I'm just learning the Qt for MCU environment. A use case I'm currently investigating requires vector graphic to draw an arc. Reading the Qt for MCU documentation I found the Shape QML type which would fulfill my application case.

    In my test I have created a simple project containing a QML file with following content based on the sample code found in Qt documentation:

    import QtQuick
    import QtQuick.Shapes 2.3
    
    Item {
        width: 480
        height: 272
        visible: true
    
        Shape {
            width: 200
            height: 150
            anchors.centerIn: parent
    
            visible: true
    
            ShapePath {
                strokeWidth: 4
                strokeColor: "red"
    
                startX: 20; startY: 20
                PathLine { x: 180; y: 130 }
                PathLine { x: 20; y: 130 }
                PathLine { x: 20; y: 20 }
            }
        }
    }
    
    

    Once the library Qul::Shapes is added via target_link_libraries() I can compile the code without errors and flash the target. But no outputs are displayed. The display remains black. Also no runtime error message is displayed on the console (via minicom). Using other QML types works well, so my NXP board and the development tools are working.

    My questions are following:

    Q1. Is the vector graphic (Shape QML type) supported on the NXP 1050 platform?

    Q2. Or are there any other configurations to take in account?

    Q3. If not, what alternative do I have to display vector graphic on NXP 1050?

    Thanks a lot in advance!

    1 Reply Last reply
    1

    • Login

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