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,LayoutViewWidget
stuff is referenced inLayoutView
as part of internal API.Another question: It's possible to get
LayoutViewWidget
fromLayoutView.view
, but there is no method to getLayoutViewWidget
fromLayoutView
.Hi Eugene,
LayoutView
used to be aQWidget
, but that turned out no longer to be feasible with the upcoming of a Qt-lessLayoutView
for theklayout
Python module.Instead there is
LayoutViewWidget
if you want to embed aLayoutView
into 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
QWidget
from 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
LayoutViewWidget
widgets 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