Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TestController : public QObject
- {
- Q_OBJECT
- public:
- explicit TestController(QObject* parent = 0) : QObject(parent) {}
- TestController(const TestController&) : QObject() {}
- public slots:
- QVariant testAction1()
- {
- auto fdMaster = new FdMasterProfi("MyPDP800", "{DEADBEEF}", 5, this);
- return QVariant::fromValue(fdMaster);
- }
- };
- /*
- Preparing to call controller action...
- Action return type: QVariant
- QVariant(FdMasterProfi*, FdMasterProfi(0x8dc4700) )
- QJsonObject({"name": "MyPDP800","objectName": "","parentGuid": "{DEADBEEF}","profiAddr": 5})
- Replying with content...
- "jQuery183042586588277481496_1354996573054({
- "name": "MyPDP800",
- "objectName": "",
- "parentGuid": "{DEADBEEF}",
- "profiAddr": 5
- }
- )"
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement