Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 19 results for
qtreeview
- Page 1
PyQt how to update QTreeView() w/o creating a new model?
Programming
Software Development
10 Years Ago
by Tcll
…QtCore.Qt.UserRole) model = treeModel() tv = QtGui.
QTreeView
(dialog) tv.setModel(model) tv.setAlternatingRowColors(True) QtCore.…tv.setModel(model)) model = treeModel() tv = QtGui.
QTreeView
(dialog) tv.setModel(model) tv.setAlternatingRowColors(True) # on…
PyQt QTreeView add data
Programming
Software Development
12 Years Ago
by Tortura
Hey guys, I'm trying to move data by clicking on a QPushButton from one
QTreeView
in the second
QTreeView
. Do you know how to do this. I know that I have to connect the QPushButton with a method which makes this possible. I don't really know how this method looks like. Thanks for help.
PyQt4 - QTreeView with data(filepaths) from database
Programming
Software Development
10 Years Ago
by Odyssey2001
… database and I want to display its data into a
QTreeView
in PyQt.The database's column has file paths.I…
Re: PyQt how to update QTreeView() w/o creating a new model?
Programming
Software Development
10 Years Ago
by Tcll
bump
Re: PyQt4 - QTreeView with data(filepaths) from database
Programming
Software Development
10 Years Ago
by iamthwee
The only different with working with a database and tree view is the heirarchy in the database needs to be interpreted. Normally, this comes in the form of a parent child relationship. If you recurse through that you should be able to build your tree view.
Re: PyQt4 - QTreeView with data(filepaths) from database
Programming
Software Development
10 Years Ago
by Odyssey2001
Thank you!Sorry for bothering you again,but could you show me an example so that I can understand better what I should do?And about the file paths,should I treat them differently?
Re: PyQt4 - QTreeView with data(filepaths) from database
Programming
Software Development
10 Years Ago
by iamthwee
Not sure what you mean by file paths. An example would be in your database you would have a parent child relationship name id parentid bob 1 1 sara 2 1 In the above example sara would fall under bob as bob is the parent. How you display that in a treeview I wouldn't know. I don't use python.
Re: PyQt4 - QTreeView with data(filepaths) from database
Programming
Software Development
10 Years Ago
by Odyssey2001
It's that in my database I have file paths.I once saw an example somewhere,and they used QFileSystemModel and proxy models.But I don't think that this would work for me,as I don't have full paths. Ok,thanks anyway!
What is this code doing(Rapid Gui Programming with Python and Qt)
Programming
Software Development
10 Years Ago
by Odyssey2001
….TreeOfTableModel.data(self, index, role) class TreeOfTableWidget(
QTreeView
): def __init__(self, filename, nesting, separator,… super(TreeOfTableWidget, self).__init__(parent) self.setSelectionBehavior(
QTreeView
.SelectItems) self.setUniformRowHeights(True) model = ServerModel(self…
Making a Project Tree System
Programming
Software Development
12 Years Ago
by Blastcore
…/qt-4.8/qtreewidget.html) or [
QTreeView
](http://qt-project.org/doc/qt-4.8/
qtreeview
.html) for it? But that's…
Re: Making a Project Tree System
Programming
Software Development
12 Years Ago
by rubberman
… in Linux/Unix/OSX, et al. As for QTreeWidget or
QTreeView
, it depends upon what you need to do. I assume…
beginremoverows in pyqt.. Help please..
Programming
Software Development
15 Years Ago
by explorepython
….resize(600, 500) self.model = QtGui.QDirModel() self.tree = QtGui.
QTreeView
() self.tree.setModel(self.model) print(self.model.flags(self…
Tabbed progra with pyqt
Programming
Software Development
14 Years Ago
by viandante
…(MainWindow) self.centralwidget.setObjectName("centralwidget") self.treeView = QtGui.
QTreeView
(self.centralwidget) self.treeView.setGeometry(QtCore.QRect(5, 10, 261…
Re: PyQT4 TreeModel example
Programming
Software Development
10 Years Ago
by vegaseat
Another example ... http://rowinggolfer.blogspot.com/2010/05/
qtreeview
-and-qabractitemmodel-example.html
Re: What is this code doing(Rapid Gui Programming with Python and Qt)
Programming
Software Development
10 Years Ago
by HiHe
The MainForm `__init__` arguments are (self, filename, nesting, separator, parent=None) and should give you a hint The author of the book does not do any necessary commenting and should be discounted. I would return the lousy book.
Re: What is this code doing(Rapid Gui Programming with Python and Qt)
Programming
Software Development
10 Years Ago
by juanpa_2510
__file__ is the name of de module file that is actually in use. os.path.dirname gets the directory path where the __file__ is stored. os.path.join creates a new path concatenating first argument to second argument.
Re: What is this code doing(Rapid Gui Programming with Python and Qt)
Programming
Software Development
10 Years Ago
by Odyssey2001
Thank you -both of you- for your time and for your answers! @HiHe : It's actually a very good book.The writer explains most of the code in the book.It's entirely my fault.It's just that I'm a beginner in programming and I can't understand some parts of the code if they are not explained in detail (or at all).
Re: What is this code doing(Rapid Gui Programming with Python and Qt)
Programming
Software Development
10 Years Ago
by vegaseat
One good tool to see what is going on in strange code is to put in temporary test print()
Re: What is this code doing(Rapid Gui Programming with Python and Qt)
Programming
Software Development
10 Years Ago
by Odyssey2001
Although I'm a little bit late,thank you!!!I'll keep that in mind!
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC