I searched everywhere and couldn't find a solution to my problem. I hope someone here can help me. I use QCustomPlot to display experimental data points and curves resulting from fitting. So, for a set of N point sets and N curves I have 2N graphs. Sets of points are drawn first, then follow the curves. While preparing a figure for publication, I need a legend. But I only want one legend item for a corresponding pair of points/curve graphs. If I make an item invisible, the legend has empty spaces, which is ugly. When I call "removeFromLegend", it works. But here is the problem: when I click on one of the remaining items in the legend, the program crashes without any error messages.
Can anyone give me a hint as to how to solve this problem?
Thanks in advance,