Anon
Anon

Reputation: 145

Change Text Size using QListWidgetItem class

How can we change the size of a text if we are using QListWidgetItem reference for the operations? Any help would be appreciated.

Upvotes: 0

Views: 4285

Answers (1)

rafix07
rafix07

Reputation: 20959

Try this, use QListWidgetItem::font() method to get the current font for an item, then change its size (using setPointSize) and set the modified font to item using QListWidgetItem::setFont(const QFont&).

Upvotes: 3

Related Questions