This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Execute code in python pretty printers
- From: Niko Sams <niko dot sams at gmail dot com>
- To: gdb <gdb at sourceware dot org>
- Date: Sun, 28 Jun 2009 21:14:40 +0200
- Subject: Execute code in python pretty printers
Hi,
I'm writing pretty printers for various Qt classes.
For QModelIndex I'd like to show the parent QModelIndex as child. The
parent isn't
saved in the QModelIndex object direclty - instead QModelIndex asks
the model for it's parent.
Basically it returns this->model->parent(this).
QAbstractItemModel::parent is a virtual function implemented
differently in every model.
So to find out the parent the method has to be executed.
Is this possible?
Niko