I can't change the size of a button in qtoolbar ...
Qt Code:
e1PushButton .resize(20, 20); tb.addWidget(e1PushButton );To copy to clipboard, switch view to plain text mode
And its not working ...
The button is with the default size![]()
I can't change the size of a button in qtoolbar ...
Qt Code:
e1PushButton .resize(20, 20); tb.addWidget(e1PushButton );To copy to clipboard, switch view to plain text mode
And its not working ...
The button is with the default size![]()
Push buttons have a minimum size hint set (40x20 on my system, as far as I remember), you can't decrease their size more when they are in a layout. You can use QToolButton instead. But then the question is what is the reason of placing a push button in a toolbar when you have QAction at your disposal.
Bookmarks