Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[Solved] reduce space-size of buttons
as you can see i have some buttons and i want to reduce the space between them, in the second picture you can see that the button get the most space...
i have created the button with this code (example for play button) :
mplay_pauseButton.setFlat(true);@ were mplayPixmap is the pixmap with the icon
any idea how to reduce the space?
goetz last edited by
If you have put the buttons into a layout, try to reduce the spacing and/or contents margins of the layout:
layout->setContentsMargins(0, 0, 0, 0);
i did it but the result is the same...
soundar last edited by
Try to use QSize function and fix the values for HEIGHT and WIDTH.
QSize::QSize ( int width, int height )
i used QToolButton and the size of the buttons reduced! i'll marked it as solved