Error in QT: invalid operators of types’ qlabel * ‘and’ void ‘to binary’ operator & gt; ‘ Wrong solution.
This kind of error is generally the operation symbol use error
For example:
btnLabel>setFixedSize(menuBtn->width(),menuBtn->height());
Here ‘>’ operation symbol is wrong, changed to ‘->’, it will be OK!
btnLabel->setFixedSize(menuBtn->width(),menuBtn->height());