标题:【提问】是不是slot的参数不能为QVariant?
作者:yanboo
日期:2005-11-14 16:25
内容:
QAxContainer Module包装COM组件的时候,会生成一些参数为QVariant类型的Signals,如
void OnAfterDraw(QVariant display, int viewDrawPhase);
但与我自己写的这样的slot连接总是出错:
connect( WidgetPageLayout, SIGNAL(OnAfterDraw(QVariant, int)), this, SLOT(OnAfterDraw(QVariant, int)));
若slot中没有QVariant类型的参数,则运行正常:
connect( WidgetPageLayout, SIGNAL(OnAfterDraw(QVariant, int)), this, SLOT(OnAfterDraw()));
谁知道为什么? 不知道大家有没有遇到?
#1 [yanboo 11-15 14:52]
高手都感冒了吗?好歹说上一两句嘛
#2 [yanboo 11-17 09:10]
宣布结贴