[PyQt] [bug] PyQt doesn't export QWIDGETSIZE_MAX macro to Python

Phil Thompson phil at riverbankcomputing.com
Wed Apr 1 10:36:43 BST 2015


On 31/03/2015 6:43 pm, Vladimir Rutsky wrote:
> Hello,
> 
> QWidget::setFixedSize() documentation [1] says that QWIDGETSIZE_MAX
> macro constant should be used to remove widget size constraints.
> The issue is that this constant is not exported into Python in PyQt4 or 
> PyQt5.
> 
> 
> As workaround, ((1 << 24) - 1) constant can be used.
> 
> 
> [1] http://pyqt.sourceforge.net/Docs/PyQt4/qwidget.html#setFixedSize

Fixed in tonight's snapshots.

Thanks,
Phil


More information about the PyQt mailing list