On Monday, March 05, 2012 13:39:37 Lincoln Ramsay wrote: > 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.
Note that this works in Qt5 with a compiler which supports the C++11 constexpr keyword. Thanks, -- Stephen Kelly <stephen.ke...@kdab.com> | Software Engineer KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090 KDAB - Qt Experts - Platform-Independent Software Solutions
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest