Results 1 to 2 of 2

Thread: How to zoom in and zoom out the buttons in UI automated?

  1. #1
    Join Date
    Nov 2009
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default 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

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to zoom in and zoom out the buttons in UI automated?

    Quote Originally Posted by luckyhenrys View Post
    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.

Similar Threads

  1. Zoom buttons using QGraphics objects
    By PrimeCP in forum Qt Programming
    Replies: 1
    Last Post: 15th February 2008, 12:38

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.