Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. qabstractitemvi
    Log in to post

    • SOLVED TreeView “cursor” without focus?
      General and Desktop • treeview focus cursor currentindex qabstractitemvi • • -DLF-  

      10
      0
      Votes
      10
      Posts
      1106
      Views

      Hi, It seems I can go with the solution I described. I don't need the tree view to be focused, so I just removed the “focus rect” (if that is the name Qt people know ;)) by setting the focus policy of the tree to Qt.NoFocus. I draw the “cursor” then myself by giving a different backlog in QAbstractItemModel::data. That makes anyway sense since the cursor position is part of my domain model. Thanks for help and inspiration! Dan
    • SOLVED StyleSheet & QComboBox, height trouble
      General and Desktop • qcombobox qstylesheet qabstractitemvi min-height • • J.Hilk  

      10
      0
      Votes
      10
      Posts
      5773
      Views

      @J.Hilk ok then you can follow the suggestion from @mrjj (in case you would have set a custom model you would have need to handle the Qt::SizeHintRole in your data() method) or try to set a QStyledItemDelegate to the view and use your stylesheet.
    • SOLVED Drag&Drop using QFileSystemModel.
      General and Desktop • qtableview drag and drop qfilesystemmode qabstractitemvi • • tokafr  

      4
      0
      Votes
      4
      Posts
      1470
      Views

      @tokafr Super. so it can copy files on its own ? Doc hinted it, but I was not sure.
    • SOLVED New representation (View) of a QStandardItemModel
      General and Desktop • qtreeview qstandarditemmo qabstractitemvi • • martinheidelberg  

      5
      0
      Votes
      5
      Posts
      1185
      Views

      @kshegunov Since I already worked with the graphics framework, I will stick with it! Thank you both for your posts. It saved me a lot of time trying ;) solved