Hi, I would ask, how you keep private variables in the class? If there are a few then it is not a problem but now I have already over a dozen variables in class and I look for some way to do it more "clean".
Now I use private structure to storage all my private variables, for example
Qt Code:
class CustomClass { struct Data { QTableWidgetItem * hoverItem; QLabel label; QString text; QAction file; QAction save; // other variables }; public: CustomClass(); ~CustomClass(); private: Data data; };To copy to clipboard, switch view to plain text mode
I also read about pimpl Idiom
http://qt-project.org/wiki/Dpointer.
How you are doing it in daily work?
Thanks,
Bookmarks