Hi
I'm struggling to get certain signal and slot combinations to work. I've used signals and slots successfully for a while now but at the moment I'm stuck with drag & drop operations. I want to be able to drag from a QTableView object and I connect the necessary signals in the way shown below:
connect(tableViewWorkspace,
SIGNAL(mousePressEvent
(QMouseEvent *event
)),
this,
SLOT(mousePressEventWorkspace
(QMouseEvent *event
)));
connect(tableViewWorkspace,SIGNAL(mousePressEvent(QMouseEvent *event)),this,SLOT(mousePressEventWorkspace(QMouseEvent *event)));
To copy to clipboard, switch view to plain text mode
This does not seems to work and when I click in the table view it never enters the mousePressEventWorkspace function. Do I do something wrong? I know that mousePressEvent is a function of the QAbstractItemView class, but shouldn't it be called for the tableView object as well? Do I perhaps need some type of pointer along with some object casting?
Thanks
Jaco
Bookmarks