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

QProperty error using QColor type

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.3.0
    • Core: Object Model
    • None
    • 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

            fabiankosmale Fabian Kosmale
            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