Ir ao conteúdo
  • Cadastre-se
Entre para seguir isso  
Ricardobarros87

 error qtcore/qvariant: no such file or directory

Posts recomendados

Estou com dificuldades em utilizar um script de um pequeno programa que baixei. 

 

< o conteúdo do script está assim:

#ifndef UI_MAINWINDOW_H
#define UI_MAINWINDOW_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QFrame>
#include <QtGui/QGridLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QLineEdit>
#include <QtGui/QListWidget>
#include <QtGui/QMainWindow>
#include <QtGui/QMenu>
#include <QtGui/QMenuBar>
#include <QtGui/QPushButton>
#include <QtGui/QStatusBar>
#include <QtGui/QTabWidget>
#include <QtGui/QWidget>
QT_BEGIN_NAMESPACE
class Ui_MainWindow
{
public:
    QAction *actionOpen;
    QAction *actionSave;
    QAction *actionExit;
    QWidget *centralWidget;
    QGridLayout *gridLayout;
    QTabWidget *tabWidget;
    QWidget *tab;
    QGridLayout *gridLayout_2;
    QListWidget *currentListWidget;
    QPushButton *pushButton;
    QPushButton *pushButton_5;
    QPushButton *pushButton_6;
    QLabel *label_2;
    QFrame *line;
    QFrame *line_2;
    QPushButton *pushButton_2;
    QLineEdit *lineEdit;
    QLabel *label;
    QWidget *tab_2;
    QGridLayout *gridLayout_3;
    QListWidget *futureListWidget;
    QPushButton *pushButton_3;
    QPushButton *pushButton_7;
    QWidget *tab_3;
    QGridLayout *gridLayout_4;
    QListWidget *completedListWidget;
    QPushButton *pushButton_4;
    QMenuBar *menuBar;
    QMenu *menu;
    QStatusBar *statusBar;
    void setupUi(QMainWindow *MainWindow)
    {
        if (MainWindow->objectName().isEmpty())
            MainWindow->setObjectName(QString::fromUtf8("MainWindow"));
        MainWindow->resize(296, 452);
        actionOpen = new QAction(MainWindow);
        actionOpen->setObjectName(QString::fromUtf8("actionOpen"));
        actionSave = new QAction(MainWindow);
        actionSave->setObjectName(QString::fromUtf8("actionSave"));
        actionExit = new QAction(MainWindow);
        actionExit->setObjectName(QString::fromUtf8("actionExit"));
        centralWidget = new QWidget(MainWindow);
        centralWidget->setObjectName(QString::fromUtf8("centralWidget"));
        gridLayout = new QGridLayout(centralWidget);
        gridLayout->setSpacing(6);
        gridLayout->setMargin(11);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        tabWidget = new QTabWidget(centralWidget);
        tabWidget->setObjectName(QString::fromUtf8("tabWidget"));
        tabWidget->setTabPosition(QTabWidget::North);
        tabWidget->setTabShape(QTabWidget::Rounded);
        tab = new QWidget();
        tab->setObjectName(QString::fromUtf8("tab"));
        gridLayout_2 = new QGridLayout(tab);
        gridLayout_2->setSpacing(6);
        gridLayout_2->setMargin(11);
        gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
        currentListWidget = new QListWidget(tab);
        currentListWidget->setObjectName(QString::fromUtf8("currentListWidget"));
        gridLayout_2->addWidget(currentListWidget, 0, 0, 1, 2);
        pushButton = new QPushButton(tab);
        pushButton->setObjectName(QString::fromUtf8("pushButton"));
        gridLayout_2->addWidget(pushButton, 13, 0, 1, 2);
        pushButton_5 = new QPushButton(tab);
        pushButton_5->setObjectName(QString::fromUtf8("pushButton_5"));
        gridLayout_2->addWidget(pushButton_5, 11, 0, 1, 2);
        pushButton_6 = new QPushButton(tab);
        pushButton_6->setObjectName(QString::fromUtf8("pushButton_6"));
        gridLayout_2->addWidget(pushButton_6, 12, 0, 1, 2);
        label_2 = new QLabel(tab);
        label_2->setObjectName(QString::fromUtf8("label_2"));
        gridLayout_2->addWidget(label_2, 2, 0, 1, 2);
        line = new QFrame(tab);
        line->setObjectName(QString::fromUtf8("line"));
        line->setFrameShape(QFrame::HLine);
        line->setFrameShadow(QFrame::Sunken);
        gridLayout_2->addWidget(line, 9, 0, 1, 2);
        line_2 = new QFrame(tab);
        line_2->setObjectName(QString::fromUtf8("line_2"));
        line_2->setFrameShape(QFrame::HLine);
        line_2->setFrameShadow(QFrame::Sunken);
        gridLayout_2->addWidget(line_2, 1, 0, 1, 2);
        pushButton_2 = new QPushButton(tab);
        pushButton_2->setObjectName(QString::fromUtf8("pushButton_2"));
        gridLayout_2->addWidget(pushButton_2, 8, 0, 1, 2);
        lineEdit = new QLineEdit(tab);
        lineEdit->setObjectName(QString::fromUtf8("lineEdit"));
        gridLayout_2->addWidget(lineEdit, 6, 0, 1, 2);
        label = new QLabel(tab);
        label->setObjectName(QString::fromUtf8("label"));
        gridLayout_2->addWidget(label, 5, 0, 1, 1);
        tabWidget->addTab(tab, QString());
        tab_2 = new QWidget();
        tab_2->setObjectName(QString::fromUtf8("tab_2"));
        gridLayout_3 = new QGridLayout(tab_2);
        gridLayout_3->setSpacing(6);
        gridLayout_3->setMargin(11);
        gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
        futureListWidget = new QListWidget(tab_2);
        futureListWidget->setObjectName(QString::fromUtf8("futureListWidget"));
        gridLayout_3->addWidget(futureListWidget, 0, 0, 1, 1);
        pushButton_3 = new QPushButton(tab_2);
        pushButton_3->setObjectName(QString::fromUtf8("pushButton_3"));
        gridLayout_3->addWidget(pushButton_3, 2, 0, 1, 1);
        pushButton_7 = new QPushButton(tab_2);
        pushButton_7->setObjectName(QString::fromUtf8("pushButton_7"));
        gridLayout_3->addWidget(pushButton_7, 1, 0, 1, 1);
        tabWidget->addTab(tab_2, QString());
        tab_3 = new QWidget();
        tab_3->setObjectName(QString::fromUtf8("tab_3"));
        gridLayout_4 = new QGridLayout(tab_3);
        gridLayout_4->setSpacing(6);
        gridLayout_4->setMargin(11);
        gridLayout_4->setObjectName(QString::fromUtf8("gridLayout_4"));
        completedListWidget = new QListWidget(tab_3);
        completedListWidget->setObjectName(QString::fromUtf8("completedListWidget"));
        gridLayout_4->addWidget(completedListWidget, 0, 0, 1, 1);
        pushButton_4 = new QPushButton(tab_3);
        pushButton_4->setObjectName(QString::fromUtf8("pushButton_4"));
        gridLayout_4->addWidget(pushButton_4, 1, 0, 1, 1);
        tabWidget->addTab(tab_3, QString());
        gridLayout->addWidget(tabWidget, 0, 1, 1, 1);
        MainWindow->setCentralWidget(centralWidget);
        menuBar = new QMenuBar(MainWindow);
        menuBar->setObjectName(QString::fromUtf8("menuBar"));
        menuBar->setGeometry(QRect(0, 0, 296, 19));
        menu = new QMenu(menuBar);
        menu->setObjectName(QString::fromUtf8("menu"));
        MainWindow->setMenuBar(menuBar);
        statusBar = new QStatusBar(MainWindow);
        statusBar->setObjectName(QString::fromUtf8("statusBar"));
        MainWindow->setStatusBar(statusBar);
        QWidget::setTabOrder(currentListWidget, pushButton_5);
        QWidget::setTabOrder(pushButton_5, pushButton_6);
        QWidget::setTabOrder(pushButton_6, pushButton);
        QWidget::setTabOrder(pushButton, futureListWidget);
        QWidget::setTabOrder(futureListWidget, pushButton_7);
        QWidget::setTabOrder(pushButton_7, pushButton_3);
        QWidget::setTabOrder(pushButton_3, completedListWidget);
        QWidget::setTabOrder(completedListWidget, pushButton_4);
        menuBar->addAction(menu->menuAction());
        menu->addAction(actionOpen);
        menu->addAction(actionSave);
        menu->addAction(actionExit);
        retranslateUi(MainWindow);
        QObject::connect(pushButton, SIGNAL(clicked()), MainWindow, SLOT(removeButtonClick()));
        QObject::connect(pushButton_2, SIGNAL(clicked()), MainWindow, SLOT(addButtonClick()));
        QObject::connect(pushButton_3, SIGNAL(clicked()), MainWindow, SLOT(removeButtonClick()));
        QObject::connect(pushButton_4, SIGNAL(clicked()), MainWindow, SLOT(removeButtonClick()));
        QObject::connect(pushButton_5, SIGNAL(clicked()), MainWindow, SLOT(moveToFutureButtonClick()));
        QObject::connect(pushButton_6, SIGNAL(clicked()), MainWindow, SLOT(completeButtonClick()));
        QObject::connect(pushButton_7, SIGNAL(clicked()), MainWindow, SLOT(completeButtonClick()));
        tabWidget->setCurrentIndex(0);

        QMetaObject::connectSlotsByName(MainWindow);
    } // setupUi
    void retranslateUi(QMainWindow *MainWindow)
    {
        MainWindow->setWindowTitle(QApplication::translate("MainWindow", "Todo List", 0, QApplication::UnicodeUTF8));
        actionOpen->setText(QApplication::translate("MainWindow", "Open", 0, QApplication::UnicodeUTF8));
        actionOpen->setShortcut(QApplication::translate("MainWindow", "Ctrl+O", 0, QApplication::UnicodeUTF8));
        actionSave->setText(QApplication::translate("MainWindow", "Save", 0, QApplication::UnicodeUTF8));
        actionSave->setShortcut(QApplication::translate("MainWindow", "Ctrl+S", 0, QApplication::UnicodeUTF8));
        actionExit->setText(QApplication::translate("MainWindow", "Exit", 0, QApplication::UnicodeUTF8));
        actionExit->setShortcut(QApplication::translate("MainWindow", "Ctrl+Q", 0, QApplication::UnicodeUTF8));
        pushButton->setText(QApplication::translate("MainWindow", "Remove", 0, QApplication::UnicodeUTF8));
        pushButton_5->setText(QApplication::translate("MainWindow", "Move to Future", 0, QApplication::UnicodeUTF8));
        pushButton_6->setText(QApplication::translate("MainWindow", "Complete", 0, QApplication::UnicodeUTF8));
        label_2->setText(QApplication::translate("MainWindow", "<h3>New Todo</h3>", 0, QApplication::UnicodeUTF8));
        pushButton_2->setText(QApplication::translate("MainWindow", "Add", 0, QApplication::UnicodeUTF8));
        label->setText(QApplication::translate("MainWindow", "Text:", 0, QApplication::UnicodeUTF8));
        tabWidget->setTabText(tabWidget->indexOf(tab), QApplication::translate("MainWindow", "Current", 0, QApplication::UnicodeUTF8));
        pushButton_3->setText(QApplication::translate("MainWindow", "Remove", 0, QApplication::UnicodeUTF8));
        pushButton_7->setText(QApplication::translate("MainWindow", "Complete", 0, QApplication::UnicodeUTF8));
        tabWidget->setTabText(tabWidget->indexOf(tab_2), QApplication::translate("MainWindow", "Future", 0, QApplication::UnicodeUTF8));
        pushButton_4->setText(QApplication::translate("MainWindow", "Remove", 0, QApplication::UnicodeUTF8));
        tabWidget->setTabText(tabWidget->indexOf(tab_3), QApplication::translate("MainWindow", "Completed", 0, QApplication::UnicodeUTF8));
        menu->setTitle(QApplication::translate("MainWindow", "File", 0, QApplication::UnicodeUTF8));
    } // retranslateUi
};
namespace Ui {
    class MainWindow: public Ui_MainWindow {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_MAINWINDOW_H 

programa utilizado DEV C++

o erro que aparece é na linha:

 C:\Users\pc\Desktop\Programas\Programa test\Todo_list\ui_mainwindow.h    [Error] QtCore/QVariant: No such file or directory
compilation terminated.

>

Compartilhar este post


Link para o post
Compartilhar em outros sites

Arquivo QtCore/QVariant: não foi encontrado.

Possíveis soluções:

1- Verificar na pasta QtCore (como você usa DevC++, vai ate a pasta do programa, em MingW -> include -> QtCore) se o arquivo QVariant existe, caso contrário procure baixa-lo e colocar na pasta dita anteriormente.

 2- Verificar se #include <QtCore/QVariant> está com dados corretos.

Compartilhar este post


Link para o post
Compartilhar em outros sites
Este tópico está parado há muito tempo. Certifique-se que a sua mensagem tem a ver com o tema sendo discutido. Obrigado.

Junte-se à conversa

Você pode postar agora e cadastrar-se depois. Se você tem uma conta, faça o login para postar.

Visitante
Responder

×   Você colou conteúdo com formatação.   Restore formatting

  Só é possível ter até 75 emoticons.

×   O link foi automaticamente convertido para mostrar o conteúdo.   Clique aqui para mostrá-lo como link comum

×   Seu texto anterior foi restaurado.   Limpar o editor

×   You cannot paste images directly. Upload or insert images from URL.

Entre para seguir isso  





Sobre o Clube do Hardware

No ar desde 1996, o Clube do Hardware é uma das maiores, mais antigas e mais respeitadas publicações sobre tecnologia do Brasil. Leia mais

Direitos autorais

Não permitimos a cópia ou reprodução do conteúdo do nosso site, fórum, newsletters e redes sociais, mesmo citando-se a fonte. Leia mais

×
×
  • Criar novo...

GRÁTIS: minicurso “Como ganhar dinheiro montando computadores”

Gabriel TorresGabriel Torres, fundador e editor executivo do Clube do Hardware, acaba de lançar um minicurso totalmente gratuito: "Como ganhar dinheiro montando computadores".

Você aprenderá sobre o quanto pode ganhar, como cobrar, como lidar com a concorrência, como se tornar um profissional altamente qualificado e muito mais!

Inscreva-se agora!