thank you lancelot..
In my implementation I am using an layout in the QCustomplot with 2 rows and 1 column.. I now add one QCPItemRect in ech subplot, but all added QCPItemRect's are added to the upper grid 0,0.. how can I set the subplot to add the QCPItemRect to?
I use the following code:
QCPItemRect* rect=new QCPItemRect(this);
// set to correct subplot-grid..
I tried setting the ClipAxisRect with the setClipAxisRect, but thats not working.. the first QCPItemRect is displayed correct, but if I drag it slower it is displayed in the lower subplot too. The second added QCPItemRect is not displayed at all..
I also looked into registerItem, but it works on the Customplot and not on the subplot, so I guess, it will not solve the problem here..
another Ide wa to use the AxisRect's insetLayout like that:
but I cant use the QCPItemRect* in the Function, because it need an QCPLayoutElement*
Any idea, what I am doing wrong?