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. Is there a version of QLinkedList in qt6
Forum Updated to NodeBB v4.3 + New Features

Is there a version of QLinkedList in qt6

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 1.7k 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.
  • - Offline
    - Offline
    -GSG-
    wrote on last edited by -GSG-
    #1

    I really need a linked list data structure, but since QLinkedList is no longer supported in qt6, i wanted to know if a similar data structure was added

    EDIT: I tried using core5compat to my .pro file, but it can't read the project successfuly

    JonBJ J.HilkJ 2 Replies Last reply
    0
    • - -GSG-

      I really need a linked list data structure, but since QLinkedList is no longer supported in qt6, i wanted to know if a similar data structure was added

      EDIT: I tried using core5compat to my .pro file, but it can't read the project successfuly

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

      @GSG
      Either you need to use the core5compat Qt5 compatibility QLinkedList or to get a linked list you need to move to std::list.

      1 Reply Last reply
      0
      • - -GSG-

        I really need a linked list data structure, but since QLinkedList is no longer supported in qt6, i wanted to know if a similar data structure was added

        EDIT: I tried using core5compat to my .pro file, but it can't read the project successfuly

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #3

        @GSG do you really need a linked list, whose only benefit is a guarantee of constant time insertions in the middle of the list?

        If not, than simply use QList as drop in replacement


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        - 1 Reply Last reply
        0
        • J.HilkJ J.Hilk

          @GSG do you really need a linked list, whose only benefit is a guarantee of constant time insertions in the middle of the list?

          If not, than simply use QList as drop in replacement

          - Offline
          - Offline
          -GSG-
          wrote on last edited by
          #4

          @J-Hilk Yes, i need constant time insertions and deletions. I can of course use std::list, but it would be nice to have everything in terms of qt

          B 1 Reply Last reply
          1
          • - -GSG-

            @J-Hilk Yes, i need constant time insertions and deletions. I can of course use std::list, but it would be nice to have everything in terms of qt

            B Offline
            B Offline
            Bonnie
            wrote on last edited by
            #5

            @GSG As noted in the QLinkedList documentation:

            Note: This class is obsolete, please use std::list instead.

            So it is Qt team's suggestion to use std::list to replace it.

            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