c++ - How to make all button same size in Qt Creator -



c++ - How to make all button same size in Qt Creator -

i making simple calculator , want buttons re-size size of 1 button have set. possible vs2010 don't know how in qt creator. have tried using layout no luck. possible?

i have 16 buttons in grid layout. i resize 1 button changing both height , width. now want buttons conform same size.

the problem facing when utilize layouts, resets height of button default can't create custom size of buttons?

you can use:

setminimumsize( int minw, int minh ) setmaximumsize( int maxw, int maxh )

with minw=maxw , minh =maxh

setminimumsize( 40, 40 ) setmaximumsize( 40, 40 )

forcing 40x40 of size

c++ qt qt-creator

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -