Results 1 to 4 of 4

Thread: Cannot drag children of QTreeView when first column is hidden

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2017
    Posts
    5
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: Cannot drag children of QTreeView when first column is hidden

    Thank you Grandmaster Wysota that did it!

    I did implement a custom model (inherited QAbstractItemModel) and create my own tree item class to manage the parent/child relationship. Is the first column therefore used by the view or delegate?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Cannot drag children of QTreeView when first column is hidden

    I'm not sure I understand your question. If the column is visible then it is "used" by the view and the delegate. If it is hidden by the model itself, the view and the delegate know nothing about it.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 7
    Last Post: 4th April 2015, 09:18
  2. Showing a Hidden QTableView Column
    By dchow in forum Qt Programming
    Replies: 1
    Last Post: 16th June 2011, 01:11
  3. Replies: 2
    Last Post: 21st October 2009, 09:13
  4. Model/View one index.column as hidden UserRole
    By doitux in forum Qt Programming
    Replies: 2
    Last Post: 26th July 2008, 13:08
  5. hidden QListView column suddenly visible
    By edb in forum Qt Programming
    Replies: 10
    Last Post: 27th January 2006, 09:00

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.