Toggle alwaysOnTop


#1

Newbie question … I want toggle alwaysOnTop for desktop application with button, but I do not know how to access MainWindow instance from my component so I can call alwaysOnTop function as in constructor in Main.cpp or I’m on wrong track?


#2

You can try getParentComponent().


#3

Thank you, you gave me an idea, getPeer() is what I was looking for.