|
1Qter豆
QDrag *drag = new QDrag(event->widget()); //为event所在窗口部件新建拖动对象
这句话提示 error: C2664: 'QDrag:Drag(const QDrag &)' : cannot convert argument 1 from 'QWidget *' to 'QObject *'Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
怎么破 ? 是Qt快速入门第19篇里边的代码
|
|