I was asked in an interview to add a pushbutton on the window which should appear on the bottom-right corner of the window. I told him we can do it with setGeometry(..) function. But he wasn't satisfied. He asked me to do it with layouts. My partial answer to him was to add the button in the bottom cell of the QVBoxlayout, but that will not show the button on the desired corner of the window.
Please help me with the code for this.
Bookmarks