So I'm sorry to keep pestering but I could really use the help again and this time it's more of a best way to do this kind of thing.

So I have a main gui I'm calling start it has a layout in it called specificsLayout that has a vertical spacer in it. Inside of this I want to put another ui based off of which click button the user selects.

So I have a class called classy at the top with everything laid out and all of the slots enter correctly. A button called itchySkin that is an object under classy however when it's selected I'd like the new ui I created to poplulate in the specifics Layout.

So I have something similar to the following as far as code:

header.h (For class classy)
Qt Code:
  1. #ifndef HEADER_H
  2. #define HEADER_H
  3.  
  4. #include <QMainWindow>
  5. #include <QLineEdit>
  6. #include <QFile>
  7. #include <QTextStream>
  8. #include <QDebug>
  9. #include <QString>
  10. #include <QDir>
  11. #include <QDateTime>
  12. #include <QVector>
  13. #include "itchySkin.h"
  14.  
  15.  
  16.  
  17. namespace Ui {class Classy;}
  18.  
  19. class Classy : public QMainWindow
  20. {
  21. Q_OBJECT
  22.  
  23. public:
  24. explicit Classy(QWidget *parent = 0);
  25. QDir *dir;
  26. ~Classy();
  27.  
  28. public slots:
  29. on_itchySkin_clicked();
  30.  
  31. private slots:
  32.  
  33.  
  34.  
  35.  
  36. private:
  37. Ui::Classy *ui;
  38.  
  39.  
  40. class itchySkin
  41. {
  42.  
  43. };
  44.  
  45. };
  46.  
  47. #endif // HEADER_H
To copy to clipboard, switch view to plain text mode 

As example of above I'm attempted to nest classes here like I would in C++ however the ui isn't visable to classy. How do I go about nesting classes so that Classy can see the objects/ui of itchySkin?

Thank you so much for your time and attention.