cancel
Showing results for 
Search instead for 
Did you mean: 

Touchgfx Graph widget on top of Swipe Container is hard fault

YSN
Senior

I am using swipe container with two pages.

Problem 1: We are unable to swipe the pages pointing on top of the graph. I mean, swipe container is working only in the region where graph is not there? I understand that this is because of click event and drag event functions of graph widget, I only need swipe container. How to override this graph drag event function to still continue to use the Swipe container with left and right swipe option.

Problem 2: The graph works well as long as we are in same screen, when we transit to screen2 and come back to screen1 (where graph and swipe container are present) the graph creating hard fault after swiping on graph ? how to resolve this issue ?

11 REPLIES 11
Lzhan.5
Associate

you should overload the ​below three function

void handleClickEvent(const ClickEvent& evt);

void handleDragEvent(const DragEvent& evt);

void handleGestureEvent(const GestureEvent& evt);

Natali
Associate III

Hi

try this

graph.setTouchable(false);