Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [SOLVED] currentIndex() in QTreeView

    General and Desktop
    1
    2
    2522
    Loading More Posts
    • 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.
    • A
      Anticross last edited by

      I have some dialog-based class which holds two members: QTreeView and model class based on QStandardItemModel. When i call function currentIndex() from tree-veiw I've got a crash, It happens whatever I have some items in my tree or have not. In model I realize now only data function. So, what can it be and what should I do first to solve this problem ?

      1 Reply Last reply Reply Quote 0
      • A
        Anticross last edited by

        Damn, my mistake I wrote this: @QTreeView * m_tbl = new QTreeView(this);@ but need to just initialize member.
        @m_tbl = new QTreeView(this);@

        1 Reply Last reply Reply Quote 0
        • First post
          Last post