PDA

View Full Version : Does a StackedWidget plugin need multipage?



jayw710
3rd July 2007, 20:05
Hi, I'm creating a plugin for Designer that's multipage, but it contains a StackedWidget, the only part of the widget that will be the container.

The question is whether I need to use the standard form plugin because StackedWidget is already multi-paged and already works in Designer, or use the container extension using the QDesignerContainerExtension class.

Thank you,

Jay

illuzioner
3rd July 2007, 20:47
hi,

yea, you need a multipage container for that. i've tried making a very simple plugin that was a trivial subclass of qstackedwidget. in designer it didn't have any ability to add/delete pages.

if you want multipages, use the multipage container even if it's a direct subclass of a multipage contianer.

lou

jayw710
4th July 2007, 12:07
Great, thanks. That's the approach I'll take.

Jay