Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-103183

#include <QTransform> fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.2.4
    • GUI: Painting
    • None
    • Linux/X11

    Description

      I am not able to compile a file with this single line in it:

      #include <QTransform>

       

      Errors are

      include/QtGui/QPainterPath:1,
      include/QtGui/qpainterpath.h|165 col 78| error: invalid use of incomplete type ‘class QTransform’
      QList<QPolygonF> toSubpathPolygons(const QTransform &matrix = QTransform()) const;
      In file included from include/QtGui/qpolygon.h:45,
      include/QtCore/qpoint.h

      note: forward declaration of ‘class QTransform’

       

      It doesn't help to include QPainterPath earlier either,

       

      To allow it to compile, you must:

      class QPainterPath
      #include <QPainterPath>
      #include <QTransform>

       

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            elegant_dice Paul
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes