[Interest] mouse events: how to handle left and right button pressed?
Lincoln Ramsay
lincoln.ramsay at Nokia.com
Mon Mar 5 04:39:37 CET 2012
On 03/05/2012 12:51 PM, ext Joseph Crowell wrote:
> Also, I think your error is related to a missing include. Are you doing
> #include<QMouseEvent>?
No, the error is because C++ does not recognize (Qt::LeftButton |
Qt::RightButton) as a constant. You can only use constant values in a
switch statement.
--
Lincoln Ramsay - Senior Software Engineer
Qt Development Frameworks, Nokia - http://qt.nokia.com/
More information about the Interest
mailing list