Opened 14 years ago

Closed 13 years ago

#316 closed enhancement/feature request (fixed)

Allow qt_qpainter graphics driver to be embedded

Reported by: Jflatt Owned by: KaZeR
Priority: trivial Milestone: want patch / contribution
Component: core Version: git master
Severity: Keywords:


The GTK graphics looks at NAVIT_XID environment variable to embed into. The Qt graphics driver does not. The attached patch changes the RenderArea? class to derive from QX11EmbedWidget instead of QWidget. QX11EmbedWidget inherits from QWidget, so it just needs to make use of the QX11EmbedWidget::embedInto() method, passing the NAVIT_XID's value.

Attachments (1)

qt_embed.diff (1.9 KB) - added by Jflatt 14 years ago.
QX11EmbedWidget from QWidget

Download all attachments as: .zip

Change History (5)

Changed 14 years ago by Jflatt

QX11EmbedWidget from QWidget

comment:1 Changed 14 years ago by Jflatt

Seems like it crashes. Still needs testing.

comment:2 Changed 13 years ago by kazer

  • Milestone set to want patch / contribution

Any news?

comment:3 Changed 13 years ago by

Embedding is possible, starting from r3274, but still have some issues with glib event system

comment:4 Changed 13 years ago by

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r3336

Note: See TracTickets for help on using tickets.