Hi i want make CustomContextMenu in reimplement QTreeView , but i have done somting wrong ;(

.h
Qt Code:
  1. #ifndef MYTREEVIEW_H
  2. #define MYTREEVIEW_H
  3.  
  4. #include <QtGui>
  5. #include <QtCore>
  6.  
  7. class MyTreeView : public QTreeView
  8. {
  9. Q_OBJECT
  10. public:
  11. explicit MyTreeView(QWidget *parent = 0);
  12.  
  13. signals:
  14.  
  15. public slots:
  16. void slotCustomContextMenu(QPoint &point);
  17. void slotTest();
  18.  
  19. };
  20.  
  21. #endif // MYTREEVIEW_H
To copy to clipboard, switch view to plain text mode 

.cpp
Qt Code:
  1. #include "mytreeview.h"
  2.  
  3. MyTreeView::MyTreeView(QWidget *parent) :
  4. QTreeView(parent)
  5. {
  6. this->setContextMenuPolicy(Qt::CustomContextMenu);
  7. connect(this,SIGNAL(customContextMenuRequested(QPoint &point)), this, SLOT(slotCustomContextMenu(QPoint &point)));
  8. }
  9.  
  10. void MyTreeView::slotCustomContextMenu(QPoint &point)
  11. {
  12. QMenu *menu = new QMenu;
  13. QModelIndex index = this->currentIndex();
  14.  
  15. QString fileName = this->model()->data(this->model()->index(index.row(), 0),0).toString();
  16. menu->addAction(QString("Import"), this, SLOT(slotTest()));
  17. menu->addAction(QString("Export"), this, SLOT(slotTest()));
  18. menu->exec(QCursor::pos(&#41;);
  19. }
  20.  
  21. void MyTreeView::slotTest()
  22. {
  23. }
To copy to clipboard, switch view to plain text mode 

treeview work but right click dont show menu ;( some advice ??