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. Why QTreeView only expands on doubleclicks on some of the columns?
Qt 6.11 is out! See what's new in the release blog

Why QTreeView only expands on doubleclicks on some of the columns?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 677 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.
  • J Offline
    J Offline
    jerrry94087
    wrote on last edited by
    #1

    I have QTreeView with data supplied with QItemSelectionModel with 2 columns.
    These were called from the tree constructor:
    setSelectionBehavior(QAbstractItemView::SelectRows);
    setSelectionMode(QAbstractItemView::SingleSelection);
    setDragDropMode(QAbstractItemView::NoDragDrop);
    setExpandsOnDoubleClick(true);

    But for some reason only doubleclicks on the first column expand the items. And doubleclicks on the second columns do nothing.
    How can I understand why doubleclicks on the second column don't expand the items in the tree?

    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