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. PyQt - TreeView - Expand Issue

PyQt - TreeView - Expand Issue

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 346 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.
  • S Offline
    S Offline
    snow-qt
    wrote on last edited by snow-qt
    #1

    Hi,

    Now I am experiencing a weird behavior for PyQt TreeView - Expand series functions. expandAll function works ok for my treeView. However, it is too much for displaying to me. So I am trying expandToDepth / expand(index) / reexpand, none of them work correctly for my case (In my treeView, I didn't add or delete any item, just want to put one of the "expand" function in the refresh). Many of them just expand two level from the root which is very confusing to me. I am wondering if any of you have an idea where should I look at.

    Thanks,
    Snow

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

      Hi and welcome to devnet,

      What version of Qt are you using ?
      What version of PyQt are you using ?
      On what platform ?
      Can you provide a minimal compilable example that shows that behaviour ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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