It looks like you're new here. If you want to get involved, click one of these buttons!
Hi, Matthias!
Source code in src/layview/layview/gsiDeclLayLayoutView_qt.cc contains bunch of methods in HAVE_QTBINDINGS section, but they are not included into web site documentation through they are referenced in other parts like bookmarks_frame in LV_NoBookmarksView.
Comments
Sorry, my bad, I didn't notice that this is methods of
LayoutViewWidget. But nevertheless,LayoutViewWidgetstuff is referenced inLayoutViewas part of internal API.Another question: It's possible to get
LayoutViewWidgetfromLayoutView.view, but there is no method to getLayoutViewWidgetfromLayoutView.Hi Eugene,
LayoutViewused to be aQWidget, but that turned out no longer to be feasible with the upcoming of a Qt-lessLayoutViewfor theklayoutPython module.Instead there is
LayoutViewWidgetif you want to embed aLayoutViewinto your own user interface.For example, this code shows how to instantiate a LayoutView detached from the main window:
It is however, not possible currently to get the
QWidgetfrom an existingLayoutView. That is not impossible, but I wonder what the use case is.Kind regards,
Matthias
Hi, Matthias!
Use case is to tweak default appearance of some of
LayoutViewWidgetwidgets while processingMainWindow.on_current_view_changed/on_view_created. For example, hiding/showing cells and layers panels.I see. I feels a bit hacky as you need to act on the internal widget hierarchy, but basically that is possible.
It should be easy to provide that access. I just wasn't aware of the need to have it. I have created a ticket to remind me: https://github.com/KLayout/klayout/issues/1339
Matthias