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

Uic/Designer generates wrong code for Q_PROPERTY

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.6.1
    • 5.5.0
    • Build tools: uic
    • None
    • windows
    • cb24903ef4df0571f8498fca6bc58f5df6dd68af

    Description

      If a Custom Widget with a Q_Property of type Qt::PenStyle like:
      Q_PROPERTY( Qt::PenStyle borderStyle MEMBER m_borderStyle) is used with Qt Designer, the generated header contains the following line:
      label->setProperty("style", QVariant(Qt::SolidLine));

      This results in compile time error like:
      error: C2248: 'QVariant::QVariant' : cannot access private member declared in class 'QVariant'

      Attachments

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

        Activity

          People

            jkobus Jarek Kobus
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes