Created
August 15, 2013 14:30
-
-
Save dridk/6241263 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef MATABLEVIEW_H | |
#define MATABLEVIEW_H | |
#include <QTableView> | |
class MaTableView : public QTableView | |
{ | |
Q_OBJECT | |
public: | |
explicit MaTableView(QWidget *parent = 0); | |
void dropEvent(QDropEvent *event); | |
}; | |
#endif // MATABLEVIEW_H | |
//================================================================== | |
#include "matableview.h" | |
#include <QDebug> | |
MaTableView::MaTableView(QWidget *parent) : | |
QTableView(parent) | |
{ | |
setAcceptDrops(true); | |
} | |
void MaTableView::dropEvent(QDropEvent *event) | |
{ | |
qDebug()<<"hello"; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment