Results 1 to 3 of 3

Thread: Size of table widget inside Tab Widget is not flexible.

  1. #1
    Join Date
    Aug 2011
    Location
    Pune, India
    Posts
    18
    Qt products
    Qt4
    Platforms
    Windows

    Default Size of table widget inside Tab Widget is not flexible.

    Hi,

    Scenario: In QT designer, I have DockWidget->TabWidget->TableWidget.
    Size of tabwidget changes automatically if we change the position and size of dockwidget.
    But size of tablewidget is not changing as well as there are no scroll bars coming to view the data in table widget.

    Could you please suggest us what to do to get the scrollbars for tablewidget contents. if we change the size of dockwidget.

    is there any additional layout/widget need to be added?

    Thanks,
    Akash

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

    Default Re: Size of table widget inside Tab Widget is not flexible.

    Apply a layout to each tab of the tab widget.

  3. #3
    Join Date
    Aug 2011
    Location
    Pune, India
    Posts
    18
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Size of table widget inside Tab Widget is not flexible.

    Hi,

    I tried placing vertical/horizontal layout in each tab and then placing tablewidget or other widgets inside the layout, but as soon as the size of a main window increases, size of tabwidget increases but layout's and widget inside it's size remains the same as placed during design.

    Could you please suggest some other solution, as this is not working for me. Or may be i m doing something wrong. Please let me know if there are properties that need to be changed for this.

    Thanks,
    Akash

Similar Threads

  1. Replies: 8
    Last Post: 28th June 2011, 14:57
  2. Validator for the table widget item in table
    By mukunda in forum Qt Programming
    Replies: 4
    Last Post: 6th June 2011, 23:07
  3. Custom widget won't size properly in a table cell
    By zeroknowledge in forum Qt Programming
    Replies: 1
    Last Post: 11th May 2011, 16:32
  4. Replies: 2
    Last Post: 22nd February 2010, 08:48
  5. Replies: 0
    Last Post: 28th May 2009, 22:38

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.