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. QTreeWidgetItemIterator::UserFlag usage

QTreeWidgetItemIterator::UserFlag usage

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtreewidgetitem
2 Posts 2 Posters 835 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.
  • O Offline
    O Offline
    Olivier Ronat
    wrote on 15 May 2016, 11:37 last edited by
    #1

    How to use QTreeWidgetItemIterator::UserFlag flag. I want to know how we can definie the specific userflag in the QTreeWidgetItem.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on 15 May 2016, 12:05 last edited by
      #2

      It seems you can't with the current API. There's a private bool QTreeWidgetItemIterator::matchesFlags(const QTreeWidgetItem *item) const method of the iterator that does the checking of flags, but the user defined ones are not checked in any way.
      It would make sense to make that function virtual protected, so you could inherit and extend the iterator to match your needs, but it's not in there (yet?). You could probably make a suggestion for that on the bugreports.qt.io.

      1 Reply Last reply
      1

      2/2

      15 May 2016, 12:05

      • Login

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