I am trying to add a QPushButton in my GUI, such that the pushbutton is party outside the window frame. A good comparison is the scan button in CleanMyMac (see attached image).
I have tried making the main window transparent, then adding a background image that is transparent only in the bottom, making the window look smaller than it is. However, this creates a lot of other complications such as window frame shadow (which does not seem to disappear entirely with:
mainWindow->setWindowFlags(Qt::FramelessWindowHint |
Qt::NoDropShadowWindowHint)
Furthermore, with the mentioned approach, the window cannot be expanded fully, I'd rather have a small part of the button being outside of display (as CleanMyMac).
Any suggestions?
