Am 30.01.2011, 02:46 Uhr, schrieb Steven Sroka :
> So there is no way to get the window to resize itself whenever a child
> widget's size changes?
No, of course that's possible.
For one, the eventfilter can watch child resize events, but this is not
what you want to do.
Apparently the FocusIn/O
On 29 January 2011 18:49, Thomas Lübking wrote:
> Am 30.01.2011, 00:37 Uhr, schrieb Steven Sroka :
>
>>> ... did you meanwhile try to invalidate the layout before adjusting the
>>> size?
>
>> Yes, in my eventFilter() I put:
>>
>> d->vWindowLayout->invalidate();
>>
>> d->de
Am 30.01.2011, 00:37 Uhr, schrieb Steven Sroka :
>> ... did you meanwhile try to invalidate the layout before adjusting the
>> size?
> Yes, in my eventFilter() I put:
>
> d->vWindowLayout->invalidate();
>
> d->descriptionWidget->setFixedSize(d->descriptionWidget->sizeHint
I put:
d->vWindowLayout->invalidate();
d->descriptionWidget->setFixedSize(d->descriptionWidget->sizeHint().width(),
28);
adjustSize();
I put my KRichTextWidget and my QVBoxLayout in my d pointer so I can
access them within my eventFilte
Am 23.01.2011, 00:52 Uhr, schrieb Steven Sroka :
> The relevant line of code is within in the borders below.
... did you meanwhile try to invalidate the layout before adjusting the
size?
Cheers,
Thomas
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
one see the actual sources somewhere?
The relevant line of code is within in the borders below.
void NewReminderWindow::setupObjects()
{
QWidget *mainWidget = new QWidget();
QVBoxLayout *vWindowLayout = new QVBoxLayout();
QHBoxLayout *hButtonLayout = new QHBoxLayout();
KRemi
Am Fri, 21 Jan 2011 13:01:43 -0500
> Exactly what I was trying:
>
> //Shrink widget
> d->descriptionWidget->setFixedSize(d->descriptionWidget->sizeHint().width(),
> 28);
you should only fix the height, not the width. (since the user shall
likely still be able to resize the window)
> But adjustSiz
>On 17 January 2011 16:14, Thomas Lübking wrote:
> Am Monday 17 January 2011 schrieb Steven Sroka:
>> I wanted to ask, what is the best way to resize a window when its'
>> contents shrink. When I enlarge my KRichTextWidget the window grows
>> larger to fit everyt
Am Monday 17 January 2011 schrieb Steven Sroka:
> I wanted to ask, what is the best way to resize a window when its'
> contents shrink. When I enlarge my KRichTextWidget the window grows
> larger to fit everything nicely in it, but when I shrink my
> KRichTextWidget, the window
e_ the user started got involved in what they are typing.
Thank you Parker and Thomas for that, btw.)
>
>
> On 16 January 2011 12:52, Thomas Lübking wrote:
>> Am Sunday 16 January 2011 schrieb Thomas Baumgart:
>>> Yes, but all you need to do is place your logic to resize
Maybe it should resize only if type something into the text widget,
rather than just on focus?
On 16 January 2011 12:52, Thomas Lübking wrote:
> Am Sunday 16 January 2011 schrieb Thomas Baumgart:
>> Yes, but all you need to do is place your logic to resize the
>> KRichText
Am Sunday 16 January 2011 schrieb Thomas Baumgart:
> Yes, but all you need to do is place your logic to resize the
> KRichTextWidget into the overridden "void QWidget::focusInEvent (
> QFocusEvent * event )" method and you should be set. This method will only
> be called if
Hi,
on Sunday 16 January 2011 06:24:54 Steven Sroka wrote:
> On 15 January 2011 23:44, Parker Coates wrote:
> > On Sat, Jan 15, 2011 at 23:20, Steven Sroka wrote:
> >> Is there some way to know if a user has clicked a KRichTextWidget
> >> widget? I would like to cr
On 15 January 2011 23:44, Parker Coates wrote:
> On Sat, Jan 15, 2011 at 23:20, Steven Sroka wrote:
>> Is there some way to know if a user has clicked a KRichTextWidget
>> widget? I would like to create a KRichTextWidget that is small in size
>> at first because it is optio
On Sat, Jan 15, 2011 at 23:20, Steven Sroka wrote:
> Is there some way to know if a user has clicked a KRichTextWidget
> widget? I would like to create a KRichTextWidget that is small in size
> at first because it is optional if the user wants to type some data
> into it. If indeed t
Is there some way to know if a user has clicked a KRichTextWidget
widget? I would like to create a KRichTextWidget that is small in size
at first because it is optional if the user wants to type some data
into it. If indeed the user does want to type into it, I would like
the KRichTextWidget to
16 matches
Mail list logo