Results 1 to 12 of 12

Thread: postponing resize event

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Mountain View, CA
    Posts
    279
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanked 42 Times in 37 Posts

    Default Re: postponing resize event

    Quote Originally Posted by Honestmath
    Thank you gents for your solutions.

    I was away for a bit but returned and played with it a smidgeon. The fixed spacer helps and gets me a mite closer, but I've yet to conquer the beast. The grid layout solution will not work as the checkbox and lineEdit are one widget.
    Cheers,
    Math
    It seems to me that you should just use a vertical boxlayout to group the labels underneath your custom widget.

    Then just use the following code on the label to ensure that it is aligned correctly:

    Qt Code:
    1. #include <qstyle.h>
    2.  
    3. label->setIndent(style().pixelMetric(QStyle::PM_IndicatorWidth));
    To copy to clipboard, switch view to plain text mode 
    Last edited by Chicken Blood Machine; 24th February 2006 at 20:15.
    Save yourself some pain. Learn C++ before learning Qt.

  2. #2
    Join Date
    Feb 2006
    Posts
    15
    Qt products
    Qt3
    Platforms
    Windows
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: postponing resize event

    Thank you all. There are still misalignment issues, but I shall continue to try to work out the solutions on these.

    Cheers,
    Math

Similar Threads

  1. Replies: 4
    Last Post: 19th February 2009, 12:10
  2. Resize event on stretch?
    By kodiak in forum Qt Programming
    Replies: 2
    Last Post: 3rd November 2008, 23:51
  3. Qt event queue overloading?
    By gct in forum Qt Programming
    Replies: 3
    Last Post: 17th March 2008, 19:39
  4. The event fired by the mouse click on the frame
    By Placido Currò in forum Qt Programming
    Replies: 8
    Last Post: 3rd March 2007, 10:05
  5. Resize event
    By boss_bhat in forum Qt Programming
    Replies: 5
    Last Post: 19th July 2006, 16:43

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.