On Tuesday 1 October 2024 07:53:13 GMT-7 Thiago Macieira wrote:
> Update: this is a real regression. However, meta objects for private classes
> weren't working properly before either, so this only changed what fails.
> 
> Tracking in https://bugreports.qt.io/browse/QTBUG-129570

Quick note: meta object in nested classes is *not* supported. This compiles:
struct Outer
{
    class Inner;
};
class Outer::Inner : public QObject
{
    Q_OBJECT
};

But THIS does not;
struct Outer
{
    class Inner : public QObject {
        Q_OBJECT
    };
};

moc refuses this with:
error: Meta object features not supported for nested classes

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Principal Engineer - Intel DCAI Platform & System Engineering

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-- 
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to