Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Richard Bown <bownie@bo...> - 2002-10-25 08:52:28
Got a real chicken and egg Qt problem.
In the bank editor I have a drop-down Combo with editable text that
displays Devices and Banks. When a new item in that list is selected
then the bank information is populated on the dialog. Additionally you
can change the name of the bank or device in the Combo.
Problem is I want to set the "modified" state of the dialog (activate
OK/Apply buttons) only for valid changes to the Combo (i.e. when the
text actually changes). If I connect up the textChanged signal from
the Combo then this picks up any text mods including when the combo
changes to a new item in the list i.e. the signals from QComboBox are
emitted in this order:
Now this is a complete pain of course because activating a new item in
the list looks like a modification of the existing text of a valid
unchanged Device of Bank.
Any ideas? There's no way of telling where a signal is emitted from I
take it (which widget)?
This seems like a fairly straightforward thing to do and it's been
driving me nuts for a couple of days now.
On Friday 25 October 2002 10:54, Richard Bown wrote:
> Any ideas? There's no way of telling where a signal is emitted from I
> take it (which widget)?
QObject::sender() is your friend, and it's been our friend for quite a whil=
now, we use it in many places (see in notationviewslots.cpp for instance).
Or perhaps you can hook the "modified" status of the dialog to something el=
but I'm not sure what yet.
From: Richard Bown <bownie@bo...> - 2002-10-25 09:32:32
On Friday 25 October 2002 10:26, Guillaume Laurent wrote:
> QObject::sender() is your friend, and it's been our friend for quite
> a while now, we use it in many places (see in notationviewslots.cpp
> for instance).
You're a star.