dolevo
2nd December 2015, 09:01
Hi all,
Although I have been working with Qt for quite some time, I am lacking of some proper way of implementing some cases like below one.
There is an external library which does some image processing stuff using hardware. I created a class which uses this library and in this class I created some public functions that can be used from other classes if needed. Everything is fine and working ok. However, since this class needs to be used in different classes, I need to either pass some objects as parameters between different classes or I derive from that class. I know that this is not a good approach for this sort of case. Could anyone tell me the most proper way of handling this? How should I implement it so that I can reach those functions from everywhere?
Thanks.
Although I have been working with Qt for quite some time, I am lacking of some proper way of implementing some cases like below one.
There is an external library which does some image processing stuff using hardware. I created a class which uses this library and in this class I created some public functions that can be used from other classes if needed. Everything is fine and working ok. However, since this class needs to be used in different classes, I need to either pass some objects as parameters between different classes or I derive from that class. I know that this is not a good approach for this sort of case. Could anyone tell me the most proper way of handling this? How should I implement it so that I can reach those functions from everywhere?
Thanks.