Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
None
-
3.2.0
-
b284de3d0 (dev)
Description
Qt VS Tools does not include a "SVG Widgets" module that QSvgWidget and QGraphicsSvgItem require (https://doc.qt.io/qt-6/qtsvgwidgets-module.html). See the attached screenshot.
Also, any qmake project that has "QT += svgwidgets" in .pro file so that #include <QSvgWidget> and #include <QGraphicsSvgItem> work properly with Qt Creator, although is said to be converted successfully by VS Tools, cannot find corresponding headers if being loaded by Visual Studio. #include fails and Visual Studio complains about "cannot open source file".
Simply combining SVG and Widgets (as screenshot shows) does not work.
Got a simple reproducer uploaded. One can load it from VS Tools and see the problem. In Qt Creator, reproducer works perfectly. But inside Visual Studio, "QSvgWidget" and "QGraphicsSvgItem" cannot be included. "QSvgRenderer" works fine, though. Because "Qt Svg" is there in VS Tools.
Attachments
For Gerrit Dashboard: QTVSADDINBUG-1211 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
584509,2 | Add Qt SVG Widgets to qt6modules.xml | dev | qt-labs/vstools | Status: MERGED | +2 | 0 |