button1 = new QPushButton(this);
button2 = new QPushButton(this);
button1->setGeometry(QRect( 9, 53, 100, 100));
button2->setGeometry(QRect( 120, 53, 100, 100));
button1->setPaletteBackgroundColor( QColor( 80, 142, 193 ) );//QColor( 80, 142, 193 )
button1->show();
button2->setPaletteBackgroundColor( QColor( 80, 142, 193 ) );//QColor( 80, 142, 193 )
button2->show();
ui->buttonGroup->insert(button1,0);
ui->buttonGroup->insert(button2,1);
上面在buttonGroup里面加入2个
按钮,正常情况如下:
[attachment=10800]
结果鼠标一移过,还
没有按下
视频就没了,移过不会没,要怎么处理啊