trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: December 2016

Displaying QMap objects in a dialog

From: Leslie Turriff <jlturriff@...>
Date: Mon, 5 Dec 2016 22:14:19 -0600
	The application I'm writing will have a small group of key-value pairs 
associated with each object.  Looking through the docs, I see widgets for 
displaying elementary items (e.g. TQListBox), but nothing for something like 
a TQMap (e.g. a TQlistBoxMap).  I could use a TQTable, but that strikes me as 
akin to using a sledgehammer to kill flies.
	As a neophite c++ programmer, I know that in theory I can subclass 
TQListBoxItem to do this, but how to go about that, I haven't a clue.  The 
docs say merely that ' If you need to insert customized items into a 
TQListBox you must inherit this class and reimplement paint(), height() and 
width().'
	Any suggestions to help get me started with this would be appreciated.

Leslie