Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-1211

Qt VS Tools does not support Qt SVG Widgets

    XMLWordPrintable

Details

    • 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

        1. VSTools.png
          VSTools.png
          75 kB
        2. QTVSADDINBUG-1211.7z
          0.9 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ali.demiralp Ali Can Demiralp
            luqiaochen Luqiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes