문제

i have this code

QSize size;
size.setHeight(3);
size.setWidth(3);
QWidget window;
QCheckBox* botonera = new QCheckBox("hola",&window);
botonera->baseSize(size);

Why is the botonera->baseSize(size) telling me it has to be a different kind of type? The error tells me that the candidate is waiting no argumets but i have provided one.

Regards

도움이 되었습니까?

해결책

QWidget::baseSize() is a "getter" method. It returns the base size. If you want to set the base size, use the corresponing "setter" method: setBaseSize(const QSize&).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top