Dmitry Vedenko 7c7ef9a32f
Adds Qt recipe
The recipe is based on the recipe from conan-central, but with a bug fixed in the recipe
2022-03-10 21:51:50 +03:00

27 lines
412 B
C++

#include <QDebug>
#include <QObject>
#include <QString>
class Greeter : public QObject
{
Q_OBJECT
public:
Greeter(const QString& name, QObject *parent = 0)
: QObject(parent)
, mName(name) {}
public slots:
void run()
{
qDebug() << QString("Hello %1!").arg(mName);
emit finished();
}
signals:
void finished();
private:
const QString& mName;
};