• 4275阅读
  • 2回复

[提问]为什么我将鼠标移过pushbutton按钮,视频就不显示了 [复制链接]

上一主题 下一主题
离线wangyan23888
 

只看楼主 倒序阅读 楼主  发表于: 2013-08-01
    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]

结果鼠标一移过,还没有按下


视频就没了,移过不会没,要怎么处理啊
离线wangyan23888

只看该作者 1楼 发表于: 2013-08-01
回 楼主(wangyan23888) 的帖子
前面少了一张图片
离线wangyan23888

只看该作者 2楼 发表于: 2013-08-05
自己顶一下
快速回复
限100 字节
 
上一个 下一个