Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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);

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #width #qpushbutton
ADD COMMENT
Topic
Name
2+9 =