Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt quick control type unavailable when debugging on target board with VS2019

Qt quick control type unavailable when debugging on target board with VS2019

Scheduled Pinned Locked Moved Solved Installation and Deployment
2 Posts 1 Posters 386 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.
  • A Offline
    A Offline
    Allen Cai
    wrote on last edited by
    #1

    Allen Cai about an hour ago
    I met a problem when debugging a simple qml application on target board using VS2019. The application is very simple that just displays a Button. The target board is running Debian/bookworm with Qt packages installed like qt-base-dev, qt6-declarative-dev, qml6-module-qtquick, qml6-module-qtquick-controls. On my laptop, when debugging, VS2019 will spawn a podman container in WSL2 and call GDB. I use QQuickView to load a button qml and it returns an error. The error says the Button type is unavailable. The Button is a type in quick control. From the VS2019 output window, I can see the Qt libraries are all loaded on the target board including Qt quick controls2. And if I use a Rectangle which is a type in qt quick, there will be no problem. I'm using Qt6.4.2. What could be the reason? Thank you!

    A 1 Reply Last reply
    0
    • A Allen Cai

      Allen Cai about an hour ago
      I met a problem when debugging a simple qml application on target board using VS2019. The application is very simple that just displays a Button. The target board is running Debian/bookworm with Qt packages installed like qt-base-dev, qt6-declarative-dev, qml6-module-qtquick, qml6-module-qtquick-controls. On my laptop, when debugging, VS2019 will spawn a podman container in WSL2 and call GDB. I use QQuickView to load a button qml and it returns an error. The error says the Button type is unavailable. The Button is a type in quick control. From the VS2019 output window, I can see the Qt libraries are all loaded on the target board including Qt quick controls2. And if I use a Rectangle which is a type in qt quick, there will be no problem. I'm using Qt6.4.2. What could be the reason? Thank you!

      A Offline
      A Offline
      Allen Cai
      wrote on last edited by
      #2

      qt6-base-dev,
      qt6-declarative-dev,
      qml6-module-qtqml-workerscript,
      qml6-module-qtquick-templates,
      qml6-module-qtquick,
      qml6-module-qtquick-controls,
      qml6-module-qtquick-layouts,
      qml6-module-qtquick-window,

      install all the packages above solves the problem

      1 Reply Last reply
      0
      • A Allen Cai has marked this topic as solved on

      • Login

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