Skip to content

Instantly share code, notes, and snippets.

@dridk
Created August 15, 2013 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dridk/6241263 to your computer and use it in GitHub Desktop.
Save dridk/6241263 to your computer and use it in GitHub Desktop.
#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