Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
None
-
None
Description
I found float point numbersĀ formatting in point labels useful to me. I implemented a demo in which format is described by the following class.
class Q_CHARTS_EXPORT QPointLabelFormat { public: QString stringFormat; char xFloatFormat; int xPrec; char yFloatFormat; int yPrec; QPointLabelFormat(QString stringFormat_, char xFloatFormat_ = 'g', int xPrec_ = 6, char yFloatFormat_ = 'g', int yPrec_ = 6); bool operator==(const QPointLabelFormat &format) const; bool operator!=(const QPointLabelFormat &format) const { return !(*this == format); } };
I think this feature may be useful to others too.