user174084
user174084

Reputation: 1107

Qt Custom Widget 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?

Thanks

Upvotes: 1

Views: 1169

Answers (1)

Andrew
Andrew

Reputation: 24846

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

Upvotes: 4

Related Questions