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
Post a Comment