Results 1 to 3 of 3

Thread: How to make widget grow outside of its parent widget

  1. #1
    Join Date
    Nov 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default How to make widget grow outside of its parent widget

    Hello!
    Let's say I have a QLineEdit widget inside a QDialog and this QLineEdit widget grows when you type something in it (it grows so you can always see all the text in the QLineEdit).
    Is there a way to allow that QLineEdit widget to grow outside of the QDialog it's in without making the QDialog (its parent) bigger?

    Thanks!
    Last edited by shakeandbake; 9th January 2010 at 02:25.

  2. #2
    Join Date
    Sep 2009
    Location
    Tashkent, Uzbekistan
    Posts
    107
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to make widget grow outside of its parent widget

    No if QLineEdit is a part of QDialog layout.
    -- Tanuki

    per cauda vel vaculus cauda

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to make widget grow outside of its parent widget

    Quote Originally Posted by shakeandbake View Post
    Hello!
    Let's say I have a QLineEdit widget inside a QDialog and this QLineEdit widget grows when you type something in it (it grows so you can always see all the text in the QLineEdit).
    Is there a way to allow that QLineEdit widget to grow outside of the QDialog it's in without making the QDialog (its parent) bigger?
    Hmm... what purpose would it serve?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. How to Create child widget behind parent widget?
    By anupamgee in forum Qt Programming
    Replies: 6
    Last Post: 22nd June 2010, 14:03
  2. Replies: 4
    Last Post: 3rd October 2009, 09:19
  3. let parent widget grow with child widget?
    By BeS in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2009, 12:17
  4. Replies: 2
    Last Post: 19th August 2008, 10:46
  5. Move child widget along with the parent widget
    By sreedhar in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2006, 13:00

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.