Add bottom-sheet property to QPopupProxy #12551
Unanswered
lugrinder
asked this question in
Ideas / Proposals
Replies: 2 comments
-
You mean like this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, I'm doing this now, but instead of set breakpoint as a fixed value like in the example (800px), I'm using $q.screen.sizes.sm, but this method is too verbose. You need to set many classes and add components like QCard not needed by QMenu when using QList for the menu, but necessary for QDialog. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Add a new property
bottom-sheet
to QPopupProxy to render the menu on smaller screens as BottomSheet plugin.BottomSheet plugin is a QDialog with special settings. User can set up the QDialog of QPopupProxy to have the same appearance, but this will affect when rendered as QMenu on larger screens.
Another solution is to pass a property to the slot indicating the component used by proxy, and then the user can customize the content.
Beta Was this translation helpful? Give feedback.
All reactions