Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. I have some question.
Qt 6.11 is out! See what's new in the release blog

I have some question.

Scheduled Pinned Locked Moved General and Desktop
8 Posts 7 Posters 3.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wow505
    wrote on last edited by
    #1

    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????

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qxoz
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • W Offline
          W Offline
          wow505
          wrote on last edited by
          #4

          sorry..

          1 Reply Last reply
          0
          • J Offline
            J Offline
            JulienMaille
            wrote on last edited by
            #5

            !http://i.imgur.com/9iX5UPC.png(pic)!

            1 Reply Last reply
            0
            • G Offline
              G Offline
              goblincoding
              wrote on last edited by
              #6

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

              http://www.goblincoding.com

              V 1 Reply Last reply
              0
              • G goblincoding

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

                V Offline
                V Offline
                veysel.olgun
                wrote on last edited by
                #7

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

                aha_1980A 1 Reply Last reply
                0
                • V veysel.olgun

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

                  aha_1980A Offline
                  aha_1980A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

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

                  Thanks and regards

                  Qt has to stay free or it will die.

                  1 Reply Last reply
                  2

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved