impeteperry
2nd April 2007, 22:06
I am programming using Qt-4.2.3 on a "kubuntu7.04" linux distro.
I have MAJOR problems understanding some of the Qt4 documentation where there is no "code examples" of which there are very few in Qt4.
so
I have a drawing area "frmDrawing" with various items on it. I want to get the position of the mouse when I double click the left mouse button.
Do I use !
globalPos () const : const QPoint & if yes, how? or do I use one of the other
QMouseEvent ( Type type, const QPoint & position,
Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers ) type? again if so what does it look like.?
thanks
I have MAJOR problems understanding some of the Qt4 documentation where there is no "code examples" of which there are very few in Qt4.
so
I have a drawing area "frmDrawing" with various items on it. I want to get the position of the mouse when I double click the left mouse button.
Do I use !
globalPos () const : const QPoint & if yes, how? or do I use one of the other
QMouseEvent ( Type type, const QPoint & position,
Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers ) type? again if so what does it look like.?
thanks