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

Compile error with QDataStream

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.8.0
    • None
    • gcc (SUSE Linux) 4.6.0 20110523 [gcc-4_6-branch revision 174058]
      openSUSE 11.4 32 bit

    Description

      The following program fails to compile:

      #include <QtGui/QBrush>
      #include <QtCore/QDebug>

      int main(int argc, char *argv[])
      {
      QBrush b;
      qDebug() << b << b.texture();
      }

      The error is:

      test.cpp: In function 'int main(int, char**)':
      test.cpp:7:32: error: ambiguous overload for 'operator<<' in 'operator<<(QDebug, const QBrush&)(((const QBrush)(& b))) << QBrush::texture() const()'
      test.cpp:7:32: note: candidates are:
      /local/Qt4/qt-4.8/include/QtGui/qbrush.h:171:21: note: QDebug operator<<(QDebug, const QBrush&)
      /local/Qt4/qt-4.8/include/QtCore/qvariant.h:606:22: note: QDebug operator<<(QDebug, const QVariant&)

      This is a regression in Qt 4.8 branch. Not sure if the bug is in QDataStream or in QBrush, please reassign if required.

      Attachments

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

        Activity

          People

            earthdomain Earth Domain (Inactive)
            cfeck Christoph Feck
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes