Results 1 to 2 of 2

Thread: Dynamic Text Editor size in tab widget?

  1. #1
    Join Date
    Jun 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Dynamic Text Editor size in tab widget?

    Okay so I have a qt4 textEdit widget in a tabWidget which is the center widget. How can I have the textEdit widget dynamically size itself in the tabWidget?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,677
    Thanks
    13
    Thanked 1,596 Times in 1,524 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Dynamic Text Editor size in tab widget?

    If you call QTabWidget::addTab() with a QTextEdit then resizing is automatic. Since you imply that you are not seeing that then you need to show us how you put your text edit 'into' your tab widget.

Similar Threads

  1. Use Qt Creator's text editor widget?
    By agarny in forum Qt Programming
    Replies: 4
    Last Post: 21st September 2011, 22:39
  2. Replies: 1
    Last Post: 17th January 2011, 14:08
  3. Replies: 0
    Last Post: 26th October 2010, 18:59
  4. QPushButton dynamic size
    By cutie.monkey in forum Qt Programming
    Replies: 1
    Last Post: 29th April 2010, 10:37
  5. Replies: 0
    Last Post: 2nd October 2009, 18:57

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.