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

Uic/Designer generates wrong code for Q_PROPERTY

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.5.0
    • Fix Version/s: 5.6.1
    • Component/s: Build tools: uic
    • Labels:
      None
    • Environment:
      windows
    • Commits:
      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

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

          Activity

            People

            Assignee:
            jkobus Jarek Kobus
            Reporter:
            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