Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, January 2007
[4.2.2.] QAxWidget / Video Player / Fullscreen


Message 1 in thread

Hi,

I've got a QAxWidget containing a video player component. When the user
double-clicks on the widget, I activate the video player's full screen
mode, using a simple event filter for "QEvent::MouseButtonDblClick".
Once the full screen mode is activated, I face the following problem:
the same event filter won't catch the double clicks any more. Any ideas
how to notice the double click?
Note: user may use more than one screen.


TIA,
r.

--------------------------------------------------------------------
  Rene Kaiser
  Institute of Information Systems & Information Management
  JOANNEUM RESEARCH Forschungsgesellschaft mbH
  Steyrergasse 17, A-8010 Graz, AUSTRIA

  phone:  +43-316-876-1173                   fax: +43-316-876-1191
  web:    http://www.joanneum.at/iis
  e-mail: mailto:rene.kaiser@xxxxxxxxxxx
-------------------------------------------------------------------- 

--
 [ signature omitted ] 

Message 2 in thread

Doesn't the ActiveX control itself fire a COM event (translated into a Qt 
signal by ActiveQt) when you double click the mouse?

The event filter will only work if the ActiveX control that you click on is 
a child of the QAxWidget, which is most likely not the case in fullscreen 
mode (I guess the ActiveX control just opens an additoinal fullscreen window 
and leaves the old window unmodified).

Check the manual of the ActiveX control to see how you can react to user 
input. Using Qt event handlers will only work sometimes, as the ActiveX 
control window is obviously not a Qt widget and will therefore not 
participate in the Qt event delivery.

Volker

"Kaiser, Rene" <Rene.Kaiser@xxxxxxxxxxx> wrote in message 
news:768DACDC356ED04EA1F1130F97D29852FAB022@xxxxxxxxxxxxxxxxxxxx

Hi,

I've got a QAxWidget containing a video player component. When the user
double-clicks on the widget, I activate the video player's full screen
mode, using a simple event filter for "QEvent::MouseButtonDblClick".
Once the full screen mode is activated, I face the following problem:
the same event filter won't catch the double clicks any more. Any ideas
how to notice the double click?
Note: user may use more than one screen.


TIA,
r.

--------------------------------------------------------------------
  Rene Kaiser
  Institute of Information Systems & Information Management
  JOANNEUM RESEARCH Forschungsgesellschaft mbH
  Steyrergasse 17, A-8010 Graz, AUSTRIA

  phone:  +43-316-876-1173                   fax: +43-316-876-1191
  web:    http://www.joanneum.at/iis
  e-mail: mailto:rene.kaiser@xxxxxxxxxxx
-------------------------------------------------------------------- 

--
 [ signature omitted ]