Qt- how to set QWidget width

Posted by Narek on Stack Overflow See other posts from Stack Overflow or by Narek
Published on 2010-06-03T14:40:11Z Indexed on 2010/06/03 14:44 UTC
Read the original article Hit count: 227

Filed under:
|
|
|

How to set QWidget width? I know setGeometry(QRect& rect) function to do that, but in that case I should use geometry() function to get former parameters of my QWidget, then I should increment the width and use setGeometry(..). Is there any ditect way to say

QWidget aa;
aa.setWidth(165); //something like this?

© Stack Overflow or respective owner

Related posts about c++

Related posts about qt