Question

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

Was it helpful?

Solution

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&).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top