Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Upgrade QT3 to QT4
Forum Updated to NodeBB v4.3 + New Features

Upgrade QT3 to QT4

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 3 Posters 711 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.
  • B Offline
    B Offline
    BKBK
    wrote on last edited by
    #1

    Here at work we run Centos and have QT3 and QT4 installed along with OpenGL. Everyone uses 3 but I am trying to get 4 going so we can get partway to 4 and eventually to there and then maybe 5. I am a Linux novice and having trouble getting 4 to work. After working this for three days my latest attempts include: prefixing PATH with

    /usr/lib64/qt4:usr/include/Qt
    

    replacing qmake with qmake-qt4
    removing app.setMainWidget() from main.cpp, because it is not in QT4
    Editing Make file to add

    -I/usr/include/Qt  
    

    because it could not find qgl.h with the needed directory in PATH. (Did not need to do that for QT3.)
    The latest attempt at make claims there is no matching function for call to

    QDialog::QDialog( QWidget*&, const char*&)
    

    I have visited some qt.io sites about the conversion but they discuss code changes. I am starting from the beginning with simple examples from the books: “C++ GUI Programming with QT3” and with “… QT 4”

    What should I try next? Where might I look for some guidance?

    jsulmJ 1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Sadly im not good with Centos.

      However, how did you install it ?
      it seems to have an RPM for it
      https://centos.pkgs.org/7/centos-x86_64/qt-4.8.7-2.el7.x86_64.rpm.html

      on Ubuntu there is a tool qtchooser
      there is not something like that for Centos?

      1 Reply Last reply
      1
      • B BKBK

        Here at work we run Centos and have QT3 and QT4 installed along with OpenGL. Everyone uses 3 but I am trying to get 4 going so we can get partway to 4 and eventually to there and then maybe 5. I am a Linux novice and having trouble getting 4 to work. After working this for three days my latest attempts include: prefixing PATH with

        /usr/lib64/qt4:usr/include/Qt
        

        replacing qmake with qmake-qt4
        removing app.setMainWidget() from main.cpp, because it is not in QT4
        Editing Make file to add

        -I/usr/include/Qt  
        

        because it could not find qgl.h with the needed directory in PATH. (Did not need to do that for QT3.)
        The latest attempt at make claims there is no matching function for call to

        QDialog::QDialog( QWidget*&, const char*&)
        

        I have visited some qt.io sites about the conversion but they discuss code changes. I am starting from the beginning with simple examples from the books: “C++ GUI Programming with QT3” and with “… QT 4”

        What should I try next? Where might I look for some guidance?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @BKBK said in Upgrade QT3 to QT4:

        The latest attempt at make claims there is no matching function for call to

        Check the QDialog documentation from Qt4 to see what the correct QDialog constructor in Qt4 is.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1

        • Login

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