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?
You can try getParentComponent().
2 Likes
Thank you, you gave me an idea, getPeer() is what I was looking for.