In some stock software some figure showing this way:12.01
How can I do it with QT?
In some stock software some figure showing this way:12.01
How can I do it with QT?
If you want to display this text in QLabel, you can use html tags to underline a part of the text, just use:
Qt Code:
To copy to clipboard, switch view to plain text mode
You can create needed text given a real number using the basic arithmetical operations and QString::number() method. ( a hint: 12.01 = 12 + 0.01 )
If in stock software, I think figure showed maybe in QTableView or others.
If this has to happen in item views then you would need to write a delegate to paint the text appropriately.
Bookmarks