meenu
22nd August 2011, 07:30
mouse click worked in central widget ,but not working in buttons??
void DotsDeluxe::mousePressEvent(QMouseEvent *e)
{
if(e->button()==Qt::LeftButton)
{
QPixmap* pixmaptw = new QPixmap(":/Images/ccursor0.png");
ui->centralWidget->setCursor(QCursor (*pixmaptw,0,0));
}
}
void DotsDeluxe::mousePressEvent(QMouseEvent *e)
{
if(e->button()==Qt::LeftButton)
{
QPixmap* pixmaptw = new QPixmap(":/Images/ccursor0.png");
ui->centralWidget->setCursor(QCursor (*pixmaptw,0,0));
}
}