"initialize()" - it is slot?
widget may not have Id if this "Alien Widget" (ex. child inside main window).
"initialize()" - it is slot?
widget may not have Id if this "Alien Widget" (ex. child inside main window).
Q_ARG("int", renderWidget->width())
Q_ARG takes a type not a string as the first argument![]()
HI ,
Facing an issue for passing a pointer as QARG in invokeMethod :
I am calling the api void CAppManager::launchUrl(const int f_iXcoord,const int f_iYcoord,const int f_iHeight, const int f_iWidth,const QString f_cobjUrl,unsigned long *f_ulRenHandle,bool bSetupURL) as
QMetaObject::invokeMethod(this,"launchUrl",Qt::Que uedConnection,
Q_ARG(int,0),Q_ARG(int,0),Q_ARG(int,480),Q_ARG(int ,800),Q_ARG(QString,sSetUpURL),Q_ARG(unsigned long*,handle),Q_ARG(bool,true));
The issue seems to be with ARG f_ulRenHandle . As when the function had this argument only as pass by value and in InvokeMethod I had passed just Q_ARG(unsigned long,handle) instead of Q_ARG(unsigned long*,handle).It worked.
handle here has to be pointer or refrence as its getting modified in launchURL API .Here I am using pointer as we can't use Refrences with Q_ARG.Here invoke method is always returning 0.
I am initializing/declaring handle as follows :
unsigned long dummyHandle=0;
unsigned long * handle = &dummyHandle;
Please let me know what measure should i take to solve this issue ?
Bookmarks