Greetings,
I have been tasked with porting our qwt libs to a newer version.
I noticed there was a lack of any guide to accomplish that port easily, (unless I did not look well enough) so if anyone could help me with that I would be very thankful.
Now, it was not I who developped our qwt components. I have never used qwt myself, but I know Qt decently. I tried to look up the changes and understand how to port, but for some questions I have not found any answer.
Summary:
We currently use qwt to make an histogram and a color scale (choose a color range from black-lowest value to white-highest value with the middle being decided by the chosen color palette). From what i've gathered, we made our own class descending from QwtPlotItem and built our draw function for the histogram. Both the color scale and the histogram are in separate dock widgets.
I am aware of the new qwt_plot_histogram class but I am unaware of how to port it without starting from scratch considering the draw function was made by us.
We mainly used QwtIntervalData to build the histogram,
Some changes I don't understand/questions:
-QwtIntervalData --> Where is it gone? What is the correct replacement for this class?
-Qwt_compat only redefines qwt objects as qtobjects : qwt_double_rect ---> QRectF . Is this true? If so, I could just change the vars directly in the code.
-With the new qwtPlotHistogram class, would it be possible to use a custom made color palette to display the histogram? (Example: the histogram needs to have a color gradient instead of being uniform in terms of color)
Changes I made:
-Took the svn version of qwt_compat_h instead of the 6.0.1 version
-Removed bad inclusions and added qwt_compat
-Changed QwtIntervalData to QwtInterval. This is my main problem.
Additional info :
-We use Qt 4.7.4
-We have libqxt 6.0.2
Can anyone help me by clarifying these things for me? I'm also willing to take any advice on the porting!
Thanks in advance,
-WSQt
Bookmarks