Skip to content

Bad display of long strings #7

@rparkins999

Description

@rparkins999

If sqliteman needs to make a row height bigger than a single line in order to accommodate a long string in a field, it will sometimes display a single truncated line with elliipsis instead of as much of the string as will fit over multiple lines.

Unfortunately this is a combination of two bugs in Qt, and not realistically fixable (at least in Qt 4.8) without replacing a large chunk of Qt's table drawing logic. The first bug is that Qt gets the row height wrong because it doesn't use the same logic to work out how many lines it needs to display the text as it uses to split the text into lines when actually painting it, and both of these use private variables so they can't be overridden in a derived class. The second bug is that when Qt does actually paint the text, if it won't fit Qt just truncates it to the width of the column instead of displaying as much as possible in the lines available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions