Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Installation and getting started with first app
Qt 6.12 LTS is out! See what's new in the release blog

Installation and getting started with first app

Scheduled Pinned Locked Moved Installation and Deployment
71 Posts 6 Posters 126.5k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #19

    I have installed CentOS 5.5 yesterday and tried to install Qt..could you please gimme those commands to check if that lib is existing and its verson ??

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #20

      For linux help, you're on the wrong channel. Sorry. This is not Qt related anymore.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #21

        I agree..but it happened while i tried to install Qt on Linux...help is appreciated more

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #22

          http://wiki.centos.org/HowTos#head-70ff04f00f6b441f231663b09d7716f4f771a436

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #23

            thanks amn..I will go through that link now..

            btw I have this compiler error when I compiled my demo app on windows using QTreeView which I am planning to display the SystemStorage info

            In file included from ..\IDT_Demo_UI\main.cpp:2:
            ..\IDT_Demo_UI/idt_mainwindow.h:23: error: ISO C++ forbids declaration of 'QSystemStorageInfo' with no type
            ..\IDT_Demo_UI/idt_mainwindow.h:23: error: expected ';' before '*' token

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #24

              its say were you have to look!
              ĺine 23 of the file idt_mainwindow.h, you didnt end the line with ; or/and you didnt include QSystemStorageInfo

              1 Reply Last reply
              0
              • G Offline
                G Offline
                giesbert
                wrote on last edited by
                #25

                Or you only declared the type like
                @
                class QSystemStorageInfo;
                @
                and use it as member. This is not allowed. If you use it for pointers, declaration like above should work.

                Nokia Certified Qt Specialist.
                Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                1 Reply Last reply
                0
                • ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #26

                  Gerolf...I have included
                  #include <QSystemStorageInfo>

                  and this is the complete compilation report


                  @
                  Running build steps for project IDT_Demo_UI...
                  Configuration unchanged, skipping qmake step.

                  Starting: "C:\QtSDK\mingw\bin\mingw32-make.exe" -w

                  mingw32-make: Entering directory `E:/Bose/Qt playground/IDT_Demo_UI-build-desktop'

                  C:/QtSDK/mingw/bin/mingw32-make -f Makefile.Debug

                  mingw32-make[1]: Entering directory `E:/Bose/Qt playground/IDT_Demo_UI-build-desktop'

                  g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\QtSDK\Desktop\Qt\4.7.2\mingw\include\QtCore" -I"c:\QtSDK\Desktop\Qt\4.7.2\mingw\include\QtGui" -I"c:\QtSDK\Desktop\Qt\4.7.2\mingw\include" -I"c:\QtSDK\Desktop\Qt\4.7.2\mingw\include\ActiveQt" -I"debug" -I"." -I"..\IDT_Demo_UI" -I"." -I"c:\QtSDK\Desktop\Qt\4.7.2\mingw\mkspecs\win32-g++" -o debug\main.o ..\IDT_Demo_UI\main.cpp

                  In file included from ..\IDT_Demo_UI\main.cpp:2:

                  ..\IDT_Demo_UI/idt_mainwindow.h:4:30: error: QSystemStorageInfo: No such file or directory

                  In file included from ..\IDT_Demo_UI\main.cpp:2:

                  ..\IDT_Demo_UI/idt_mainwindow.h:23: error: ISO C++ forbids declaration of 'QSystemStorageInfo' with no type

                  ..\IDT_Demo_UI/idt_mainwindow.h:23: error: expected ';' before '*' token

                  mingw32-make[1]: Leaving directory `E:/Bose/Qt playground/IDT_Demo_UI-build-desktop'

                  mingw32-make: Leaving directory `E:/Bose/Qt playground/IDT_Demo_UI-build-desktop'

                  mingw32-make[1]: *** [debug/main.o] Error 1

                  mingw32-make: *** [debug] Error 2

                  The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.

                  Error while building project IDT_Demo_UI (target: Desktop)
                  @

                  When executing build step 'Make'


                  and this is .h file

                  @
                  #ifndef IDT_MAINWINDOW_H
                  #define IDT_MAINWINDOW_H

                  #include <QSystemStorageInfo>
                  #include <QtGui>
                  #include <QMainWindow>

                  namespace Ui {
                  class IDT_MainWindow;
                  }

                  class IDT_MainWindow : public QMainWindow
                  {
                  Q_OBJECT

                  public:
                  explicit IDT_MainWindow(QWidget *parent = 0);
                  ~IDT_MainWindow();

                  private:
                  Ui::IDT_MainWindow *ui;

                  QSystemStorageInfo *sti;
                  

                  };

                  #endif // IDT_MAINWINDOW_H

                  @


                  1 Reply Last reply
                  0
                  • ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #27

                    please wrap your code with @ tag

                    1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #28

                      I am realy sorry vinb...I didn't get you !! how to rap with a tag ??

                      1 Reply Last reply
                      0
                      • ? Offline
                        ? Offline
                        A Former User
                        wrote on last edited by
                        #29

                        i dont think "QSystemStorageInfo" exist in Qt,
                        only:
                        QSysInfo
                        QSystemLocale
                        QSystemSemaphore
                        QSystemTrayIcon

                        If it is your own made you have to use "" instead of <>.

                        1 Reply Last reply
                        0
                        • ? Offline
                          ? Offline
                          A Former User
                          wrote on last edited by
                          #30

                          use @
                          then your code and end with "@" without the ""

                          1 Reply Last reply
                          0
                          • G Offline
                            G Offline
                            giesbert
                            wrote on last edited by
                            #31

                            Your problem lies more in the beginning of your build output:

                            @
                            ..\IDT_Demo_UI/idt_mainwindow.h:4:30: error: QSystemStorageInfo: No such file or directory
                            @

                            where does QSystemStorageInfo come from?

                            If I googled correctly, it's part of QtMobility, did you install that? did you add the needed include paths in the pro file?

                            Nokia Certified Qt Specialist.
                            Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                            1 Reply Last reply
                            0
                            • ? Offline
                              ? Offline
                              A Former User
                              wrote on last edited by
                              #32

                              ok...then which class should i use to get the system storage info if it is for desktop application ?

                              1 Reply Last reply
                              0
                              • G Offline
                                G Offline
                                giesbert
                                wrote on last edited by
                                #33

                                Afaik QtMobility may also be used on the Desktop. But you have to set your include paths.

                                Nokia Certified Qt Specialist.
                                Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                                1 Reply Last reply
                                0
                                • ? Offline
                                  ? Offline
                                  A Former User
                                  wrote on last edited by
                                  #34

                                  please guide me how to set that ...

                                  1 Reply Last reply
                                  0
                                  • G Offline
                                    G Offline
                                    giesbert
                                    wrote on last edited by
                                    #35

                                    I said Afaik, not that I did it before ;-)

                                    I never used QtMobility

                                    Nokia Certified Qt Specialist.
                                    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                                    1 Reply Last reply
                                    0
                                    • ? Offline
                                      ? Offline
                                      A Former User
                                      wrote on last edited by
                                      #36

                                      [quote author="Thomas Kennedy" date="1301490967"]ok...then which class should i use to get the system storage info if it is for desktop application ?[/quote]

                                      I don't know what info you want to get from QSystemStorageInfo, but maybe "QDesktopServices::storageLocation() ":http://doc.qt.nokia.com/4.7/qdesktopservices.html#storageLocation provides what you need.

                                      1 Reply Last reply
                                      0
                                      • M Offline
                                        M Offline
                                        mlong
                                        wrote on last edited by
                                        #37

                                        In order to use the QSystemStorageInfo class from Mobility, be sure that in your .pro file you have included the lines

                                        @
                                        CONFIG += mobility
                                        MOBILITY += systeminfo
                                        @

                                        Software Engineer
                                        My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

                                        1 Reply Last reply
                                        0
                                        • ? Offline
                                          ? Offline
                                          A Former User
                                          wrote on last edited by
                                          #38

                                          Thanks a lot...

                                          without changing .pro file I am trying with QDir::Drives()..I will update you soon about my results..before that I have another query...

                                          I have placed my controls on the main window by opening 'mainwindow.ui' in design mode..how would I create control variables for those controls in my code using QTCreator ?

                                          1 Reply Last reply
                                          0

                                          • Login

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