cancel
Showing results for 
Search instead for 
Did you mean: 

A reference of type cannot be initialized with a value of type

Tty.1
Associate II

I added "graph clicked trigger" to graph and generated code. In the MainView Base.cpp graph.setClick Action(graphClickCallback) gived this error.

Error[Pe434]: a reference of type "touchgfx::GenericCallback<touchgfx::GraphWrapAndClear<(int16_t)100> const &, touchgfx::ClickEvent const &> &" (not const-qualified) cannot be initialized with a value of type

"touchgfx::Callback<MainViewBase, touchgfx::AbstractDataGraph const &, touchgfx::AbstractDataGraph::GraphClickEvent const &>"

1 ACCEPTED SOLUTION

Accepted Solutions
Tty.1
Associate II

I solved error by uncheck ClickListener in MIXINS.

View solution in original post

3 REPLIES 3
Tty.1
Associate II

I solved error by uncheck ClickListener in MIXINS.

Interesting, what were you trying to do ?

/Romain

I was doing Dynamic Graph Widget - TouchGFX on Youtube and I thought I had to add "click listener" to be able to use ClickEvent.hpp