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::VisualRect return invalid
QtWS25 Last Chance

QTreeView::VisualRect return invalid

Scheduled Pinned Locked Moved Solved General and Desktop
qtreeview
3 Posts 2 Posters 436 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.
  • D Offline
    D Offline
    Dariusz
    wrote on 7 Oct 2022, 16:18 last edited by Dariusz 10 Jul 2022, 16:20
    #1

    Hey

    I'm bit stuck. We have custom treeItem class and I have a feeling its 100% our fault. But I cant get visualRect for our items.
    They have valid index/row/column. But still come out with invalid QRect.
    What function do we have to reimplement to fulfill visualRect of QTreeView requirement?

    The action runs during model.beginResetModel() Maybe treeView stops displaying items during that time and thats why we get invalid rects :/

    Regards
    Dariusz

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Dariusz
      wrote on 7 Oct 2022, 17:01 last edited by
      #2

      Yep that was it. During that function the view no longer displays data sigh.

      J 1 Reply Last reply 7 Oct 2022, 17:41
      0
      • D Dariusz
        7 Oct 2022, 17:01

        Yep that was it. During that function the view no longer displays data sigh.

        J Offline
        J Offline
        JonB
        wrote on 7 Oct 2022, 17:41 last edited by
        #3

        @Dariusz
        Interesting :) I guess it generates it only on demand, and doesn't do so during model reset.

        1 Reply Last reply
        0

        3/3

        7 Oct 2022, 17:41

        • Login

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