PDA

View Full Version : Embedding Navit Application on QT Window using QT5.5



ajmalpm
28th January 2016, 12:04
Can anyone help me on how to embed an external application such as navit on qt window. The functions in qt5.5 are different from those of qt4. Any help would be appreciated .

code_err
31st January 2016, 11:16
Is it even possible? It would be some kind of process virtualisation but I cannot imagine how it would work.

d_stranz
31st January 2016, 19:53
If you can find a way to get a native window handle for the Navit GTK+ window, then you can embed it in a QWidget by using something like this:



Wid hWnd = // somehow get the GTK+ window handle
QWindow * window = QWindow::fromWinId( hWnd );
QWidget * widget = QWidget::createWindowContainer( window );
mainWindow->setCentralWidget( widget );


However, I've been googling the GTK+ docs for a while, and I don't see an obvious way to do that. However, it must be possible, because GTK+ has been implemented on all sorts of windowing systems.