Not sure if it is a typo, but the
Button(const QString &text, QWidget *parent);
To copy to clipboard, switch view to plain text mode
function declared in the header file will need to have assigned the default value (0), not the implementation in your .cpp file.
Other than that, you have to invoke the base class constructor from the
Button::Button(const QString & text, QWidget * parent = 0 )
To copy to clipboard, switch view to plain text mode
constructor, too:
Button::Button(const QString & text, QWidget * parent = 0 ) : QPushButton(text, parent)
To copy to clipboard, switch view to plain text mode
.
Bookmarks