paip.invalid conversion from FormWdg* to SOCKET {aka unsigned int}
来源:互联网 发布:新淘宝店如何增加访客 编辑:程序博客网 时间:2024/06/01 10:28
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()));
- paip.invalid conversion from FormWdg* to SOCKET {aka unsigned int}
- Implicit conversion loses integer precision: 'unsigned long' to 'CC_LONG' (aka 'unsigned int').
- C++:invalid conversion from 'unsigned char *' to 'const char *'
- Incompatible integer to pointer conversion assigning to 'NSInteger *' (aka 'long *') from 'int'
- incompatible integer to pointer conversion assigning to 'BOOL * _Nonnull' (aka 'bool *')from 'int'
- gcc编译错误(invalid conversion from 'int' to enum)
- Type conversion - unsigned to signed int/char
- Incompatible integer to pointer conversion initializing 'NSInteger *' (aka 'int *')
- invalid conversion from `const char*' to `char*'
- invalid conversion from 'const char*' to 'char*'
- invalid conversion from `const char*' to `char*' .
- invalid conversion from 'const char*' to char*
- invalid conversion from 'void* (*)()' to 'void* (*)(void*)'
- invalid conversion from 'const char*' to 'char*'
- invalid conversion from `void*' to `SeqList*
- invalid conversion from `const char*' to `char*'
- invalid conversion from ‘void*’ to ‘void* (*)
- 允许int*到void*的转换,反之不亦然:无效的转换invalid conversion from `void*' to `int*'
- ftrace 简介
- Installing KVM and Open vSwitch on Ubuntu
- Keepalived 安装与配置
- 笨木头的跑跑跑笔记三 精灵的运动动画
- TLB(translation lookaside buffer)转换后援缓冲器
- paip.invalid conversion from FormWdg* to SOCKET {aka unsigned int}
- 完全优化MySQL数据库性能的八大巧方法
- HTML常用标签
- kprobes tutorial
- Aborting: unable to connect to nodeIp, smpd version mismatch
- jquery-拖动层(五)
- ubuntu 11.10 安装systemtap
- poj 2446 (二分匹配)
- could not be opened. Could not read archive