Hi,
I finaly succeeded !!
All I had to do is to create one static background Widget which is parent of all SdcnApplicationViewer instance -using setParent methode.
Then I call translaterawTouchEvent on this static widget
For future debug feature I need to trace the touchEvents from this backgroundwidget but the event is not call with touch event , only updatedisplay and mouse over.
What Method should I overload to trace touch events??
Here after is the SdcnBackgroundWidget class I made:
class SdcnBackgroundWidget
: public QWidget
{
Q_OBJECT
public:
explicit SdcnBackgroundWidget ( QWidget * parent = 0, Qt::WindowFlags f = 0 );
virtual ~SdcnBackgroundWidget ( );
protected:
bool event ( QEvent* event );
};
SdcnBackgroundWidget::SdcnBackgroundWidget ( QWidget * parent, Qt::WindowFlags f )
:QWidget( parent, f )
{
}
SdcnBackgroundWidget::~SdcnBackgroundWidget()
{
}
//-----------------------------------------------------------------------------
bool SdcnBackgroundWidget::event( QEvent* event )
{
qDebug()<< "SdcnBackgroundWidget::event" << event->type();
}
↧