Results 1 to 3 of 3

Thread: yet another sizePolicy prob: how can I get a QTextBrowser to scale with its QTabWidg

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default yet another sizePolicy prob: how can I get a QTextBrowser to scale with its QTabWidg

    My mainWindow has a centralWidget with a QTabWidget filling it; I want one of the tab pages to have a stretchable widget filling it as well. I haven't been able to get it to work with QT designer, even when I hand-edit the XML file to ensure I have the structure I want.
    It seems that the solution should be to set the SizePolicy property correctly, but even though I've put either "Ignored" or "Expanding" on each QWidget, and tried setting the horstretch attributes, it won't stretch. I'm using CTRL-R within QTDesigner to check it.
    I see other posts similar to this, but none seem to have any answer. I'm attaching a tiny demo UI file, too.
    Attached Files Attached Files

Similar Threads

  1. QToolbar expanding sizePolicy not working properly
    By sfcheng77 in forum Qt Programming
    Replies: 2
    Last Post: 22nd February 2011, 23:50
  2. QTabWidget Expanding sizepolicy
    By Zweistein in forum Qt Programming
    Replies: 0
    Last Post: 25th October 2010, 14:34
  3. Nested Layouts and sizePolicy
    By pagapov in forum Newbie
    Replies: 13
    Last Post: 24th October 2010, 09:29
  4. layouts, sizePolicy, sizeHint,
    By Kronen in forum Newbie
    Replies: 2
    Last Post: 5th November 2009, 17:43
  5. The use of SizePolicy
    By Placido Currò in forum Newbie
    Replies: 2
    Last Post: 9th April 2009, 22:10

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.