Results 1 to 8 of 8

Thread: Layout automatically adjusting the space dynamically

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Bengaluru
    Posts
    144
    Thanks
    8
    Thanked 7 Times in 7 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Question Layout automatically adjusting the space dynamically

    Hi,

    I have issue in not getting adjusted with the layout controls if any one of the widget in the layout is re-sized dynamically. If i expand one of the widget it even overlays with the adjacent widget too.

    Any idea what need to be set to do it working!!

    Qt Code:
    1. connect( ui.emaillineEdit, SIGNAL(textChanged(const QString&)),
    2. this, SLOT(updatefieldWidth(const QString&)));
    3. ...
    4. ...
    5.  
    6. //updatefieldWidth(const QString&) slot code
    7. nWidth += 15;
    8.  
    9. this->ui.emaillineEdit->setGeometry( ui.emaillineEdit->geometry().x(),
    10. ui.emaillineEdit->geometry().y(), nWidth, ui.emaillineEdit->geometry().height() );
    To copy to clipboard, switch view to plain text mode 

    Please find the attached image below,

    Layout1.JPG
    Thanks,
    Nikhil
    Last edited by nikhilqt; 26th May 2011 at 11:56.

Similar Threads

  1. Hiding Layout item - Layout does not use available space
    By Asperamanca in forum Qt Programming
    Replies: 0
    Last Post: 27th January 2011, 09:51
  2. How to fill a QFrame space in QSplitter layout
    By henryjoye in forum Qt Programming
    Replies: 2
    Last Post: 12th October 2010, 05:18
  3. Dynamically change the layout
    By pippo42 in forum Qt Programming
    Replies: 2
    Last Post: 12th November 2009, 13:01
  4. Layout not giving space equally
    By gruszczy in forum Qt Programming
    Replies: 1
    Last Post: 2nd January 2009, 22:49
  5. Qt layout space + stretch
    By bunjee in forum Qt Programming
    Replies: 3
    Last Post: 20th December 2007, 15:53

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.