Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Update resize when changing button's title
QtWS: Super Early Bird Tickets Available!

Update resize when changing button's title

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bizut
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
  • JeroentjehomeJ Offline
    JeroentjehomeJ Offline
    Jeroentjehome
    wrote on last edited by
    #2

    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

    Greetz, Jeroen

    1 Reply Last reply
    0
  • B Offline
    B Offline
    bizut
    wrote on last edited by
    #3

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

    1 Reply Last reply
    0
  • B Offline
    B Offline
    bizut
    wrote on last edited by
    #4

    Thank you for your answer

    1 Reply Last reply
    0

  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved