-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set affinity? #465
Comments
I suspect this is a low-hanging fruit / undocumented feature. I tried to search through examples and other issues, but could not find anything material. Could I please get any of the developers/maintainers to chime in? @iamsergio |
I'll get to this soon, currently traveling |
yeah, API needs to be exposed |
@iamsergio Note that I am happy to help with a PR, if that is desirable. I would like to use affinities to load/save only a subset of windows and widgets. |
MainWindowInstantiator, DockWidgetInstantiator and LayoutSaverInstantiator have an |
Thanks for implementing this so fast! 🎉 One last question: I have noticed that the referenced commit appears in the |
It's in main now. |
Are you sure about this? I have just switch back from |
Please disregard my last comment. I have only noticed now that there is a |
Hi, I am trying to use affinities with the QtQuick platform and the latest revision of KDDW 2.0 and have a quick question. How and at what point in object lifecycle do you set them? All QML wrappers have
affinities
declared only as a readonly property, which proxies to the wrapped object (usually aDockWidget
or aMainWindow
) or an empty list if it is not defined.I was able to subclass
KDDockWidgets::QtQuick::ViewFactory
and setDockWidget
affinity insidecreateDockWidget()
, however this seems super hacky and it does not give me an easy way to do the same for main windows. An obvious place to do this setup cleanly would be somewhere inMainWindowInstantiator
or aDockWidgetInstantiator
.Can you please advise? Am I missing something here?
The text was updated successfully, but these errors were encountered: