Not working custom deginer widget + container based on QWidget!
Hi,
I created a custom Designer widget that I want to use as container.
I indicated that it is a container with:
Code:
bool myWidget::isContainer() const
{
return true;
}
However, even when Designer loads the custom widget and I can it to a ui... The widget is not a container! What else I need to do?
Thanks,
Carlos.
Re: Not working custom deginer widget + container based on QWidget!
it should be MyWidgetDesignerFactory::isContainer not myWidget::isContainer. See http://techbase.kde.org/Development/...signer_Plugins.
Re: Not working custom deginer widget + container based on QWidget!
Hi,
myWidget is the plugin declared like
Code:
{
Q_OBJECT
public:
bool isContainer() const;
bool isInitialized() const;
private:
bool m_initialized;
};
Thus I have:
Code:
bool myWidget::isContainer() const
{
return true;
}
Carlos.