[Development] std::optional for Q_PROPERTY
Elias Steurer
kelteseth at googlemail.com
Thu Jul 20 16:01:23 CEST 2023
Hi,
I would like to voice my support for this and even extend the idea:
* std::expected would also be nice here, because it can tell you
/what/ went wrong. Yes, I know it is C++23...
* Support for smart pointers, see QTBUG-60136
<https://bugreports.qt.io/browse/QTBUG-60136>. It is already
possible use smart pointers today, as members but they need to be
declared as raw pointers in Q_PROPERTY, see this class for example
<https://gitlab.com/kelteseth/ScreenPlay/-/blob/master/ScreenPlay/inc/public/ScreenPlay/app.h#L39>.
* General futures api, see QTBUG-101025
<https://bugreports.qt.io/browse/QTBUG-101025> so we do not block
the main thread.
Cheers,
Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230720/46b946ee/attachment-0001.htm>
More information about the Development
mailing list