Hi, i'm a newbie in QT, and i'm working in a proyect with it. now i need to get a simple MouseEvent but i don't get it.
There is a class called ListaMensajes where QScrollArea is placed. Inside i can load PanelTx objects.
The idea is to select the PanelTx object by clicking over each one.
and the definition ..
Code:
{ ui.setupUi(this); m_pDialogPropiedades = 0; loadValues (); colorPanelTx(m_pMessage->isEnabledTx ()); //poner color activo-desactivo } PanelTx::~PanelTx() { } ............. { if (e->button() == Qt::LeftButton) { //this line is just to check it works } else if (e->button() == Qt::RightButton) { ...... } }
the line:
this->setPalette(QPalette(Qt::white));
works perfectly with this widget cause im using it in other parts, but i can't get the handler work for the QMouseEvents
could anybody help me?
thanks
