Skip to main content

Ralsina.Me — Roberto Alsina's website

Data aware widgets in KDE

Well, read­ing in plan­etkde about how nice da­ta aware wid­gets would be, I have to say this:

  • Da­­ta aware wid­gets are great

  • Da­­ta aware wid­gets in C++ are not the best pos­si­ble so­lu­­tion

Us­ing a high­er lev­el lan­guage, and specif­i­cal­ly a more dy­nam­ic lan­guage makes lots of things much sim­pler.

As a tiny, lame ex­am­ple, please check the lit­tle thing I wrote about da­ta aware wid­gets in python here.

I am sure that some of our bet­ter pro­gram­mers (or more cre­ative thinker­s) can come up with awe­some stuff if they di­vorce from C++ in this sub­ject :-)

Roberto Alsina / 2006-04-03 19:46:

I suggest you read the article I linked.



If you use a modern language, you don't need to subclass. I think data aware widgets should be provided in the way that leads to writing better apps.



In the world of fat DB clients, C++ and Python have little to none performance difference. And rapid prototyping is crucial, since the app's UI will have to change quickly and often.



Python fits better into that. And C++ doesn't fit at all. If you implement the data-aware widgets in C++, you push that inflexinility into all languages :-(

abdulhaq / 2006-04-03 19:46:

Surely any extra widgets for KDE/Qt should be written such that they are available from standard libraries - i.e. in C/C++ - they can then easily be used by any another language that the UI is written it. I love python but to write a line edit subclass that only takes dates, or integers, or specific formats, is a very simple task in the great scheme of things.

abdulhaq


Contents © 2000-2024 Roberto Alsina