Important: Please read the Qt Code of Conduct -

Geometry, Layout and Policy: a good tutorial?

  • Hello,

    I've been playing around with Qt4 using PyQt4 for while now. I'm trying to make some rather flexible interface with animations. In the process I am realising I am not mastering at all geometry, layout and policy as per Qt's logic. In fact I am rather confused.

    Is there a good and clear tutorial for this (preferably in Python)? I would like to learn what to do according to the needs of the application.

    (For instance I am trying to make an application with a half that hides/shows with a slide animation. So in my mind the application's global size policy should be that the half that doesn't move does not change size and that the application's global size changes according to the other half sliding on and off.)


Log in to reply