Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Issues with the new Qt version using the older compiler
QtWS25 Last Chance

Issues with the new Qt version using the older compiler

Scheduled Pinned Locked Moved Unsolved Qt 6
3 Posts 3 Posters 299 Views
  • 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.
  • Q Offline
    Q Offline
    qsg223
    wrote on 28 Feb 2024, 09:24 last edited by
    #1

    I wanted to use Qt6 for my old project, so I imported the old Q5.5.0 compiler into Qt6.6.2 and successfully recompiled the project, but there were errors in the code interfaceSnipaste_2024-02-28_17-06-31.png
    So I compared the file paths of the old Qt and the new Qt
    Qt5.5.0
    Snipaste_2024-02-28_17-15-40.png
    Qt6.6.2
    Snipaste_2024-02-28_17-17-38.png
    I found that Qt5.5.0 uses "/" and Qt6.6.2 uses "\".So how do I deal with this situation
    Snipaste_2024-02-28_17-22-46.png

    J 1 Reply Last reply 28 Feb 2024, 09:50
    0
    • Q qsg223
      28 Feb 2024, 09:24

      I wanted to use Qt6 for my old project, so I imported the old Q5.5.0 compiler into Qt6.6.2 and successfully recompiled the project, but there were errors in the code interfaceSnipaste_2024-02-28_17-06-31.png
      So I compared the file paths of the old Qt and the new Qt
      Qt5.5.0
      Snipaste_2024-02-28_17-15-40.png
      Qt6.6.2
      Snipaste_2024-02-28_17-17-38.png
      I found that Qt5.5.0 uses "/" and Qt6.6.2 uses "\".So how do I deal with this situation
      Snipaste_2024-02-28_17-22-46.png

      J Offline
      J Offline
      JonB
      wrote on 28 Feb 2024, 09:50 last edited by
      #2

      @qsg223
      Whatever the issue is it is nothing to do with messages showing a / versus a \, so there is nothing needed to "deal with this situation".

      I don't know what "imported the old Q5.5.0 compiler into Qt6.6.2" means. You can set up to use Qt5 or Qt6 for a project as you please, there is no "importing" of one into another.

      If you are saying that the project actually compiles fine using Qt5 but the IDE only shows these errors then it is a some code model issue. Start by deleting the build output folder (build-...) and rebuild from scratch. You might try a tiny, standalone new test project to see how they compare/whether that works OK.

      T 1 Reply Last reply 28 Feb 2024, 11:31
      0
      • J JonB
        28 Feb 2024, 09:50

        @qsg223
        Whatever the issue is it is nothing to do with messages showing a / versus a \, so there is nothing needed to "deal with this situation".

        I don't know what "imported the old Q5.5.0 compiler into Qt6.6.2" means. You can set up to use Qt5 or Qt6 for a project as you please, there is no "importing" of one into another.

        If you are saying that the project actually compiles fine using Qt5 but the IDE only shows these errors then it is a some code model issue. Start by deleting the build output folder (build-...) and rebuild from scratch. You might try a tiny, standalone new test project to see how they compare/whether that works OK.

        T Offline
        T Offline
        TomZ
        wrote on 28 Feb 2024, 11:31 last edited by TomZ
        #3

        @JonB said in Issues with the new Qt version using the older compiler:

        I don't know what "imported the old Q5.5.0 compiler into Qt6.6.2" means

        I expect the latter to be QtCreator.

        What I find more interesting is the mention of 5.5
        That release was tagged June 2015

        1 Reply Last reply
        0

        3/3

        28 Feb 2024, 11:31

        • Login

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