[Qt-interest] mouseMoveEvent
"Alexander Carôt"
alexander_carot at gmx.net
Wed Sep 30 12:10:59 CEST 2009
Hi all,
the following problem: I have an interface (called JamDesk), which I created with the Designer. The respectiver header file is included into the class. This works out but additionally I want to have a draggable widget on that form. In that context I implemented the mousePressEvent and the mouseMoveEvent first in order to figure the correct mouse coordinates. The click event works but the move event does not and I am not sure in what way I should change the code below. Please note that at that state the event functions contain only cout << Event works << endl;.
Thanks in advance
-- A l e x
#include "ui_jamDesk.h"
#include <iostream>
using namespace std;
class JamDesk : public QWidget{
Q_OBJECT
public:
JamDesk(QWidget *parent = 0);
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
private:
Ui::Form ui;
};
--
Dr.-Ing. Alexander Carôt
Email : Alexander at Carot.de
Tel.: +49 (0)177 5719797
Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02
More information about the Qt-interest-old
mailing list