[Qt-interest] About QWidget::contentsMargins()
Malyushytsky, Alex
alex at wai.com
Tue Jun 28 22:17:43 CEST 2011
>> So this is just information to derived classes and is not directly used anywhere by Qt?
Qt itself has multiple classes derived from QWidget.
My assumption is that if widget has layout there is no difference between such margins and top layout.
Alex
From: Kishore Jonnalagadda [mailto:kitts.mailinglists at gmail.com]
Sent: Tuesday, June 28, 2011 9:57 AM
To: Malyushytsky, Alex
Subject: Re: [Qt-interest] About QWidget::contentsMargins()
On Jun 28, 2011 6:57 AM, "Malyushytsky, Alex" <alex at wai.com<mailto:alex at wai.com>> wrote:
>
> > 1) widget->contentsMargins() != widget->layout()->contentsMargins() Should
> > they not be the same? How are they different from each other?
>
> As far as I understand the difference is that such margins can be used with QWidget derived class without any layout set:
>
> "void QWidget::setContentsMargins ( int left, int top, int right, int bottom )
> The margins ... may be used by subclasses to specify the area to draw in (e.g. excluding the frame)."
So this is just information to derived classes and is not directly used anywhere by Qt?
> Regards,
> Alex
Kishore
---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.
"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."
"Please consider our environment before printing this email."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110628/1b7e5920/attachment.html
More information about the Qt-interest-old
mailing list