Skip to content

Instantly share code, notes, and snippets.

@dridk

dridk/gist:6241263

Created Aug 15, 2013
Embed
What would you like to do?
#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
You can’t perform that action at this time.