How to zoom in and zoom out the buttons in UI automated?
Hello evenyone,
I'm a rookie, I met a problem.
My boss asked me to add a button in the UI, after clicking on it, all the buttons in the UI can be zoom in.
I use ui->pushButton_myButton->resize(100, 50) to zoom in one of the buttons, but the button which is close to it will be covered with.
Please refer to the picture.pic2
Is there any method to zoom in and zoom out all the buttons in UI at the same time?
Somebody can help me? Thank you very much:)
Re: How to zoom in and zoom out the buttons in UI automated?
Quote:
Originally Posted by
luckyhenrys
Hello evenyone,
Please refer to the picture.
pic2
Is there any method to zoom in and zoom out all the buttons in UI at the same time?
Somebody can help me? Thank you very much:)
Use layouts (If not already), and resize dialog instead of resizing each button.
If it doent serve your purpose, you can also use QGraphicsWidget.