PyQt - How to prevent a dialog being resized?

K

Kelie

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.
 
C

Chris Ortner

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.

If you use the Qt designer you can set the minimum- and maximum window
size to the same value, which disables resize as well. Tested with Qt4
on Linux 2.6. But I'm pretty sure that there could be a much cleaner
way to do this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,085
Members
48,773
Latest member
Kaybee

Latest Threads

Top