[Kmymoney-devel] transaction form problems
Cristian Oneţ
onet.cristian at gmail.com
Mon Sep 21 22:00:49 CEST 2009
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?
--
Regards,
Cristian Oneţ
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transaction_form.png
Type: image/png
Size: 14362 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kmymoney-devel/attachments/20090921/494b2d97/attachment.png
-------------- 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/20090921/494b2d97/attachment.sig
More information about the KMyMoney-devel
mailing list