Reputation: 145
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
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