16,235
社区成员
发帖
与我相关
我的任务
分享
void Dialog::mouseDoubleClickEvent(QMouseEvent *double_event)
{
qDebug()<<"cvb";
if(double_event->type()==QMouseEvent::MouseButtonDblClick)
{
//connect(ui->calendarWidget,SIGNAL(clicked(QDate)),this,SLOT(double_cal()));
//这里connect是多余的。直接调用函数:double_cal();
double_cal();
}
}
void Dialog::double_cal()
{
qDebug()<<"asd";
}