QCustomPlot Discussion and Comments

Layout row_index and column_index at clickedReturn to overview

Hi All, is there any way of getting the row and column index at mouse clicked on a QCPlayoutgrid?

Thank you much!

I have a layout system and i'm trying to get the layout index when the user click in a layout

If there is anybody who come through this case i found a workaround which is:

on the creation of the Layout since i had to give each layout an object (in my case an axisRect), so i named the object with the x,y coord of the layoutgrid then later i connect the onMouseClicked qevent and got axisRect at position clicked, got the name of the axisRect and convert it to x and y.
not a beautiful solution but it works

another thing is to check the pointer returned by getObjectAt() function if that pointer is not null or else you will find yourself with a segfault err