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:
  1. class CustomClass
  2. {
  3. struct Data {
  4. QTableWidgetItem * hoverItem;
  5. QLabel label;
  6. QString text;
  7. QAction file;
  8. QAction save;
  9. // other variables
  10. };
  11.  
  12. public:
  13. CustomClass();
  14. ~CustomClass();
  15.  
  16. private:
  17. Data data;
  18. };
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,