Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
1 vote
0 answers
43 views

There's a difference in behaviour between QTableView and QTreeView when it comes to selecting multiple items by dragging the mouse. In a QTreeView you can start outside the populated area and drag ...
mahkitah's user avatar
  • 1,024
6 votes
0 answers
114 views

I'm currently overriding mouseMoveEvent to update mouse cursor based on what's beneath it. This works pretty well, but I noticed one scenario where it fails. Scrolling. If the widget has scroll bars, ...
Mr-Auto's user avatar
  • 111
0 votes
0 answers
50 views

I have an application using a QTreeView widget and a subclass of the QFileSystemModel. The purpose of the subclass is to modify the way sorting is done on file type (col 2). With PyQt5, items are ...
dave's user avatar
  • 43
0 votes
0 answers
51 views

I'm using a QTreeView to display a directory tree rooted at an SSHFS mount. This works well, but if I expand a node containing ~150 files or more there is a significant delay between clicking the '>...
SixDegrees's user avatar
3 votes
0 answers
112 views

I'm trying to set a margin on the top side of a QTreeView viewport. I tried setViewportMargins but it doesn't change anything. I also tried adjust the painting rect directly at drawRow: opt.rect....
Lillo's user avatar
  • 178
3 votes
2 answers
116 views

How can I remove this area seen inside the red rectangle? Things I have tried: setIndentation(0); setRootIsDecorated(false); overriding drawBranches Styling it with QTreeView::branch and setting ...
Lillo's user avatar
  • 178
0 votes
1 answer
107 views

I'm trying to implement drag-and-drop functionality in a QTreeView widget in PyQt6. I have enabled drag-and-drop support using setDragEnabled(True), setAcceptDrops(True), and setDropIndicatorShown(...
slomo's user avatar
  • 117
1 vote
0 answers
77 views

I'm using QStandardItemModel to populate a QTreeView which contain more than a single column (i.e., a fusion of ListView and TreeView functionality). The problem is, no matter what I do, I cannot get ...
Nasser GHOSEIRI's user avatar
1 vote
0 answers
54 views

I work in VSCode on Ubuntu LTS 24.04. I use PyQt5. I have the following folders with files in the root path of my project: I use the following code: from pathlib import Path from PyQt5 import ...
F0AX's user avatar
  • 11
0 votes
1 answer
96 views

I build a tree as illustrated on the image. I want the tree to be able to sort each column. This works for the Well Name column and Depth type column (I may have different depth type called "...
Eric Bayard's user avatar
0 votes
1 answer
77 views

I am trying to achieve a Treeview like this: It is easy to do with a QtreeWidget, however I am struggling to achieve the same thing with a QtreeView. Every time I try to insert a row with empty cells ...
Eric Bayard's user avatar
1 vote
0 answers
56 views

I encounter a problem using Qtreeview and QFilesystemModel in Pyqt5 with Python Ver3.12. a shortcut file will be shown as a target folder in the Qtreeview. so if I would like to select this shortcut ...
robin's user avatar
  • 11
0 votes
0 answers
221 views

I've been experimenting with the model view concept in qt and c++ for some time now. My goal is to present the data in a table like Windows file explorer can do... There is no problem with tabular ...
exo's user avatar
  • 385
1 vote
3 answers
89 views

I'm working on a PyQt5 application where I have a QTreeView populated with a QStandardItemModel. The root items present documents and the child sections within the document. So they should not be ...
Mazze's user avatar
  • 453
0 votes
1 answer
127 views

I create a simple QMainWindow app as follows: The header file: //mainwindow.h #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QAbstractItemModel> #include <QTreeView> #include <...
William's user avatar
  • 978

15 30 50 per page
1
2 3 4 5
56