I created a subclass of QAction, among others with this constructor:
MyAction(QObject * parent, const QString & name);
To copy to clipboard, switch view to plain text mode
Then I use it in other parts this way:
MyAction *action = new MyAction(this, "name");
MyAction *action = new MyAction(this, "name");
To copy to clipboard, switch view to plain text mode
The problem is that instead of my constructor, it's called QAction ( QObject * parent, const char * name ).
I fixed it changing my constructor to
MyAction
( QObject * parent,
const char * name
);
MyAction ( QObject * parent, const char * name);
To copy to clipboard, switch view to plain text mode
But I also had the same problem with other constructors.
Is it possible any way that only my constructors are taking into account and not the inherited ones?
Bookmarks