r/cpp • • Dec 08 '20

Qt 6.0 Released

https://www.qt.io/blog/qt-6.0-released
273 Upvotes

84 comments sorted by

View all comments

Show parent comments

2

u/Fureeish Dec 08 '20

Got to ask, because I consider inventing a lot of time to properly learn Qt: is this a frequent occurrence that you write those full of macros abominations..?

10

u/uuid1234567890 Dec 08 '20

When dealing with QObjetcs, they are unfortunately unavoidable. I'd prefer if we could get rid of them, but unless we get a large amount of the static reflection features that Andrew Sutton listed in P2237R0, that won't happen.

2

u/Fureeish Dec 08 '20

That would probably be answered by an extensive reseaech, but since you are already here, I'd like to ask one nore thing then: how often do you need those "QObjects"? What exactly are they?

1

u/[deleted] Dec 08 '20

QObject is the base class in Qt's static reflection, signals, and object lifetime framework. See The Meta-Object System in the Qt documentation.

1

u/LonelyStruggle Dec 08 '20

So it's kinda like an NSObject in objective-C?