Results 1 to 2 of 2

Thread: Why a square button becomes rectangular?

  1. #1
    Join Date
    Apr 2011
    Posts
    58
    Thanks
    1

    Default Why a square button becomes rectangular?

    Hi.
    I hard coded my button size into my program.
    It appears fine on my computer.
    Later, when I built and run on another machine, the button looked rectangular.
    Because of that, some of my buttons are hidden.
    What is the way to make sure the UI remain consistent throughout all platforms and screen solution?

    Thank you.
    Marc

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Why a square button becomes rectangular?

    Setting a widget size doesn't do a lot when you add that widget to a size managing container like a layout.

    Please show some code for a better answer.

Similar Threads

  1. Drawing text within rectangular in textbrowser
    By addu in forum Qt Programming
    Replies: 4
    Last Post: 21st September 2009, 06:21
  2. Replies: 1
    Last Post: 29th November 2008, 12:37
  3. how to rotate a rectangular region of awidget
    By babu198649 in forum Newbie
    Replies: 2
    Last Post: 17th March 2008, 13:39
  4. non-rectangular windows , integrating qt
    By liorm in forum Qt Programming
    Replies: 3
    Last Post: 29th April 2007, 12:56
  5. Replies: 8
    Last Post: 2nd August 2006, 16:19

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
  •  
Qt is a trademark of The Qt Company.