sevketk
22nd December 2019, 16:54
I have QPixmaps array QList ,
mainwindow.h file
QList<QPixmap> sembolList;
mainwindow.cpp file
sembolList << QPixmap(":/images/9_maca.png");
sembolList << QPixmap(":/images/10_maca.png");
sembolList << QPixmap(":/images/11_maca.png");
...
...
I want to send another classes (more than one) as constructor parameter sembolList but not instance or copy , only use its adress . in other words , I do not want to take up space in memory. one time create and dynamically use all my class. How to make that?
mainwindow.h file
QList<QPixmap> sembolList;
mainwindow.cpp file
sembolList << QPixmap(":/images/9_maca.png");
sembolList << QPixmap(":/images/10_maca.png");
sembolList << QPixmap(":/images/11_maca.png");
...
...
I want to send another classes (more than one) as constructor parameter sembolList but not instance or copy , only use its adress . in other words , I do not want to take up space in memory. one time create and dynamically use all my class. How to make that?