Hi,
when I wrote following simple code:
Qt Code:
button.show();To copy to clipboard, switch view to plain text mode
it creates me window with button without any margins around.
But when I want to create window with two buttons, so I wrote following code:
Qt Code:
QWidget mainwindow; QHBoxLayout layout; layout.addWidget(&button1); layout.addWidget(&button2); mainwindow.setLayout(&layout); mainwindow.show();To copy to clipboard, switch view to plain text mode
But it creates me margin around both buttons and I really dont want it at all.
Bookmarks