[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Single/Multiple inheritance with Qt Designer
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2007-12-27 9:21:01
Message-ID: 20071227092101.GA7202 () morpheus ! apaku ! dnsalias ! org
[Download RAW message or body]

On 18.12.07 18:54:40, Tiago Maluta wrote:
> Hi,
> 
> I'm with some problems trying to use a form developed in qt designer in
> my project. I will describe my steps:
> 
> 1) I created a Dialog without buttons
> 2) pyuic4 viewform.ui -o ui_viewform.py
> 3) edited my main file
> 
> 
> import sys
> #from qt import *
> 
> if I dis comment above line I got RuntimeError: the PyQt4.QtCore and qt
> modules both wrap the QObject class

You're mixing PyQt3 and PyQt4, the "from qt import *" is not used in
PyQt4. You should look at the PyQt4 documentation and examples if you
want to use PyQt4. If not you need to use the designer from qt3 not qt4.

Andreas

-- 
Your goose is cooked.
(Your current chick is burned up too!)
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic