Hi, I'm creating a GUI for an application used to create random level layouts.
I'm trying to connect a button using member functions and member variables. I tried following some other topics and the introduction to signals post but to to avail.
Here is some code to show what I'm trying to do:
Any help would be greatly appreciated,
Simon
I'm trying to connect a button using member functions and member variables. I tried following some other topics and the introduction to signals post but to to avail.
Here is some code to show what I'm trying to do:
Code Select
m_buttonGenerateRW->connect("pressed", &App::generateRW,
&instance,
m_ebMaxWalkers,
m_ebFillPercentage,
m_ebChanceToChangeDirection,
m_ebChanceStartAlive,
m_ebChanceToDestroyWalker,
m_ebChanceToSpawnNewWalker);
Code Select
m_buttonGenerateCA->connect("pressed", &App::generateCA,
&instance,
m_ebNumSimulationSteps,
m_ebBirthLimit,
m_ebDeathLimit,
m_ebChanceStartAlive);
Any help would be greatly appreciated,
Simon