[Qt-interest] minimumSize and minimumSizeHint

Jesús Fernández jsfdez at gmail.com
Thu Mar 26 15:38:08 CET 2009


The *minimumSize* is the minimum size of the widget, the *sizeHint* is the *
optimal* size of the widget

On Thu, Mar 26, 2009 at 3:44 PM, Максим Егоров <m_v_egorov at mail.ru> wrote:

> Hi all
> I have a little question about Qt. What is the difference between
> minimumSize and minimumSizeHint. For example, i have a QMainWindow that
> has  QTreeView widget and  QLineEdit and QListView widgets combined by
> QVBoxLayout. I set minimumSize property for QTreeView widget. Then I try
> to lay out horizonally QTreeView with another widgets by QSplitter.
> However QSplitter truncate QTreeView and dosnt consider minimumSize
> propery. More over when i try to adujst size QMainWindow the QMainWindow
> shrink to QSize(0, 0). Is it normal behavior? Or for what purposes does
> the minimumSize property uses in Qt Desiner.
>
> P.S. Sorry for my English
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090326/c31e5400/attachment.html 


More information about the Qt-interest-old mailing list