[Kmymoney-devel] transaction form problems

Cristian Oneţ onet.cristian at gmail.com
Sat Sep 26 15:08:35 CEST 2009


În data de Luni 21 Septembrie 2009 23:00:49 ați scris:
> Hi,
> 
> The attached screenshot represents a transaction form in which a
>  transaction is being edited and the attributes of the transaction have
>  changed from the original one (for example the original transaction was a
>  withdrawal and transfer has been selected in the editor).
> From the code I can tell that the editor widgets are dropped on top of the,
> let's call them, "transaction displaying widgets". As you can see in Qt4
>  this has the effect that the parent widgets are also visible thus
>  generating a widget overlapping effect. I have tried using both
>  autoFillBackground() and Qt::WA_OpaquePaintArea on the edit widgets as
>  described at
> http://doc.trolltech.com/4.5/qwidget.html#transparency-and-double-buffering
> without any success (the parent widget is still visible).
> From what I can tell from the warning at this function
> http://doc.trolltech.com/4.5/qwidget.html#setParent the cleanest way would
>  be the usage of a QStackedWidget (to hold the "transaction displaying
>  widgets" and the editor widgets). But this will be a bit difficult because
>  of the way the code is written now (or maybe I don't have the big picture
>  :) ) so before I start I must ask are there any other ideas for how to do
>  this?
> 
This problem has been fixed in SVN. Thomas helped me realize that in fact the 
overlapping labels problem was in the paintFormCell function. The tabbar 
problem was also fixed by hiding the original tabbar while editing and putting 
the edit tabbar in the layout of the parent widget of the original tabbar 
instead of the layout of the original tabbar.

Thanks for the suggestions! :)

-- 
Regards,

Cristian Oneţ
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kmymoney-devel/attachments/20090926/257c37d4/attachment.sig 


More information about the KMyMoney-devel mailing list