paip.invalid conversion from FormWdg* to SOCKET {aka unsigned int}
paip.invalid conversion from FormWdg* to SOCKET {aka unsigned int}
作者Attilax , EMAIL:1466519819@qq.com
来源:attilax的专栏
地址:http://blog.csdn.net/attilax
D:\qtworkspace\atiqtc9\main.cpp:70: error: invalid conversion from 'FormWdg*' to 'SOCKET {aka unsigned int}' [-fpermissive]
connect(widget, SIGNAL(DoubleClickedSignal()), w, SLOT(ShowMainWindow()));
^
D:\qtworkspace\atiqtc9\main.cpp:70: error: cannot convert 'const char*' to 'const sockaddr*' for argument '2' to 'int connect(SOCKET, const sockaddr*, int)'
原因:
main.app 中使用connect不可以自动moc...
解决:
---------------------
main.app 中使用connect比较特殊.. QObject::connect 这样使用..
QObject::connect(widget, SIGNAL(DoubleClickedSignal()), w, SLOT(ShowMainWindow()));
作者Attilax , EMAIL:1466519819@qq.com
来源:attilax的专栏
地址:http://blog.csdn.net/attilax
D:\qtworkspace\atiqtc9\main.cpp:70: error: invalid conversion from 'FormWdg*' to 'SOCKET {aka unsigned int}' [-fpermissive]
connect(widget, SIGNAL(DoubleClickedSignal()), w, SLOT(ShowMainWindow()));
^
D:\qtworkspace\atiqtc9\main.cpp:70: error: cannot convert 'const char*' to 'const sockaddr*' for argument '2' to 'int connect(SOCKET, const sockaddr*, int)'
原因:
main.app 中使用connect不可以自动moc...
解决:
---------------------
main.app 中使用connect比较特殊.. QObject::connect 这样使用..
QObject::connect(widget, SIGNAL(DoubleClickedSignal()), w, SLOT(ShowMainWindow()));