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. QTreeview expandAll windows performance 30 time worse than linux?
Forum Updated to NodeBB v4.3 + New Features

QTreeview expandAll windows performance 30 time worse than linux?

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 577 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.
  • Seb TurS Offline
    Seb TurS Offline
    Seb Tur
    wrote on last edited by Seb Tur
    #1

    Hi
    I have a QTreeview , expanding all takes 5-6seconds on Linux compilation qt5.15 and about 2min35sek on windows qt5.9.8

    Is it windows qt fault or is it just such performance increase between those qt versions?
    On windows expandaAll is actually slower 3times slower on 800 rows than me manually clicking all expandable items . Is there any alternative to expandall?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      I would try with the same version on Windows as 2 mins sound unreasonable.

      1 Reply Last reply
      0
      • Seb TurS Offline
        Seb TurS Offline
        Seb Tur
        wrote on last edited by
        #3

        It's acctualy expandAll that is terribly slow

        I used the code provided here
        https://stackoverflow.com/a/27945112/4938057

        that expands QTreeView under 1 second on 800 rows

        1 Reply Last reply
        1
        • Seb TurS Offline
          Seb TurS Offline
          Seb Tur
          wrote on last edited by
          #4

          one more lessons learnt - if you use the code quoted above make sure you collapse the QTreeView before expanding it - otherwise if you try to do expand a partially expanded QTreeView it takes ages as the default expandall method

          1 Reply Last reply
          1

          • Login

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