Sign up for the KDAB Newsletter
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Find what you need - explore our website and developer resources
21 June 2023
In this episode, I'll show how to place a burger button in the topmost corner of an application - that is on top (z-order) of other widgets taking
0:00 Introduction
0:39 BurgerButton::addButtonToCorner
1:55 Its not QTabWidget::setCornerWidget...
2:36 BurgerButton constructor - a simple QToolButton
3:43 Removing the arrow - could it be done with a QStyle
4:32 addButtonToCorner implementation
6:04 CornerLayout is not a layout manager!
7:24 Implementation of CornerLayout
11:31 Next steps - you go and implement a full anchor layout manager
Links:
* Qt Styles - https://youtu.be/Qn4HHbDxG0M?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI
The example code showcased in this video is available here:
https://github.com/KDAB/kdabtv/tree/master/Qt-Widgets-and-more/CornerButton
All Qt Widgets and more videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI