In case of flags (i.e. integers with different bits set), the "or" = "|"
operator is equivalent to addition. Therefore the following will work:
item:setTextAlignment(Qt.AlignmentFlag.AlignHCenter +
Qt.AlignmentFlag.AlignVCenter)
The reason Lqt didn't generate a "nice" wrapper in form of:
item:setTextAlignment {'AlignHCenter', 'AlignVCenter'}
is because of the definition of QListWidgetItem::setTextAlignment in Qt,
which uses a parameter "int alignment" instead of "Qt::Alignment
alignment". Blame the authors of Qt :)
There is no second argument, only addition. Think of it this way:
local desiredFlag = Qt.AlignmentFlag.AlignHCenter +
Qt.AlignmentFlag.AlignVCenter
item:setTextAlignment(desiredFlag)