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
Forum Updated to NodeBB v4.3 + New Features

Issues with the new Qt version using the older compiler

Scheduled Pinned Locked Moved Unsolved Qt 6
3 Posts 3 Posters 398 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 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

    JonBJ 1 Reply Last reply
    0
    • Q qsg223

      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

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on 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.

      TomZT 1 Reply Last reply
      0
      • JonBJ JonB

        @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.

        TomZT Offline
        TomZT Offline
        TomZ
        wrote on 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

        • Login

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