dfaure added a comment.
I mean, the user can press cancel, that's when QColorDialog returns an invalid color. If there was a concept like an invalid font we could do the same here, but there's no such concept in QFont. So yep, no better way. REPOSITORY R236 KWidgetsAddons REVISION DETAIL https://phabricator.kde.org/D28774 To: ahmadsamir, #frameworks, dfaure, cfeck Cc: kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns