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

QProperty error using QColor type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.3.0
    • Core: Object Model
    • None
    • Windows

      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>

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

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

              Created:
              Updated:

                There are no open Gerrit changes