Skip to content
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

[Question] How to add buttons on top of each page #2

Open
mantielero opened this issue Oct 7, 2020 · 1 comment
Open

[Question] How to add buttons on top of each page #2

mantielero opened this issue Oct 7, 2020 · 1 comment
Labels
question Further information is requested

Comments

@mantielero
Copy link

I am new to both qt5 and qpageview. Any suggestion about how could I put buttons on top of each page? For example rotate left, rotate right for each page.

@wbsoft
Copy link
Contributor

wbsoft commented Oct 22, 2020

You could mixin widgetoverlay.WidgetOverlayViewMixin, which supports adding widgets to page objects.

You could also write your own View mixin class and draw buttons (using QStyle) in the paintEvent(), and handle clicks yourself. Many View mixin classes do their drawing in the paintEvent(), so there is no bookkeeping and drawing required for pages that are outside view.

@wbsoft wbsoft added the question Further information is requested label Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants