471,071 Members | 1,319 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,071 software developers and data experts.

PyQt - How to prevent a dialog being resized?

Hello,

My question is as subject. I tried something like this and it doesn't
work.

def resizeEvent(self, event):
self.size = event.oldSize()

Any hint?

Thank you.
Mar 31 '08 #1
1 1749
On Mar 31, 7:12 pm, Kelie <kf9...@gmail.comwrote:
Hello,

My question is as subject. I tried something like this and it doesn't
work.

def resizeEvent(self, event):
self.size = event.oldSize()

Any hint?

Thank you.
You should preset size hints:

http://doc.trolltech.com/4.2/qwidget...nimumSize-prop
Mar 31 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Ilya Knizhnik | last post: by
1 post views Thread by Michael Mossey | last post: by
reply views Thread by Eric Williams | last post: by
17 posts views Thread by eholbroo | last post: by
5 posts views Thread by Marcpp | last post: by
2 posts views Thread by skawaii | last post: by
reply views Thread by pierreroth64 | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.