Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Quick: Attached property type

Attached property must be attached to an object deriving from a particular type

What happened?

You instantiated an attached property in an object of the wrong type.

Why is this bad?

The attached property will not work.

Example

import QtQuick

Item {
    QtObject {
        LayoutMirroring.enabled: true
    }
}

To fix this warning, change the enclosing type to inherit from the type mentioned in the warning message:

import QtQuick

Item {
    Item {
        LayoutMirroring.enabled: true
    }
}
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded