#include "button.h"
#include
Button::Button(const QString &text, QWidget *parent)
:QToolButton(parent)
{
setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Preferred);
setText(text);
}
QSize Button::sizeHint() const
{
QSize size=QToolButton::sizeHint();
size.rheight()+=20;
size.rwidth()=qMax(size,width(),size.height());
return size;
}
D:\wjl\C++\calculator\button.cpp:14: error: no matching function for call to 'qMax(QSize&, int, int)'
size.rwidth()=qMax(size,width(),size.height());
^