how to call a function to refresh GUI
Posted
by SWKK
on Stack Overflow
See other posts from Stack Overflow
or by SWKK
Published on 2010-05-11T10:45:25Z
Indexed on
2010/05/12
13:04 UTC
Read the original article
Hit count: 195
c++
Hi Guys,
I am refactoring some code to decouple GUI from some state.
#include <StateObject>
Class GUI{
...
StateObject A;
void doSomething() { A->hullaballoo();}
**void ReFreshMyGui() { //take state A and redraw }**
};
State object is being shared by multiple classes to update the state but this Gui Object specializes in displaying the state. So I would like to call the Refresh function via StateObject whenever its modified.
I am not sure how or if signals will provide the solution. Any hints?
© Stack Overflow or respective owner