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&)
.
QSize candidate expects 1 argument, 0 provided
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
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow