25 June 2025
Is there a guide for the vscode plugin for qml? Do I need to install Qt itself separately? Currently I use PySide6 and it doesn't work, saying
Failed to import QtQuick.Layouts. Are your import paths set up properly? Did you set the "QT_QML_GENERATE_QMLLS_INI" CMake variable on your project to "ON"? [import]
xiao zhangWhen I use pyinstaller to package the pyside6 program, I find that the packaged executable file is very large. Does anyone know how to optimize it?
pyinstaller should have built-in the selection of the modules that you are only using, I remember that update from some time ago. I hope I'm not confusing it.
I'd recommend you to try either 'pyside6-deploy' directly, which underneath uses nuitka, which IMHO is superior to PyInstaller in many ways.
xiao zhangWhen I use pyinstaller to package the pyside6 program, I find that the packaged executable file is very large. Does anyone know how to optimize it?
I remember that Pyinstaller was packaging more then needed when creating a dir installer
rainzeeIs there a guide for the vscode plugin for qml? Do I need to install Qt itself separately? Currently I use PySide6 and it doesn't work, saying
Failed to import QtQuick.Layouts. Are your import paths set up properly? Did you set the "QT_QML_GENERATE_QMLLS_INI" CMake variable on your project to "ON"?
you mean: https://www.qt.io/blog/new-qt-extension-for-visual-studio-code-1.0-published ?
I haven't use the plugin https://marketplace.visualstudio.com/items?itemName=TheQtCompany.qt to be honest, but in case it doesn't work out of the box wrt QtQuick aspects, I'd open a bug report on their JIRA project, or ask in the forum.
From what I know, there is no much Python support there, but they are working on it: https://bugreports.qt.io/projects/VSCODEEXT/issues/VSCODEEXT-3?filter=allopenissues (notice that VSCODEEXT is the JIRA for that extension, not PYSIDE)
Cristián 🥑you mean: https://www.qt.io/blog/new-qt-extension-for-visual-studio-code-1.0-published ?
I haven't use the plugin https://marketplace.visualstudio.com/items?itemName=TheQtCompany.qt to be honest, but in case it doesn't work out of the box wrt QtQuick aspects, I'd open a bug report on their JIRA proj
got it