updating qt4 to qt5 LogText is replaced with?
Solved
General and Desktop
-
qt4 code:
label_3->setTextFormat(Qt::LogText);
found a post that said replace "LogText", with "TextFormat", however,
label_3->setTextFormat(Qt::TextFormat);
results in
/home/michaeleric/GUI/CUi_MainWindow.h:1616: error: expected primary-expression before ‘)’ token 1616 | label_3->setTextFormat(Qt::TextFormat); | ^
does someone know what is going on?
-
enum Qt::TextFormat
Constant Value Description Qt::PlainText 0 The text string is interpreted as a plain text string. Qt::RichText 1 The text string is interpreted as a rich text string. See Supported HTML Subset for the definition of rich text. Qt::AutoText 2 The text string is interpreted as for Qt::RichText if Qt::mightBeRichText() returns true, otherwise as Qt::PlainText.