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

QProperty error using QColor type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 6.3.0
    • Fix Version/s: None
    • Component/s: Core: Object Model
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      Q_PROPERTY(QColor m_color MEMBER m_color)
      
      QProperty<QColor> m_color;
      
       error: no match for 'operator!=' (operand types are 'QProperty<QColor>' and 'QColor')
       debug/moc_mainwindow.cpp: In static member function 'static void MainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)':
       debug/moc_mainwindow.cpp:78:29: error: no match for 'operator!=' (operand types are 'QProperty<QColor>' and 'QColor')
       78 | if (_t->m_color != *reinterpret_cast< QColor*>(_v)) {
      
         
        QColor
      QProperty<QColor>

        Attachments

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

          Activity

            People

            Assignee:
            fabiankosmale Fabian Kosmale
            Reporter:
            fushengdameng hongyan hongyan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes