Qt Designer: Invoking Python functions

Hey guys and gals
So I’m used to handcoding PyQt UIs, but I want to set up an easy system for other users, using Qt Designer.

I’m just wondering how I might execute Python functions with Qt Designer buttons. I do not want to use pyuic to convert the ui file to a PyQt ui.

This is for our own proprietary application, so I don’t think ‘+command’ (how Maya does it) will work.

Qt Designer on my system is a little fubar’d so I’ll try this at home…just wanted to ask while it was fresh on my mind.
Thanks!

Perhaps this site can help you? seems like they’re using some type of ui-header file to define the functions used within the gui.

Edit: a link to the site would be helpful :slight_smile: PyQT Tutorial

Nice. I’ll try messing with that.
Much appreciated

I’ll save you a few weeks or months of figuring things out- don’t use the Qt Designer for production UIs. It is seductively smooth, but in actually crippled (unlike the Visual Studio designer which rocks). It is more work than it’s worth. Designer-friendly UI’s should be straightforward to hand-code when you know what you’re doing, and anything fancier is going to be far too confusing to maintain (or impossible to create) with the Designer.

[QUOTE=Rob Galanakis;17715]I’ll save you a few weeks or months of figuring things out- don’t use the Qt Designer for production UIs. It is seductively smooth, but in actually crippled (unlike the Visual Studio designer which rocks). It is more work than it’s worth. Designer-friendly UI’s should be straightforward to hand-code when you know what you’re doing, and anything fancier is going to be far too confusing to maintain (or impossible to create) with the Designer.[/QUOTE]

I definitely agree to a point, but this was for ease of use of artists to create quick personal UIs rather than ones for any sort of studio distribution.