Results 1 to 11 of 11

Thread: Cannot make the LineEdit size to be "fixed"

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Posts
    18
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cannot make the LineEdit size to be "fixed"

    It really bothers me that QT Designer is incapable to size the LineEdit according to the requirement in its layout manager. It always wants to make LineEdit at least certain size. If you want to create a small dialog with various LineEdits, each of them only holds 2 or 3 digits, you do not want the LineEdit in the size QT sets for you. I do not want to display a big dialog then resize it by user. Looks like QT is not ready for prime time yet.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cannot make the LineEdit size to be "fixed"

    Quote Originally Posted by yren View Post
    Looks like QT is not ready for prime time yet.
    Or maybe you just don't know how to use Qt Designer properly.
    Attached Images Attached Images

  3. #3
    Join Date
    Aug 2008
    Posts
    18
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cannot make the LineEdit size to be "fixed"

    That will mostly be the case! Could you post your UI so I can learn how you set them up with the layout manager.

    Thanks!

  4. #4
    Join Date
    Aug 2008
    Posts
    18
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Smile Re: Cannot make the LineEdit size to be "fixed"

    I got it. The Max/Min size need to be specified if I want to control the behavior of Layout Manager.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cannot make the LineEdit size to be "fixed"

    Quote Originally Posted by yren View Post
    I got it. The Max/Min size need to be specified if I want to control the behavior of Layout Manager.
    The other option is to use stretch factors and spacers.

Similar Threads

  1. Replies: 1
    Last Post: 27th March 2008, 15:10
  2. Replies: 1
    Last Post: 14th May 2007, 14:55
  3. How can I make size of QGraphicsScene smaller?
    By troorl_ua in forum Qt Programming
    Replies: 6
    Last Post: 21st April 2007, 07:56
  4. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 05:57
  5. Qt 4.1.1 linker warnings
    By Matt Smith in forum Installation and Deployment
    Replies: 0
    Last Post: 26th February 2006, 22:14

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.