Qt quick control type unavailable when debugging on target board with VS2019
-
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! -
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!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
-
A Allen Cai has marked this topic as solved on