I have some question.



  • I developed application by QT 4.8 Liblary.

    but I don't understand to find code.

    #ifndef UI_WIDGET_H
    #define UI_WIDGET_H

    #include <QtCore/QVariant>
    #include <QtGui/QAction>
    #include <QtGui/QApplication>
    #include <QtGui/QButtonGroup>
    #include <QtGui/QHeaderView>
    #include <QtGui/QLabel>
    #include <QtGui/QPushButton>
    #include <QtGui/QTreeView>
    #include <QtGui/QWidget>

    QT_BEGIN_NAMESPACE

    class Ui_Widget
    {
    public:
    QTreeView *LocalView;
    QTreeView *ServerView;
    QPushButton *downloadButton;
    QPushButton *uploadButton;
    QLabel *label;
    QLabel *label_2;

    void setupUi(QWidget *Widget)
    {
        if (Widget->objectName().isEmpty())
            Widget->setObjectName(QString::fromUtf8("Widget"));
        Widget->resize(687, 471);
        LocalView = new QTreeView(Widget);
        LocalView->setObjectName(QString::fromUtf8("LocalView"));
        LocalView->setGeometry(QRect(20, 60, 291, 381));
        ServerView = new QTreeView(Widget);
        ServerView->setObjectName(QString::fromUtf8("ServerView"));
        ServerView->setGeometry(QRect(390, 60, 281, 381));
        downloadButton = new QPushButton(Widget);
        downloadButton->setObjectName(QString::fromUtf8("downloadButton"));
        downloadButton->setGeometry(QRect(330, 100, 51, 51));
        uploadButton = new QPushButton(Widget);
        uploadButton->setObjectName(QString::fromUtf8("uploadButton"));
        uploadButton->setGeometry(QRect(330, 210, 51, 51));
        label = new QLabel(Widget);
        label->setObjectName(QString::fromUtf8("label"));
        label->setGeometry(QRect(20, 30, 151, 31));
        label_2 = new QLabel(Widget);
        label_2->setObjectName(QString::fromUtf8("label_2"));
        label_2->setGeometry(QRect(390, 30, 151, 31));
    
        retranslateUi(Widget);
    
        QMetaObject::connectSlotsByName(Widget);
    } // setupUi
    
    void retranslateUi(QWidget *Widget)
    {
        Widget->setWindowTitle(QApplication::translate("Widget", "Widget", 0, QApplication::UnicodeUTF8));
        downloadButton->setText(QApplication::translate("Widget", "down\n"
    

    "<-", 0, QApplication::UnicodeUTF8));
    uploadButton->setText(QApplication::translate("Widget", "upload\n"
    "->", 0, QApplication::UnicodeUTF8));
    label->setText(QApplication::translate("Widget", "<html><head/><body><p>Local FileSys</p></body></html>", 0, QApplication::UnicodeUTF8));
    label_2->setText(QApplication::translate("Widget", "<html><head/><body><p>BackupServer FileSys</p></body></html>", 0, QApplication::UnicodeUTF8));
    } // retranslateUi

    };

    namespace Ui {
    class Widget: public Ui_Widget { }; //<-------------Is this code correct by standard C++ syntax ?
    } // namespace Ui

    QT_END_NAMESPACE

    #endif // UI_WIDGET_H

    1. is this code "forward declaration"??

    2. class Ui_Widget <- where is Constructor????


  • Moderators

    C'mon - people here are spending their free time to help others. Spend some of yours to at least format the code you are asking them to read.



  • Its unable to read. Please format your code with @@.



  • sorry..





  • All you have to do is to edit the post with your code in it and add an @ sign before and after :)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.