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>


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

    void setupUi(QWidget *Widget)
        if (Widget->objectName().isEmpty())
        Widget->resize(687, 471);
        LocalView = new QTreeView(Widget);
        LocalView->setGeometry(QRect(20, 60, 291, 381));
        ServerView = new QTreeView(Widget);
        ServerView->setGeometry(QRect(390, 60, 281, 381));
        downloadButton = new QPushButton(Widget);
        downloadButton->setGeometry(QRect(330, 100, 51, 51));
        uploadButton = new QPushButton(Widget);
        uploadButton->setGeometry(QRect(330, 210, 51, 51));
        label = new QLabel(Widget);
        label->setGeometry(QRect(20, 30, 151, 31));
        label_2 = new QLabel(Widget);
        label_2->setGeometry(QRect(390, 30, 151, 31));
    } // 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


    #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 :)

  • @goblincoding hello can i ask you a question about qt serialport

  • Qt Champions 2018

    @veysel.olgun please create a new thread for that, don't reply to another thread with unrelated questons.

    Thanks and regards

Log in to reply

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