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
Forum Updated to NodeBB v4.3 + New Features

QTreeView::VisualRect return invalid

Scheduled Pinned Locked Moved Solved General and Desktop
qtreeview
3 Posts 2 Posters 484 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 last edited by Dariusz
    #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 last edited by
      #2

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

      JonBJ 1 Reply Last reply
      0
      • D Dariusz

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

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on 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

        • Login

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