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

List:       pykde
Subject:    Re: [PyQt] QTableWidget - pyuic does not compile several attributes
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2011-07-29 15:26:53
Message-ID: ec8e4aa54979b2b987f1a0a238badc91 () localhost
[Download RAW message or body]

On Fri, 29 Jul 2011 11:02:05 +0200, "Hans-Peter Jansen" <hpj@urpla.net>
wrote:
> Comparing output from uic with current pyuic4, I noticed, that uic will 
> only set the objectName, if not done already:
> 
>         if (WidgetName->objectName().isEmpty())
>             WidgetName->setObjectName(QString::fromUtf8("WidgetName"));
> 
> That looks useful.

Yes, but given the way pyuic is implemented it's difficult to do.

> From a further cursory look, the IBeamCursor is set on the viewport:
> 
>         tableWidget->viewport()->setProperty("cursor",
>         QVariant(QCursor(Qt::IBeamCursor)));
> 
> instead of:
> 
>         self.tableWidget.setProperty(_fromUtf8("cursor"),
>         QtCore.Qt.IBeamCursor)

Fixed.

> Also note, that properties aren't fed through fromUtf8.

Fixed.

Thanks,
Phil
_______________________________________________
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