Answers for "change size of a jbutton"

C++
5

html change button size

<button style="height:40px; width:40px;">Press Me</button>
Posted by: Guest on March-31-2021
0

set width qpushbutton

//Use this:

QPushButton* const button = new QPushButton(QString("<"), this); 
const QSize BUTTON_SIZE = QSize(22, 22);
button->setMinimumSize(BUTTON_SIZE);

//or:

button->setSize(BUTTON_SIZE);

//or:

button->setMinimumSize(BUTTON_SIZE);
Posted by: Guest on February-05-2021

Browse Popular Code Answers by Language