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. (RE) Update from qt5 to qt6
Forum Updated to NodeBB v4.3 + New Features

(RE) Update from qt5 to qt6

Scheduled Pinned Locked Moved Unsolved Qt 6
7 Posts 3 Posters 864 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.
  • Teemo of LOLT Offline
    Teemo of LOLT Offline
    Teemo of LOL
    wrote on last edited by
    #1

    e1f7ba1d-d9aa-4402-978a-e45a7aca7a89-question.png

    The solution file of the current image works well in qt5 and is being upgraded to qt6 version.
    To resolve the error, I asked my chat gpt teacher. Chat gpt teacher answered to change from A to B. Is this correct?
    A : QList<char> dd = QVector<char>:fromStdVector(data)
    B : QList<char> dd = QVector<char>::fromStdVector(data).toList();

    And if you check the site below, it says that QList and QVector are combined, so if I modify all of the QList in the code to QVector, will it work normally?
    site : https://www.qt.io/blog/qlist-changes-in-qt-6

    I'd appreciate it if you could tell me how to fix those errors. I trust you guys more than chat gpt teacher.

    thx

    Christian EhrlicherC 1 Reply Last reply
    0
    • Teemo of LOLT Teemo of LOL

      e1f7ba1d-d9aa-4402-978a-e45a7aca7a89-question.png

      The solution file of the current image works well in qt5 and is being upgraded to qt6 version.
      To resolve the error, I asked my chat gpt teacher. Chat gpt teacher answered to change from A to B. Is this correct?
      A : QList<char> dd = QVector<char>:fromStdVector(data)
      B : QList<char> dd = QVector<char>::fromStdVector(data).toList();

      And if you check the site below, it says that QList and QVector are combined, so if I modify all of the QList in the code to QVector, will it work normally?
      site : https://www.qt.io/blog/qlist-changes-in-qt-6

      I'd appreciate it if you could tell me how to fix those errors. I trust you guys more than chat gpt teacher.

      Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Use this QList ctor which takes an iterator range.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      Teemo of LOLT 1 Reply Last reply
      2
      • Christian EhrlicherC Christian Ehrlicher

        Use this QList ctor which takes an iterator range.

        Teemo of LOLT Offline
        Teemo of LOLT Offline
        Teemo of LOL
        wrote on last edited by
        #3

        @Christian-Ehrlicher 24234324.PNG

        I checked the link you gave me. Can you explain it in more detail?

        thx

        Christian EhrlicherC 1 Reply Last reply
        0
        • Teemo of LOLT Teemo of LOL

          @Christian-Ehrlicher 24234324.PNG

          I checked the link you gave me. Can you explain it in more detail?

          Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by Christian Ehrlicher
          #4

          @Teemo-of-LOL said in (RE) Update from qt5 to qt6:

          Can you explain it in more detail?

          It is basic c++ - just pass begin and end of your container to the ctor.

          Don't know why you have to post an image of the documentation though... Everyone is able to click on a link I would guess.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          Teemo of LOLT 1 Reply Last reply
          3
          • Christian EhrlicherC Christian Ehrlicher

            @Teemo-of-LOL said in (RE) Update from qt5 to qt6:

            Can you explain it in more detail?

            It is basic c++ - just pass begin and end of your container to the ctor.

            Don't know why you have to post an image of the documentation though... Everyone is able to click on a link I would guess.

            Teemo of LOLT Offline
            Teemo of LOLT Offline
            Teemo of LOL
            wrote on last edited by
            #5

            @Christian-Ehrlicher
            ctor is stands for “click-to-open rate.” It's the percentage of people who opened your email who then clicked a link within that email.

            is it right?

            thx

            JonBJ 1 Reply Last reply
            0
            • Teemo of LOLT Teemo of LOL

              @Christian-Ehrlicher
              ctor is stands for “click-to-open rate.” It's the percentage of people who opened your email who then clicked a link within that email.

              is it right?

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by
              #6

              @Teemo-of-LOL
              Pardon? ctor is abbreviation for C++ constructor, per the link to QList::QList(InputIterator first, InputIterator last) which @Christian-Ehrlicher posted.

              Teemo of LOLT 1 Reply Last reply
              1
              • JonBJ JonB

                @Teemo-of-LOL
                Pardon? ctor is abbreviation for C++ constructor, per the link to QList::QList(InputIterator first, InputIterator last) which @Christian-Ehrlicher posted.

                Teemo of LOLT Offline
                Teemo of LOLT Offline
                Teemo of LOL
                wrote on last edited by
                #7

                @JonB
                Thanks I'll read the link and ask if I don't understand!

                thx

                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