Jump to content

QWidget window resizing


Mozzarino

Recommended Posts

I created a widget in qtdesigner following this tutorial: https://github.com/kiryha/Houdini/wiki/python-for-artists .

So far I've tried all layout constraints and align methods within qtdesigner but houdini doesn't recognize them. This results in a window that looks like intended but doesn't resize... 
Any one knows how to solve this?

Edited by diogomgf
Link to comment
Share on other sites

I don't know anything about that tutorial, but the parent widget, whatever it is, needs to be enclosed in some kind of QLayout (QHBoxLayout, QVBoxLayout, etc) if you want it to automatically stretch to fit the parent container.

You'll have better luck with Qt stuff in general if you give up on QDesigner and just start coding your interfaces by hand. It takes a bit of practice but QDesigner is really a bit of a crutch.

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...