collagraph QScrollArea #110
jamesdbrock
started this conversation in
General
Replies: 1 comment 4 replies
-
This would require some extra code, like here: https://github.com/fork-tongue/collagraph/blob/master/collagraph/renderers/pyside/objects/qobject.py to implement how to add/set a widget to a scroll area. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want a
QScrollArea
which contains aQBoxLayout
.I'm having the same problem as this guy.
https://stackoverflow.com/questions/12781407/how-do-i-resize-the-contents-of-a-qscrollarea-as-more-widgets-are-placed-inside?rq=3
The top voted answer to use
QScrollArea::setWidget
agrees with this blog post. https://www.pythonguis.com/tutorials/pyside-qscrollarea/But how can I set the
widget
property?I cannot set the
widget
property this way becauseTypeError: 'PySide6.QtWidgets.QScrollArea.setWidget' called with wrong argument types: PySide6.QtWidgets.QScrollArea.setWidget(VNode)
Beta Was this translation helpful? Give feedback.
All reactions