Hello everybody,
I'm having a problem porting an application from Qt 4.8 to Qt 5.3
That code is working with Qt 4.8 :
bool ret1 = ax->setControl("{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}");
QVariantList params;
params << 1 << "192.168.0.50";
int ret2 = ax->dynamicCall("SetURL(int, QString)", params).toInt();
QAxWidget * ax = new QAxWidget();
bool ret1 = ax->setControl("{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}");
QVariantList params;
params << 1 << "192.168.0.50";
int ret2 = ax->dynamicCall("SetURL(int, QString)", params).toInt();
To copy to clipboard, switch view to plain text mode
I can compile it with Qt5 without problem but ret2 is giving me an error code
if I change my code to :
...
params << 1 << "";
int ret2 = ax->dynamicCall("SetURL(int, QString)", params).toInt();
...
params << 1 << "";
int ret2 = ax->dynamicCall("SetURL(int, QString)", params).toInt();
To copy to clipboard, switch view to plain text mode
ret2 is good (but of course i need to put an IP Address)
Any idea ?
Thx !
Bookmarks