Код: Выделить всё
#include
#include
#include
class Foo : public QObject
{
Q_OBJECT
};
class Bar : public QObject
{
Q_OBJECT
};
struct Vis
{
void operator()(const Foo &f)
{
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79600430/stdvisit-for-qobjects[/url]
Мобильная версия