Using PyQT with QT Designer

Michael Staggs tausciam at gmail.com
Fri Aug 23 13:58:04 EDT 2013


Thanks for the manual. I will look into it but all the examples are
probably c++. Ive tried zetcode and some of the other tutorials.

That's the problem though. It is exactly how I want it in designer. It's
perfect as it is in designer when I preview it. Here is a screenshot of the
preview: http://i.imgur.com/ULRolq8.png

The problem isn't that I can't design it in QT Designer. It is designed
just like I want it. The problem is, when I try to follow zetcode and other
tutorials about how to import and use my form as designed by qt designer
and run through pyuic4.... it doesn't seem to even notice my ui file...and
certainly isnt acting on it.

I posted my code above where I was trying anything just to get it to use
that ui I designed in qt designer.....so far to no avail
---------- Forwarded message ----------
From: "Michael Staggs" <tausciam at gmail.com>
Date: Aug 23, 2013 12:54 PM
Subject: Re: Using PyQT with QT Designer
To: "Phil Thompson" <phil at riverbankcomputing.com>
Cc:

Thanks for the manual. I will look into it but all the examples are
probably c++. Ive tried zetcode and some of the other tutorials.

That's the problem though. It is exactly how I want it in designer. It's
perfect as it is in designer when I preview it. Here is a screenshot of the
preview: http://i.imgur.com/ULRolq8.png

The problem isn't that I can't design it in QT Designer. It is designed
just like I want it. The problem is, when I try to follow zetcode and other
tutorials about how to import and use my form as designed by qt designer
and run through pyuic4.... it doesn't seem to even notice my ui file...and
certainly isnt acting on it.

I posted my code above where I was trying anything just to get it to use
that ui I designed in qt designer.....so far to no avail
On Aug 23, 2013 12:42 PM, "Phil Thompson" <phil at riverbankcomputing.com>
wrote:

> On Fri, 23 Aug 2013 12:30:41 -0500, Michael Staggs <tausciam at gmail.com>
> wrote:
> > Right. I know that if I redesign it I have to run pyuic4 again and that
> I
> > shouldn't change that file...let qt designer do its job.
> >
> > But, that's exactly what I'm having the problem with...incorporating the
> > file pyuic4 gave me... and why I posted here.
> >
> > If you can point me towards something I need to read then by all
> means...
> > I'd be grateful. But, all the little tutorials I've found told me to do
> it
> > this way and obviously my program has no access to it....it's not
> resizing
> > the window or doing anything the ui file states. So, I do know I'm doing
> > something wrong and doing something the little tutorials didn't account
> > for. So, I'm asking here.
> >
> > Again, I'm just learning. I took the codecademy python course and
> started
> > trying to learn to build a media player...and haven't figured out how to
> > build the gui yet. If you or anyone else can point me to something that
> > would explain what I'm doing wrong, I'll read it from front to back. If
> > it's too advanced it will lose me....but I would like to learn to do
> this.
>
> http://qt-project.org/doc/qt-4.8/designer-manual.html
>
> Designer has a preview option that creates your UI on the fly. The first
> step would be to get it working as far as you can with that before you try
> generating any Python code.
>
> Phil
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130823/893eb807/attachment.html>


More information about the Python-list mailing list