
Originally Posted by
Fastman
May be you can show some example ?
Let's see...
class SomeInterface {
public:
virtual ~SomeInterface(){}
virtual int method1() const = 0;
virtual std::string method2(int) = 0;
// etc.
};
class MyQtImplementation : public SomeInterface {
public:
MyQtImplementation(...){...}
int method1() const { qDebug() << "Qt here"; return 1; }
std
::string method2
(int num
) { return QString::number(num
).
toStdString();
}};
class SomeInterface {
public:
virtual ~SomeInterface(){}
virtual int method1() const = 0;
virtual std::string method2(int) = 0;
// etc.
};
class MyQtImplementation : public SomeInterface {
public:
MyQtImplementation(...){...}
int method1() const { qDebug() << "Qt here"; return 1; }
std::string method2(int num) { return QString::number(num).toStdString(); }
};
To copy to clipboard, switch view to plain text mode
Bookmarks