Yes, I read that documentation.
I understand that I can write my very own plugin by doing something like:
{
Q_OBJECT
public:
[dozen of functions to implement]
private:
bool initialized;
};
class MyPlugin : public QObject, public QDesignerCustomWidgetInterface
{
Q_OBJECT
Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
MyPlugin(QObject *parent = 0);
[dozen of functions to implement]
private:
bool initialized;
};
To copy to clipboard, switch view to plain text mode
But I don't want to build a whole new plugin. That would mean that I'd have to implement all the functions of that interface plus the special handling of the 'initialized' state for a class derived from QStackedWidget i.e. menus for handling the pages etc. That's what I think of as a lot of work, just by comparing how much code is in http://etudiant.istic.univ-rennes1.f...stackedbox.cpp
What I would like to see is something like:
class MyPlugin
: public QObject,
public [B
]QStackedWidgetPlugin
[/B
] {
Q_OBJECT
public:
[only few functions to implement]
private:
bool initialized;
};
class MyPlugin : public QObject, public [B]QStackedWidgetPlugin[/B]
{
Q_OBJECT
Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
MyPlugin(QObject *parent = 0);
[only few functions to implement]
private:
bool initialized;
};
To copy to clipboard, switch view to plain text mode
Do you see my problem now?
Am I not properly understanding how this works?
Bookmarks