-
Notifications
You must be signed in to change notification settings - Fork 47
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
Expose QScrollArea as native widget #429
Conversation
Codecov Report
@@ Coverage Diff @@
## main #429 +/- ##
==========================================
- Coverage 88.99% 88.99% -0.01%
==========================================
Files 30 30
Lines 3935 3944 +9
==========================================
+ Hits 3502 3510 +8
- Misses 433 434 +1
Continue to review full report at Codecov.
|
thank you @dstansby! I am slightly concerned about this (but I'm not sure, and could be convinced otherwise). The main reason is that there is sort of an implicit API that when you do |
That all makes sense, and I think you're repeating yourself from the original PR, so sorry about that. So, it seems we should keep |
I've added a new property, |
I think i like it! will have a play shortly... but this seems like a very good solution |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks excellent, thank you @dstansby!
Fixes https://github.com/napari/magicgui/issues/431 - this allows an external user to access the
QScrollArea
by returning it as the native widget. I think this is a sensible thing to do anyway, and it fixes a bug with the scroll bars not showing up when a widget is consumed bynapari
.