Roshan Mathews wrote:
The code below should elide the text in a label if it is longer
than it's width, and show it with ellipses (...) but it doesn't
work -- the line `msg = fm.elidedText(...' returns an empty
QString.

...
        msg = fm.elidedText(self.msg, width,
                            QtCore.Qt.ElideRight)

That should have been
         msg = fm.elidedText(self.msg,
                             QtCore.Qt.ElideRight,
                             width)

Sorry about that.  This fixes the non-issue.

                Regards,
                [roshan;]

--
Roshan Mathews
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to