K
K
kapit2018-10-30 11:22:14
Python
kapit, 2018-10-30 11:22:14

How to change text size in QCompleter?

The proposed text of QCompleter does not fit because QLineEdit is short and it uses small font. It is necessary to reduce the font, but setFont, which I am used to, is not an attribute of QCompleter.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
yeedab, 2018-11-08
@kapit

It's better to use Qt Style Sheets.
But it's possible like this:completer.popup().setFont(font)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question