Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad display of long strings #7

Open
rparkins999 opened this issue Oct 31, 2018 · 1 comment
Open

Bad display of long strings #7

rparkins999 opened this issue Oct 31, 2018 · 1 comment

Comments

@rparkins999
Copy link
Owner

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.

@rparkins999
Copy link
Owner Author

This seems to have been fixed in Qt 5. Release 1.8.1 which will appear real soon now is built with QT 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant