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.

Qt Code:
  1. protected:
  2. void clickPanelTxEvent(QMouseEvent *e);
  3.  
  4. private:
  5. Ui::PanelTxClass ui;
To copy to clipboard, switch view to plain text mode 

and the definition ..
Qt Code:
  1. PanelTx::PanelTx (CArincMsgData *msg, ListaMensajes &listaMensajes, QWidget *parent)
  2. : QWidget(parent), m_cListaMensajes (listaMensajes), m_pMessage (msg)
  3. {
  4. ui.setupUi(this);
  5.  
  6. m_pDialogPropiedades = 0;
  7.  
  8. loadValues ();
  9.  
  10. colorPanelTx(m_pMessage->isEnabledTx ()); //poner color activo-desactivo
  11. }
  12.  
  13. PanelTx::~PanelTx()
  14. {
  15.  
  16. }
  17. .............
  18.  
  19. void PanelTx::clickPanelTxEvent(QMouseEvent *e)
  20. {
  21.  
  22. if (e->button() == Qt::LeftButton)
  23. {
  24.  
  25. //this line is just to check it works
  26. this->setPalette(QPalette(Qt::white));
  27.  
  28. }
  29. else if (e->button() == Qt::RightButton)
  30. {
  31. ......
  32. }
  33. }
To copy to clipboard, switch view to plain text mode 

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