PDA

View Full Version : changing mouse pointer



bhogasena
29th January 2009, 15:29
hi i have created a toolbar in mainwindow. when i triggered one button in that it calls mousepointer() function as below. what i want is changet the mouse pointer shape .but it is working. can anyone help me


void Window::mousepointer()
{
setShape(Qt::OpenHandCursor);
}

spirit
29th January 2009, 15:38
did you see this method QWidget::setCursor (http://doc.trolltech.com/4.4/qwidget.html#cursor-prop)?

bhogasena
29th January 2009, 15:57
thanks for u r quick reply

it's working now