|
You are here |
pvs-studio.com | ||
| | | | |
dvratil.cz
|
|
| | | | | Thank you to everyone who reported issues and contributed to QCoro. Your help is much appreciated! Support for awaiting Qt signals with QPrivateSignal Qt has a feature where signals can be made "private" (in the sense that only class that defines the signal can emit it) by appending QPrivateSignal argument to the signal method: class MyObject : public QObject { Q_OBJECT ... Q_SIGNALS: void error(int code, const QString &message, QPrivateSignal); }; QPrivateSignal is a type that is defined inside the Q_OBJECT macro, so it's private and as such only MyObject class can emit the signal, since only MyObject can instantiate QPrivateSignal: | |
| | | | |
www.think-cell.com
|
|
| | | | | ||
| | | | |
www.foonathan.net
|
|
| | | | | The size of std::array is known at compile-time given the type. Yet it only provides a regular .size() member function: template struct array { constexpr std::size_t size() const { return N; } }; This is annoying if you're writing generic code that expects some sort of compile-time sized range. | |
| | | | |
brevzin.github.io
|
|
| | | Setting the Stage | ||