I was creating a textEdit by code not in designer form ,like this
It's not about how you create your widget, read again what SixDegrees written, compiler is confused, because you do something like this:
class A{
public:
void show(){
}
};
class B{
public:
void show(){
}
};
class C : public A, public B{
};
int main(){
//...
C c;
c.show(); //!< and what is supposed to be called here : A::show() or B::show() ?
}
class A{
public:
void show(){
}
};
class B{
public:
void show(){
}
};
class C : public A, public B{
};
int main(){
//...
C c;
c.show(); //!< and what is supposed to be called here : A::show() or B::show() ?
}
To copy to clipboard, switch view to plain text mode
I just want to know how to promote the custom MyTextEdit(which inherits QTextEdit) class to texEdit area....
Stef has already given you a nice tutorial on promoting widgets in designer. Which part of it is not clear ?
Bookmarks