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

QColor - Undefined symbols QColor::QColor(char const*), QColor::QColor(QString const&)...

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.4.2, 6.5.0 Beta1
    • 6.4.1
    • GUI: Painting
    • None
    • All
    • fb35c54b1e (qt/qtbase/dev) fb35c54b1e (qt/tqtc-qtbase/dev), a5be86897 (6.4)

    Description

      Undefined symbols for architecture x86_64:
      "QColor::QColor(char const*)", referenced from:...
      ...
      "QColor::QColor(QString const&)", referenced from:

      Please check the constructors
      QColor::QColor(const QString &name)
      QColor::QColor(const char *name)
      QColor::QColor(QLatin1StringView name)
      and so on

      They are commented out in the qcolor.cpp.
      https://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/painting/qcolor.cpp?h=6.4.1

      // ### Qt 7: remove those after deprecating them for the last Qt 6 LTS release
      /*!
          \fn QColor::QColor(const QString &name)
      
          Constructs a named color in the same way as setNamedColor() using
          the given \a name.
      
          The color is left invalid if the \a name cannot be parsed.
      
          \sa setNamedColor(), name(), isValid()
      */
      
      /*!
          \fn QColor::QColor(const char *name)
      
          Constructs a named color in the same way as setNamedColor() using
          the given \a name.
      
          \overload
          \sa setNamedColor(), name(), isValid()
      */
      
      /*!
          \fn QColor::QColor(QLatin1StringView name)
      
          Constructs a named color in the same way as setNamedColor() using
          the given \a name.
      
          \overload
          \since 5.8
          \sa setNamedColor(), name(), isValid()
      */
      

      While exist in header.

      And the documentation for 6.4 tells nothing about any deprecations
      https://doc.qt.io/qt-6/qcolor.html#QColor-5

      This is likely a merge mistake, it shouldn't be this way. This is not how one typically deprecates some functions )

      Attachments

        For Gerrit Dashboard: QTBUG-108743
        # Subject Branch Project Status CR V

        Activity

          People

            vgt Eirik Aavitsland
            sergei.nevdakh Sergei Nevdakh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes