Results 1 to 3 of 3

Thread: Different positions of text fields with same layout

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2011
    Posts
    239
    Qt products
    Qt4
    Platforms
    Unix/X11 Symbian S60
    Thanks
    4
    Thanked 35 Times in 35 Posts

    Default Re: Different positions of text fields with same layout

    If it turns out to not be possible, there is always the possibility of adding an extra column for just the checkboxes with no label.

  2. #2
    Join Date
    Nov 2010
    Posts
    63
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    26
    Thanked 1 Time in 1 Post

    Default Re: Different positions of text fields with same layout

    Quote Originally Posted by mvuori View Post
    If it turns out to not be possible, there is always the possibility of adding an extra column for just the checkboxes with no label.
    I'm not quite sure what you mean.
    You mean build all layouts first without the check box element and then add the check boxes to some, or build all layouts and use empty columns where I now have spacer items ?
    And how would I do that ? I'm building the form in Designer and there doesn't appear to be the option to add empty columns. So I guess I would need to add it in the code ?
    Are you referring to QLayout's addItem method ? What would I be adding then ? Wouldn't I end up adding a spacer item anyway ?

    Sorry for the plethora of questions. Thanks for the fast answer though. :b

Similar Threads

  1. Layout long text in QTableWidget
    By Tamtam in forum Newbie
    Replies: 0
    Last Post: 13th February 2009, 15:09
  2. ListWidget positions item
    By talex in forum Qt Programming
    Replies: 3
    Last Post: 21st October 2008, 15:16
  3. Replies: 3
    Last Post: 26th November 2007, 08:18

Tags for this Thread

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.