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

Vladimir Rutsky rutsky.vladimir at gmail.com
Wed Apr 1 12:27:18 BST 2015


On Wed, Apr 1, 2015 at 12:36 PM, Phil Thompson
<phil at riverbankcomputing.com> wrote:
> 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!

--
Vladimir Rutsky


More information about the PyQt mailing list