Auto resizing of contents of QDockWidget

I've created a dock widget which contains a QTreeView. The size of the tree view remains static when the dock is resized. How can I get it to change it's size automatically to fill the dock area?

I've created the dock widget using the designer and use multiple inheritance to include it in the main app.

Inherited class:

class TreePaneWid : public QDockWidget, protected Ui_TreePaneWid{
public:
    TreePaneWid(){
        setupUi(this);
        show();
    }
};

Answers


In the designer, right click on the dock widget, go to Layout, and click Layout Horizontally.


Need Your Help

how to load data to tableviewcontroller via web webservice?

ios iphone objective-c web-services ios6

I have a UITableViewCotroller which will get its data from NSArray(RestaurantsArray),

Select part of word from query?

sql ms-access-2007

In Access, I have a field like this:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.