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. What are the main differences when porting code from Qt4 to Qt5?

What are the main differences when porting code from Qt4 to Qt5?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 4.9k 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.
  • A Offline
    A Offline
    andreagrandi
    wrote on last edited by
    #1

    Hi all,

    I'm currently investigating how much effort we would need to port the Ubuntu Unity-2D, from Qt4 to Qt5.

    I know that Qt5 aren't ready yet and I don't expect to find that they're stable nor without bugs.
    But I suppose that the base is already there and I could start understanding which kind of changes our code will need to be compatible with Qt5.

    We can just run something written for Qt4 using Qt5 libraries?
    We can recompile it with Qt5?

    What are the main differences of Qt5 to pay attention to when porting from Qt4?

    Thanks for your help!

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      When porting Qt Creator to Qt 5 the most issues were fixed by running the fixheaders.pl script. Modules moved around, so e.g. the widgets are now in QtWidget (or something) and no longer in QtGui.

      Apart from that only two small changes were needed.

      Note: We will use the latest released Qt version for Qt Creator. That is not Qt 5 at this time, so do not expect a Qt5 ready Qt Creator in the master branch;-)

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andreagrandi
        wrote on last edited by
        #3

        Hi Tobias!

        [quote author="Tobias Hunger" date="1323363394"]When porting Qt Creator to Qt 5 the most issues were fixed by running the fixheaders.pl script. Modules moved around, so e.g. the widgets are now in QtWidget (or something) and no longer in QtGui.

        Apart from that only two small changes were needed.

        Note: We will use the latest released Qt version for Qt Creator. That is not Qt 5 at this time, so do not expect a Qt5 ready Qt Creator in the master branch;-)[/quote]

        that script could be very useful for me, could you please tell me where I can find it?
        Thanks for your help!

        1 Reply Last reply
        0
        • D Offline
          D Offline
          debugger
          wrote on last edited by
          #4

          Usually in $(QT_DIR)/qtbase/bin

          But I couldnt find one...

          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 Extensions
          • Unsolved