Page 1 of 2 12 LastLast
Results 1 to 20 of 27

Thread: Qt 5.2.0 Releated Questions?

  1. #1
    Join Date
    Jul 2006
    Posts
    42
    Thanks
    13
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Qt 5.2.0 Releated Questions?

    Recently I installed Qt 5.2.0 in Windows 7 success (?) and tried to install in Centos 6.0 but failed. I just wonder is there anyone has successful stories about both machines?

    1. In Windows 7, I installed qt-windows-opensource-5.2.0-mingw48_opengl-x86-offline.exe (my Windows 7 is set for 32 bits). It seems to me to use Qt Designer to create GUI and using its signal/slot tools did not work. (I have used Qt 3.3.6 in RedHat 5.X for years, to set for singal/slot worked very friendly and easily.) Does anyone has the same problem? I purchased two books: C++ GUI Programming with Qt 4 2nd edition by Jasmin Blanchette, and Advanced Qt Programing, Creating Great Sofware with C++ and Qt 4. Both books has talked very little about using Qt Designer to generate GUI, I wonder why? I knew the books are for Qt 4, but there is no Qt 5.2 book available ...)

    2. I Centos 6.0, I tried to install from qtx11extras-opensource-src-5.2.0.tar.gz, it failed. Then, I tried to install from qt-linux-opensource-5.2.0-x86_64-offline.run, it failed, too. (my Centos 6.0 machine is set for 64 bits) Can anyone instruct me how to install Qt 5.2.0 into Centos 6.0?

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt 5.2.0 Releated Questions?

    Please provide more details about your problems. It is hard to help you in any way knowing only that something "fails".
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    mp33919 (17th February 2014)

  4. #3
    Join Date
    Jul 2006
    Posts
    42
    Thanks
    13
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Qt 5.2.0 Releated Questions?

    Thanks for your reply. Yes, I understand to describe something with "fail" without details are not a good way for asking some helps. But, since I had tried many ways and eventually crashed my system unexpectedly, it is a little hard to write down exactlly what happeded. So, let me started with install qt-linux-opensource-5.2.0-x86_64-offline.run in my Centos 6.0 first:
    1. run the .run program
    2. installer starts normally; I select ALL; I agreed Qt installer LGPL Agreement.
    3. Qt installer start to install components, such as Essentials, Qt Creator, Essential Modules, ...
    4. After installing "Create uninstaller", I press the "Finish" button. The README.txt file pops up. I think the Qt creator installation is done.
    5. I went to menu bar, under "Programming", I found two newly created "Qt Creator" and "Qt Creator (Opensource)" in it.
    6. Double click on Qt Creator (Opensource) -- nothing happened.
    7. Double click on Qt Creator: a message pops out: "Could not Launch Qt Creator": Failed to change directory /home/user_me/Qtcreator-3.0.0 (no such file or directory)
    8. It is true, I could not find anything about Qtcreator-3.0.0 in my machine. (But, why Qtcreator-3.0.0? even I could find it, should I need somthing Qtcreator 5.2....?)
    9. Anyway, at this moment, I think the installation of Qt5.2.0 from qt-linux-opensource-5.2.0-x86_64-offline.run failed. I could start to install Qt 5.2.0 from qtx11extras-opensource-src-5.2.0.tar.gz
    10. Is there anyway I could fix it before I un-install the Qt5.2.0 at this point?

    Thanks.

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt 5.2.0 Releated Questions?

    Did you run the installation as root or as a normal user? What directory did you choose for the installation? Did you have appropriate access rights there?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #5
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt 5.2.0 Releated Questions?

    You appear to have tried installing a standalone QtCreator 3 at some stage in the past: this is the source of the desktop icon "Qt Creator"

    Qt Creator 3.0 is the version bundled with Qt5.2 in the binary download but that installer creates the other desktop icon pointing to ots bundles Qt Creator instance. The Qt bundle installer asks you for an install location and simply unpacks the entire installation under there. Apart from the desktop icons nothing goes outside that folder. The place to look for the install is where you told the installer to put it.

    The Qt X11 Extras installer is not needed to get a basic Qt install working on Linux.

  7. #6
    Join Date
    Jul 2006
    Posts
    42
    Thanks
    13
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Qt 5.2.0 Releated Questions?

    It might have been all the problems I have: I use as regular user not the root. Should I un-install it and use root to try again?
    I installed the Qt to /home/user_me/Qt5.2.0
    PS: the /user_me is my personal directory when I use it as a regular user.


    Added after 16 minutes:


    Yes, you are correct. I have Qt3.X in my system and I am still using it. I use it to migrate my Qt3.X programs from my old RedHat 5 32 bits machine to this Centos 6 64 bits. I wanted to write new projects with this Qt5.2.0. if I could get the Qt5.2.0 works. At the mean time, I hope that I could use Qt5.2.0 in my Windows 7 machine(s) so that I could have all my machines used the same IDE.
    So, I couldn't get rid of Qt3.X.
    Last edited by mp33919; 17th February 2014 at 22:02.

  8. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt 5.2.0 Releated Questions?

    Quote Originally Posted by mp33919 View Post
    It might have been all the problems I have: I use as regular user not the root. Should I un-install it and use root to try again?
    No, installing as regular user is ok.

    I installed the Qt to /home/user_me/Qt5.2.0
    Then look into /home/user_me/Qt5.2.0/Tools/QtCreator/bin. You should see QtCreator there.

    So, I couldn't get rid of Qt3.X.
    Qt3 can live alongside Qt5 just fine.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #8
    Join Date
    Jul 2006
    Posts
    42
    Thanks
    13
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Qt 5.2.0 Releated Questions?

    Yes, I did use prompt:
    /home/user_me/Qt5.2.0/Tools/QtCreator/bin]$ ./qtcreator

    I got the errors as below:

    Failed to load core: Can not load library /home/user_me/Qt5.2.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so : Can not load library /home/user_me/Qt5.2.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so : (usr/lib64/libstdc++.so 6: Version 'GLIBCXX_3.4.15' not found (required by /home/user_me/Qt5.2.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/../.././libQt5CLucene.so.5))

    I have checked both files libCore.so and libstdc++.so.6 are all in the directory as the error message specified.
    They are:
    -rwxr-xr-x. 1 me me Dec 10 11:49 libCore.so
    lrwxrwxrwx. 1 root root 19 Oct 2 2012 libstdc++.so.6 -> libstdc++.so.6.0.13

    "me" is my user name

    So the QtCreator can not be launched.

  10. #9
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt 5.2.0 Releated Questions?

    Try with qtcreator.sh

    It seems you have an old system that doesn't have libstdc++6 installed.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. #10
    Join Date
    Jul 2006
    Posts
    42
    Thanks
    13
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Qt 5.2.0 Releated Questions?

    Same error messages!

  12. #11
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt 5.2.0 Releated Questions?

    The error message plainly explains that the library it is finding is not " Version 'GLIBCXX_3.4.15' " and therefore too old to be used. This is probably because your GCC is older than 4.6, probably GCC 4.4 or older. You are five release behind the current CentOS, so this should not be a surprise (although the current version still ships GCC 4.4.7)

    Update libstdc++. I do not know if it is a standalone package or part of GCC.

    There is even a Qt Project wiki page on dealing with the dated nature of CentOS by installing a private GCC version:
    http://qt-project.org/wiki/How-to-In...wt-on-CentOS-6

  13. The following user says thank you to ChrisW67 for this useful post:

    mp33919 (19th February 2014)

  14. #12
    Join Date
    Jul 2006
    Posts
    42
    Thanks
    13
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Qt 5.2.0 Releated Questions?

    Thanks,

    Now, I need to go to IT people to see how they could update my Centos.

  15. #13
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt 5.2.0 Releated Questions?

    It can be done without IT by creating an entirely private instance of GCC 4.8.x, installed in say /home/you/gcc, and using the runtime environment (PATH and LD_LIBRARYPATH) to ensure the local gcc and libstdc++ is found first.

  16. The following user says thank you to ChrisW67 for this useful post:

    mp33919 (28th February 2014)

  17. #14
    Join Date
    Jul 2006
    Posts
    42
    Thanks
    13
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Qt 5.2.0 Releated Questions?

    I am back! The Qt 5.2.0 is working on my both Windows 7 stand alone machine and virtual machine. I will work on Centos later.

    Back to my original programming questions:
    1. I use QDialog to create a form. I drag Widgets onto the form. I wanted just use form's tools (I believed it is Qt Designer's tools) to configure every Widgets on the form. I found that change the QPushButton's icon did not work as I thought. The push button apperance changed during the design time but not in run time. Is there anything I can fix it?
    2. I am working on plotting the data. I found an example "Simple Realtime Chart". According to the "Source Code Listing", this program needs something about QChartViewer. I can not find it in my Qt 5.2.0 directory any where. According to web document: "(chartDirector 5.1 (c++ edition)) QChartViewer is released in source code format in the QT sample programs that comes with ChartDirector. The source code serves as an example on how one can display charts and handle mouse interactions in general GUI framework." Do I need to install Qt5.1 in order to get this QChartViewer? If I do so, will the Qt5.1 "mess up" with Qt5.2.0?

    Thanks

  18. #15
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt 5.2.0 Releated Questions?

    1. If you selected an icon from the hard disk then the path in the UI file may be relative to the source folder. When you run the program the current working directory will be different and the icon not in the same relative location. This is what the Qt resource system is designed to address.

    2. No, you need to install the ChartDirector software to get their example code. This is not part of Qt.

  19. The following user says thank you to ChrisW67 for this useful post:

    mp33919 (4th March 2014)

  20. #16
    Join Date
    Jul 2006
    Posts
    42
    Thanks
    13
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Qt 5.2.0 Releated Questions?

    ChrisW67,

    Thanks a lot for your reply.

    1. I did use Qt resource system. I follow the directions to add the png (run.png) into sub-directory /image under my source code directory (for example plot). I could use Qt "Open file" to open /plot/image/run.png. And from windows explorer, the png file is physically in /plot/image directory.

    2. Addtion Questions about the GUI designer: dese "&" working for menu, pushbutton, and other widgets. For example: &File did not give me the "F" underlined.

    3. Now I need to ChartDirector to download the examples. Will I get all the ChartDirector libraries after I download the example? Or maybe I should have asked: is ChartDirector free?

    4. I also need to go back to work on installation gcc 4.8.2. As you may tell that I have never done any Linux/Centos installion before. To install Qt5.2.0 was my first attemp to do so. So, please allow me to ask this question: what is "runtime environment (PATH and LD_LIBRARYPATH) ?" When I first installed Qt5.2.0 using "run" version, it did not work (as I described previously in this thread), I un-installed it and try to use qtx11extras-opensource-src-5.2.0.tar version, and to the some points I did type PATH, then my "regular" PATH has changed or something. And later, my system crashed. After the system rebooted, I un-install the ".tar" version and re-install the ".run" version. This time, I just want to be sure that I do the PATH correctly: How can I do it? for my gcc?

    Thanks for your time, I really appreciated.

    Thanks again.

  21. #17
    Join Date
    Oct 2013
    Posts
    41
    Thanks
    1
    Thanked 8 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 5.2.0 Releated Questions?

    To answer number 2, I believe the shortcut underline is a system setting. For example on windows it won't show the letter underline until I press alt.

  22. The following user says thank you to sulliwk06 for this useful post:

    mp33919 (4th March 2014)

  23. #18
    Join Date
    Jul 2006
    Posts
    42
    Thanks
    13
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Qt 5.2.0 Releated Questions?

    Quote Originally Posted by ChrisW67 View Post
    It can be done without IT by creating an entirely private instance of GCC 4.8.x, installed in say /home/you/gcc, and using the runtime environment (PATH and LD_LIBRARYPATH) to ensure the local gcc and libstdc++ is found first.
    I downloaded gcc-4.8.2.tar.bz2. Should I go ahead to "install" it or I need have something else like Pre-requesties MPC, MPFR, GMP ...

  24. #19
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt 5.2.0 Releated Questions?

    1. I did use Qt resource system. I follow the directions to add the png (run.png) into sub-directory /image under my source code directory (for example plot). I could use Qt "Open file" to open /plot/image/run.png. And from windows explorer, the png file is physically in /plot/image directory.
    So your project has a resource file called "something.qrc" with entries like
    Qt Code:
    1. <RCC>
    2. <qresource prefix="/">
    3. <file>plot/image/run.png</file>
    4. </qresource>
    5. </RCC>
    To copy to clipboard, switch view to plain text mode 
    And you have opened and used a file called ":/plot/image.run.png" (Note the colon ":" in the path) from the resources not the local file system.

    Or maybe I should have asked: is ChartDirector free?
    Maybe you should ask the creators of ChartDirector whether they want to be paid.

    I downloaded gcc-4.8.2.tar.bz2. Should I go ahead to "install" it or I need have something else like Pre-requesties
    You need to build it after configuring it with
    Qt Code:
    1. ./configure --prefix ${HOME}/gcc --enable-languages=c,c++
    To copy to clipboard, switch view to plain text mode 
    or similar. See http://gcc.gnu.org/install/ for prerequisites. It will not configure if they are missing.
    Last edited by ChrisW67; 4th March 2014 at 22:39.

  25. #20
    Join Date
    Jul 2006
    Posts
    42
    Thanks
    13
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Qt 5.2.0 Releated Questions?

    [QUOTE=ChrisW67;259988]So your project has a resource file called "something.qrc" with entries like
    Qt Code:
    1. <RCC>
    2. <qresource prefix="/">
    3. <file>plot/image/run.png</file>
    4. </qresource>
    5. </RCC>
    To copy to clipboard, switch view to plain text mode 
    And you have opened and used a file called ":/plot/image.run.png" (Note the colon ":" in the path) from the resources not the local file system.

    OK, I got it. The problem is not in the resource file. The problem is in the .ui file. From your tips, I went to look at the .ui file. I found the .png file has the </normaloff> header. Although I did not put in it when I specified the "icon" (I did not specify anything under sub-icon), ui properties put .png under "normal off" sub-icon. I delete .png from "normal off" up and put it in "normal on" sub-icon. It wokrs now. Thanks!!!

Similar Threads

  1. Need help with two questions please
    By phantom2323 in forum Qt Programming
    Replies: 1
    Last Post: 5th March 2012, 11:33
  2. two questions
    By jajdoo in forum Newbie
    Replies: 5
    Last Post: 18th July 2010, 21:12
  3. Some questions for Qt?
    By tszzp in forum Qt Programming
    Replies: 3
    Last Post: 14th December 2009, 09:46
  4. A few questions
    By T3AB4GG3R117 in forum Newbie
    Replies: 2
    Last Post: 21st January 2009, 08:01
  5. Sql questions
    By Nb2Qt in forum Qt Programming
    Replies: 4
    Last Post: 15th February 2007, 22:53

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.