enthought / enthought/traitsui

TableEditor headings are cutoff on Windows in PyQt

Open
#756 8 comments 0 reactions 0 assignees View on GitHub
toolkit: Qt
Dominant language
Python
Stars
306
Forks
99
PR merge metrics
No merged PRs in 30d

Description

The headings in the `TableEditor` do not appear to be correctly re-sizing to the displayed text. This can be seen in when running the current `TableEditor_demo.py`. Below you can see that the "g" in "Age"` is cutoff.

Screen Shot 2020-03-05 at 2 45 45 PM

This gets exacerbated if you increase the font size of the application with something like:
```
qApp = QtGui.QApplication.instance()
qApp.setStyleSheet(
textwrap.dedent("""\
* { font-size: 32px }
""")
)
```

Screen Shot 2020-03-05 at 5 01 31 PM

Windows 10
Python 3.6.9
TraitsUI: 6.1.3
PyQt: 5.7.1
Qt: 5.6.2

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.