开发者

Qt Custom Widget Size

开发者 https://www.devze.com 2023-03-24 04:21 出处:网络
I am writing a custom widget with qt. I was wondering if there was a way that I could hard code the width of the widget so it will always remain that size?

I am writing a custom widget with qt. I was wondering if there was a way that I could hard code the width of the widget so it will always remain that size?

T开发者_C百科hanks


widget->SetFixedWidth(myWidth);
widget->SetFixedHeight(myHeight);
widget->SetFixedSize(mySize);
0

精彩评论

暂无评论...
验证码 换一张
取 消