Advertisement
bkuhns

Untitled

Dec 8th, 2012
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.77 KB | None | 0 0
  1. class TestController : public QObject
  2. {
  3.     Q_OBJECT
  4.  
  5. public:
  6.     explicit TestController(QObject* parent = 0) : QObject(parent) {}
  7.     TestController(const TestController&) : QObject() {}
  8.    
  9. public slots:
  10.     QVariant testAction1()
  11.     {
  12.         auto fdMaster = new FdMasterProfi("MyPDP800", "{DEADBEEF}", 5, this);
  13.  
  14.         return QVariant::fromValue(fdMaster);
  15.     }
  16.    
  17. };
  18.  
  19. /*
  20. Preparing to call controller action...
  21. Action return type:  QVariant
  22. QVariant(FdMasterProfi*, FdMasterProfi(0x8dc4700) )
  23. QJsonObject({"name": "MyPDP800","objectName": "","parentGuid": "{DEADBEEF}","profiAddr": 5})
  24. Replying with content...
  25. "jQuery183042586588277481496_1354996573054({
  26.     "name": "MyPDP800",
  27.     "objectName": "",
  28.     "parentGuid": "{DEADBEEF}",
  29.     "profiAddr": 5
  30. }
  31. )"
  32. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement