Results 1 to 3 of 3

Thread: Embedding Navit Application on QT Window using QT5.5

  1. #1
    Join Date
    Jan 2016
    Posts
    1
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Smile Embedding Navit Application on QT Window using QT5.5

    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 .

  2. #2
    Join Date
    Sep 2011
    Posts
    86
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Embedding Navit Application on QT Window using QT5.5

    Is it even possible? It would be some kind of process virtualisation but I cannot imagine how it would work.

  3. #3
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Embedding Navit Application on QT Window using QT5.5

    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:

    Qt Code:
    1. Wid hWnd = // somehow get the GTK+ window handle
    2. QWindow * window = QWindow::fromWinId( hWnd );
    3. QWidget * widget = QWidget::createWindowContainer( window );
    4. mainWindow->setCentralWidget( widget );
    To copy to clipboard, switch view to plain text mode 

    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.

Similar Threads

  1. Replies: 0
    Last Post: 2nd December 2014, 16:48
  2. Embedding ruby into Qt application.
    By vereteran in forum Qt Programming
    Replies: 0
    Last Post: 12th February 2010, 18:04
  3. Replies: 0
    Last Post: 9th October 2009, 10:22
  4. Embedding SDL in a QWidget That is not a Window
    By PhilippB in forum Qt Programming
    Replies: 0
    Last Post: 21st August 2008, 11:17
  5. Embedding images in a Qt3 application
    By Valheru in forum Qt Programming
    Replies: 1
    Last Post: 20th November 2007, 19:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.