[Qt-interest] Would need some comments please

Kari Laine klaine8 at gmail.com
Fri Nov 27 22:30:46 CET 2009


Thanks Gordon,

On Fri, Nov 27, 2009 at 9:15 PM, Gordon Schumacher <gordon at rebit.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Going to CC: back to the list since there's more ideas here that might
> be useful to others...
Sorry to mailed you personally. I meant to post to the list but just
pressed the reply button.... well I learned now.

> I'm guessing that by "different UI parts" you mean different dialogs
> and the like?  Absolutely, in that case.
Ok Thanks.


> The other thing to bear in mind is that if you have a chunk of UI -
> say, the controls for a channel - that you need to use in more than
> one place, you can make that a single QWidget-derived class, and
> instantiate it wherever you need it.  So for four different channels,
> you could have something like:
Thank you very much for example I will change my "design" and learn
about the properties.


> Note also that using the properties stuff from the beginning is a
> wonderful thing - not only does it handle some of the repetitive grunt
> work, but if you decide later that you want to let people script it
> via QtScript, or you'd like IPC via D-Bus or COM... well, 99% of your
> work is already done.


>
>> I think this is very good advice - I was wondering where to put the slots.
>
> That would depend again on whether it is purely a UI trigger or a
> business logic trigger.  So with the above example - the "nameChanged"
> and "voltageChanged" are properties of the UI, but "triggerHit" would
> be a business logic thing.
Ok I start to understand.

I will have busy weekend.

I think this QT is quite nice so far - lot to learn though. Now I will
be able to do Windows programs with user interface.
I have fought with WIN32 API and lost severall times....

Best Regards
Kari




More information about the Qt-interest-old mailing list