May 10, 2012

bizut bizut
Lab Rat
10 posts

update resize when changing button’s title

 

Hi all,

I defined a frame in which i i have inserted,by the way of the Qt designer, an Horizontal layout. It contains some radio buttons.
In the constructor of the class frame, after the setupui, i change the text of the buttons but the width of the buttons remains the same than before the settext. I tried to force them using the update method on the radiobuttons but with no effect. I tried to use different properties for the horizontal sizePolicy but with no effect….
Could someone explain me how the resize works and how to make my case working ?
Thank you very much by advance.
Best regards!

3 replies

May 10, 2012

Jeroentje@home Jeroentje@ho..
Hobby Entomologist
247 posts

Did you check the maximum size value? Maybe that is restricting the expansion. Also some code to show how and in what order you do it would be helpful to fully understand what you did/try to do.
greetz

 Signature 

Greetz, Jeroen

May 10, 2012

bizut bizut
Lab Rat
10 posts

Actually, i have to precise to the frame whicl layout it has to use with SetLayout. The designer doesn’t do it for us…

May 10, 2012

bizut bizut
Lab Rat
10 posts

Thank you for your answer

 
  ‹‹ Pls Help LNK4099: PDB ’vc100.pdb’ was not found with ’qtmaind.lib(qtmain_win.obj)’      Kill QThreadPool ››

You must log in to post a reply. Not a member yet? Register here!