Skip to content

QTableWidget issues - no columnWidth property/getter, crashes with .item()/.cellWidget() #1070

@blipk

Description

I'm trying to calculate the width of a QTableWidget and unfortunately the table's geometry or sizeHint do not contain the correct value.

It seems I have to iterate the columns and get their columnWidth, but there is only a setter exposed in nodegui.

I also tried to iterate the items/cellWidgets to derive from their widths, but unfortunately nodegui just crashes without error if trying to use table.item() or table.cellWidget() on a row/column vector that does not exist, and as I use a dynamic mix of cellWidget and item I cannot pre-determine which function and vectors to use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions