Menu

#304 Qt player needs extra QWidget layer

developer_version
closed-out-of-date
None
6
2015-02-25
2006-03-23
Jack Jansen
No

The Qt player currently creates the ambulant_qt_widget as a direct child
of the Qt window. This leads to various quirks such as the Ambulant code
needing to now the size of the menu bar so it can offset mouse events.

The Gtk player (and the Cocoa player) use an extra level of indirection:
they have an extra widget (created by the main program) that is then used
as the parent of the ambulant widget. This gets rid of the special case
code for mouse events, and moreover makes it easier to do new things
with the widget (fullscreen windows, overlay documents, add play/stop/
pause buttons to the application) because the Ambulant core code is
isolated from the application gui code.

The Qt player needs to add the extra widget too. The Gtk code provides a
good starting point:
- pass the gui to mainloop and create the window_factory there,
- add a get_gui_container to the gui that returns the widget to be used as
*parent* for the ambulant widget.

The resize code will definitely need some work too.

Discussion

  • Kees Blom

    Kees Blom - 2015-02-25

    qt is not supported anymore.

     
  • Kees Blom

    Kees Blom - 2015-02-25
    • Group: --> developer_version
     
  • Kees Blom

    Kees Blom - 2015-02-25
    • status: open --> closed-out-of-date
     
  • Kees Blom

    Kees Blom - 2015-02-25

    qt is not supported anymore.

     

Log in to post a comment.