I' d like to add that
qtbase/src/widgets/itemviews/qlistwidget.h(246) : error C3668: 'QListWidget::dropEvent' method with override specifier 'override' did not override any base class methods
shows the similar problem. But here the implemntaion if  not there because of
#ifndef QT_NO_DRAGANDDROP 
around the function not inside as in QGraphicsView
same problem in  qtreewidget.h and qtableview.h
 
If you wonder why i need that, its because of wc2013 it has no DnD support ( as wec7 had).
 
Regards,
Gunnar Roth
 
 
Gesendet: Mittwoch, 02. September 2015 um 14:26 Uhr
Von: "Gunnar Roth" <[email protected]>
An: "[email protected]" <[email protected]>
Betreff: [Development] QT_NO_DRAGANDDROP qt 5.6 git build fails
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
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to