[Qt-interest] Fwd: Custom widget promotion

ami guru dosto.walla at gmail.com
Thu Dec 11 12:50:17 CET 2008


Hello Benjamin,

that is what i am trying to follow from an example where they have used
widget promotion to create property browser.

In he main example they have promoted a tree view widget to their customized
widget and inserted that widget inside a dock widget.

And that insertion gets a little confusing to me.

I drag the customized widget inside the dock , and in the "Object Inspector"
it shows that the customized widget is the child of the
dockWidgetContents but not the child of dockWidget itself .

In  the example the customized widget is direct child of the dock widget and
there is no dockWidgetContents in between.

Any feedback to get around with that issue?



Regards
Sajjad

---------- Forwarded message ----------
From: Benjamin <ikipou at gmail.com>
Date: Wed, Dec 10, 2008 at 11:23 PM
Subject: Re: [Qt-interest] Custom widget promotion
To: ami guru <dosto.walla at gmail.com>, Qt Interest List <
qt-interest at trolltech.com>


I don't see any problem to promote a widget contained inside a dock widget.

Note that adding a custom widget directly into Qt Designer is not very
complex: http://doc.trolltech.com/4.4/designer-creating-custom-widgets.html
When you are not satisfied with promote, taking a few minutes to write a
plugin makes you happy again ;).

regards,
Benjamin

2008/12/10 ami guru <dosto.walla at gmail.com>

> Hello forum,
>
> i want to discuss some issues related to custom widgets using Qt designer.
>
>
> when a widget is not there we have to create
> the widget class a subclass of the nearest
> parent class available. And that parent class work
> as a placeholder for the customized one.
>
>
> What if we have a customized widget that is the child of Qtreeview
> and we want that customized widget to be contained inside dock widget.
> And how to do that from within Qt Designer using the promotion?
>
>
> Looking forward to feedback and references
>
>
> Thanks
> Sajjad
>
> _______________________________________________
> 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/20081211/f1e822eb/attachment.html 


More information about the Qt-interest-old mailing list