navit-project.org

forum for navit navigation tool
It is currently 22 Jun 2017, 16:21
View unanswered posts | View active topics


All times are UTC


Forum rules


Feel free to ask anything here related to the development process - coding, creating new features, fixing bugs and custom changes of Navit.

Note: For reporting bugs, use the bug tracker.



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Embedding Navit in PyQt
PostPosted: 06 Apr 2016, 11:04 
Offline

Joined: 06 Apr 2016, 10:57
Posts: 1
Hello,
I've got some problems embedding Navit into my PyQt application.
I tried to use an QX11EmbedContainer which works very nice if I dont give it a parent, and the Container is my main window.
But if i try to set a parent to the container, Navit freezes when clicking into the container.
For my application I need the Container to be a child of a QStackedWidget so that's a big problem.

Does anybody know how to fix this issue?

Code:
class NaviWidget(QtGui.QWidget):
    def __init__(self, parent=None):
        super(NaviWidget, self).__init__(parent)
       
        navit_window = QtGui.QX11EmbedContainer(self)
        navit_window.resize(800, 440)
        navit_window.
        os.environ['NAVIT_XID'] = str(navit_window.winId())
        process = Popen(['navit'])


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Silver Orange 2.0.6 for IPB Designed by Skins and Hosting
Converted for phpBB3, based on Royal Blue template by BigB © 2007 2008 AEON KINGS