wagmare
21st July 2009, 11:57
i have QGraphicsItem()
class GpioItem
i want to add 28 item of it to add in the scene
in the view.h
i am adding like this
GpioItem *button1;
GpioItem *button2;
GpioItem *button3;
.
.
.
.
.
GpioItem *button23;
GpioItem *button24;
and the .h file becomes too lengthy ... how to define all the 28 items in a short way of coding c++ ...
class GpioItem
i want to add 28 item of it to add in the scene
in the view.h
i am adding like this
GpioItem *button1;
GpioItem *button2;
GpioItem *button3;
.
.
.
.
.
GpioItem *button23;
GpioItem *button24;
and the .h file becomes too lengthy ... how to define all the 28 items in a short way of coding c++ ...