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)
#ifndef HEADER_H
#define HEADER_H
#include <QMainWindow>
#include <QLineEdit>
#include <QFile>
#include <QTextStream>
#include <QDebug>
#include <QString>
#include <QDir>
#include <QDateTime>
#include <QVector>
#include "itchySkin.h"
namespace Ui {class Classy;}
{
Q_OBJECT
public:
explicit Classy
(QWidget *parent
= 0);
~Classy();
public slots:
on_itchySkin_clicked();
private slots:
private:
Ui::Classy *ui;
class itchySkin
{
};
};
#endif // HEADER_H
#ifndef HEADER_H
#define HEADER_H
#include <QMainWindow>
#include <QLineEdit>
#include <QFile>
#include <QTextStream>
#include <QDebug>
#include <QString>
#include <QDir>
#include <QDateTime>
#include <QVector>
#include "itchySkin.h"
namespace Ui {class Classy;}
class Classy : public QMainWindow
{
Q_OBJECT
public:
explicit Classy(QWidget *parent = 0);
QDir *dir;
~Classy();
public slots:
on_itchySkin_clicked();
private slots:
private:
Ui::Classy *ui;
class itchySkin
{
};
};
#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.
Bookmarks