E
E
Evgeny Yakushov2021-02-11 11:31:55
Qt
Evgeny Yakushov, 2021-02-11 11:31:55

Why error "WinCioClass": not a member of "Ui"?

Now I'm dragging a project from one machine to another and an error occurred:

#pragma once

#include <QtWidgets/QMainWindow>
#include <QSettings>
#include <QFileDialog>

#include "ui_WinCio.h"
#include "RecentElem.h"
#include "WindowFile.h"

#include <QDebug>

class WinCio : public QMainWindow
{
    Q_OBJECT

public:
    WinCio(QWidget* parent = Q_NULLPTR);

protected:
    void closeEvent(QCloseEvent*);

private slots:
    void slotOpenFile();
    void slotDeleteRecentElem(RecentElem* elem);
    void slotDeleteAllRecentElems();

private:
    Ui::WinCioClass ui;

    QString m_selectedFile;
    QVector<RecentElem*> m_recentFiles;

    /* ----- Function -----*/
    void addRecentFile(QString path = Q_NULLPTR, bool addNewElem = true);
    void updateListRecentFiles(RecentElem* currentElem);
    void updateSettingsConf();
    bool confirmDeleteLinkFile(QString path);
};


6024eb43a8688728393344.png

Swears as you understood on UI. Please tell me what is wrong.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ananiev, 2021-02-11
@yevgenyyakushov

Apparently, it should be like this
Ui::WinCio ui
. But, in general, look at what you have in the ui_WinCio.h file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question