Quote Originally Posted by parulkalra14 View Post
class Labeltext : public QPlainTextEdit
Are you sure your Labeltext class should be a QPlainTextEdit?

Quote Originally Posted by parulkalra14 View Post
Labeltext(QLabel *parent = 0);
And you are sure you have a QLabel as its parent, not some container widget?

Cheers,
_