[Qt-interest] why is this not allowed?
Gabriele Kahlout
gabriele at mysimpatico.com
Tue May 11 00:30:00 CEST 2010
it's more challenging than that!
I've tried your version, then extended it into a class, then passed a
reference to the layout, then a copy ... Nothing achieves what I want.
The issue is that I prefer not to return a reference so that windows that
use it and close, don't destroy it, as seems to be the case. However I don't
want a deep copy too =). I just want a shall one! Pointers to the widgets of
the layout, but a copy of the layout?
It's seems i'll just resort (no better solution) to duplicating these lines
of code.
I've attached a qt project illustrating the problem, should someone be
interested in demonstrating a good solution.
2010/5/8 Ross Bencina <rossb-lists at audiomulch.com>
> QGridLayout *createLoginLayout() { /* create the layout and add the widgets
> */ }
>
--
Regards,
K. Gabriele
--- unchanged since 25/1/10 ---
P.S. Unless a notification (LON), please reply either with an answer OR with
" ACK" appended to this subject within 48 hours. Otherwise, I might resend.
In(LON, this) ∨ In(48h, TimeNow) ∨ ∃x. In(x, MyInbox) ∧ IsAnswerTo(x, this)
∨ (In(subject(this), subject(x)) ∧ In(ACK, subject(x)) ∧
¬IsAnswerTo(x,this)) ⇒ ¬IResend(this).
Also note that correspondence may be received only from specified a priori
senders, or if the subject of this email ends with a code, eg. -LICHT01X,
then also from senders whose reply contains it.
∀x. In(x, MyInbox) ⇒ In(senderAddress(x), MySafeSenderList) ∨ (∃y. In(y,
subject(this) ) ∧ In(y,x) ∧ isCodeLike(y, -LICHT01X) ).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100511/3fd53db2/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: login.zip
Type: application/zip
Size: 5689 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100511/3fd53db2/attachment.zip
More information about the Qt-interest-old
mailing list