Hello,
QT_NO_DRAGANDDROP qt defines to adapt qt at compile time is a nice feature.
Q_DECL_OVERRIDE is also somwehat nice.
 
But together they lead to build errors.
void QGraphicsView::dragEnterEvent(QDragEnterEvent *event)
{
#ifndef QT_NO_DRAGANDDROP
 
 
  void dragEnterEvent(QDragEnterEvent *event) Q_DECL_OVERRIDE;
 
lead to  
qgraphicsview.h(240) : error C3668: 'QGraphicsView::dragEnterEvent' : method with override specifier 'override' did not override any base class methods 
 
 
I solved that by removing Q_DECL_OVERRIDE for the DND functions here.
 
Any better ways?
 
Regards,
Gunnar
 
 
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to