PthinKS PthinKS Developer Forum forum.pthinks.com C++ • Qt • QML Engineering Community
PthinKS Engineering Q&A
forum.pthinks.com
Close
QML

How can the font of a QML ComboBox be customized?

↗ Original Qt Forum discussion

A Qt Forum user wanted to change the font used by a QML ComboBox, including the editable line area and the drop-down appearance.

qml
ComboBox {    id: combo    model: ["Banana", "Apple", "Lemon"]}
0 votes

1 Answer

DP
Dheerendra V Purohit
September 11, 2026 • Independent answer
✓ Accepted
Dheerendra suggested using ComboBox style customization and showed that the Text used for the editable/label area can set font.pointSize and font.bold. He also noted that the drop-down portion may need additional styling.
qml
Text {    text: control.editText    font.pointSize: 25    font.bold: true}
0 replies
Continue the discussion under Dheerendra V Purohit's answer. This reply remains inside this answer thread.
Optional reply code

Answer this Question

Each person can post an independent answer. To discuss a specific answer, use Reply to this answer under that answer.

Explain your own solution first; add reusable code if needed.

Optional code solution