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. STM32F769 board, QML

STM32F769 board, QML

Scheduled Pinned Locked Moved Solved Qt for MCUs
3 Posts 2 Posters 912 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.
  • S Offline
    S Offline
    Sachin_Og
    wrote on last edited by
    #1

    I have a STM32F769i evk board and I followed the webinar video to develop a simple QT app and displayed on LCD screen on that board. Everything works fine till now.
    But as I moved on and I tried to load qt logo png image file by simply adding its source in my qml file I am getting error :
    Failed to find image in the resource system
    source: "images/qt-logo.png

    I cross checked in the video and the CMakeLists.txt files were same and it was working fine there.
    Is there something I missed from that webinar video?

    Thanks

    1 Reply Last reply
    0
    • ylopesY Offline
      ylopesY Offline
      ylopes
      wrote on last edited by
      #2

      I suppose you watched the webinar video for the 1.0 release. The way you can include images to your application has slightly changed since version 1.1 and up. It is not enough anymore to have the file in your application folder, you must also declare it to the Qt resource system in your CMakeLists.txt with:

      qul_add_resource(myapp FILES images/qt-logo.png)
      

      The documentation about this is there: https://doc.qt.io/QtForMCUs/qtul-resources.html

      1 Reply Last reply
      2
      • S Offline
        S Offline
        Sachin_Og
        wrote on last edited by
        #3

        Thank you ylopes, it works.
        Yes I watched the video for 1.0 release and currently I am working on 1.2 version.
        I missed the documentation. Thanks for the link.

        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