: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/usieve/stoopidsimple.com/includes/common.inc on line 1782.
: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/usieve/stoopidsimple.com/includes/common.inc on line 1782.
Qt Button Size | stoopidsimple.com

Qt Button Size

salem | 2005-11-18 02:00

Trouble getting your QPushButtons to be the size you really want? read on...
I spent a fair amout of time banging my head against the wall trying to figure out why QPushButton's take up significantly more room then QToolButton's. All it took was putting a QPushButton side by side with a QToolBar using the same QSizePolicy to see the difference.

note that the QSizePolicy for both buttons is QSizePolicy(Maximum,Maximum).
The big difference is that QPushButtons can be "default" buttons. The "default" button is executed on Enter or Return keypresses. Extra space is left arround QPushButtons to allow for annotating the current "default" button with a highlighted frame.

Lfhex

Tonality

User login

Navigation

PHP

Kccmp

Java

Homestar

Slashdot


Advertisement