Opened 11 years ago

Closed 10 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:
Cc:

Description

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 11 years ago.
QX11EmbedWidget from QWidget

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by Jflatt

QX11EmbedWidget from QWidget

comment:1 Changed 11 years ago by Jflatt

Seems like it crashes. Still needs testing.

comment:2 Changed 11 years ago by kazer

  • Milestone set to want patch / contribution

Any news?

comment:3 Changed 10 years ago by www.google.com/accounts/o8/id?id=aitoawkf0frlp4x3vjbz-vqlc-bpyhbdworle10

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

comment:4 Changed 10 years ago by www.google.com/accounts/o8/id?id=aitoawkf0frlp4x3vjbz-vqlc-bpyhbdworle10

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

Fixed in r3336

Note: See TracTickets for help on using tickets.