[Qt-interest] a litte mild 'rant'

Andreas Pakulat apaku at gmx.de
Mon Mar 30 19:01:19 CEST 2009


On 30.03.09 17:29:38, wim.delvaux at adaptiveplanet.com wrote:
> 	Why you setCurrentIndex for a QToolBox but setCurrentTab for a QTabWidget ?

Because setCurrentTab better explains what it does.

> 	Why sometimes you have a setCurrentItem ?

Same as above.

> 	Why do you sometimes get a signal when widgets change (e.g setText of a 
> 	QTreeWidgetItem)and sometimes not (e.g. when calling setCurrentItem on the 
> treeWidget ???)

You should get a signal when you do a setCurrentItem, but you might need to
check out the treewidget's model for that (something like layoutChanged or
dataChanged).

> 	Also the QString().toLatin1().constData() being unusable out of scope is 
> annoying since you need to 'dup' or 'copy' the data to some buffer all the 
> time

So having to free the memory yourself would be better? 

Andreas

-- 
You will pay for your sins.  If you have already paid, please disregard
this message.



More information about the Qt-interest-old mailing list