小弟, 在给文字设置了下划线的类型以后,结果 QFont 的underline() , 函数返回的是false,很是不懂,
难道这个函数只能返回那种 直线类型的下划线吗?
请高手指点一下,先谢过了。
QTextCharFormat::UnderlineStyle
QTextCharFormat::NoUnderline
QTextCharFormat::SingleUnderline
QTextCharFormat::DashUnderline
QTextCharFormat::DotLine
QTextCharFormat::DashDotLine
QTextCharFormat::DashDotDotLine
QTextCharFormat::WaveUnderline
QTextCharFormat::SpellCheckUnderline
也就是只有这种 类型 QTextCharFormat::SingleUnderline 返回的是正常的。。
其它的类型虽然设置了也能正常显示,但是 underline()函数返回的却是 false..