Is there a way to display Spec widgets in a ListModel?
Hi everyone, I can't find how to display Spec widgets in a ListModel, is it possible? I would like to have a list model holding, at each row, a TextModel and a ButtonModel. Thanks in advance, Julien
I never tried anything like this, I do not think it is possible. What you are trying to do seems strange to me, what is the use case you want to implement?
On Mar 2, 2016, at 17:06, Julien Delplanque <julien@tamere.eu> wrote:
Hi everyone,
I can't find how to display Spec widgets in a ListModel, is it possible?
I would like to have a list model holding, at each row, a TextModel and a ButtonModel.
Thanks in advance,
Julien
---> Save our in-boxes! http://emailcharter.org <--- Johan Fabry - http://pleiad.cl/~jfabry PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile
I would like to have a ListModel holding objects I can edit a value using the TextModel and apply my modification using the ButtonModel. Julien On 02/03/16 21:31, Johan Fabry wrote:
I never tried anything like this, I do not think it is possible.
What you are trying to do seems strange to me, what is the use case you want to implement?
On Mar 2, 2016, at 17:06, Julien Delplanque <julien@tamere.eu> wrote:
Hi everyone,
I can't find how to display Spec widgets in a ListModel, is it possible?
I would like to have a list model holding, at each row, a TextModel and a ButtonModel.
Thanks in advance,
Julien
---> Save our in-boxes! http://emailcharter.org <---
Johan Fabry - http://pleiad.cl/~jfabry PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile
This: [1] is what I would like to do. I found it in an old thread: [2] but it is a prototype. I wondered if there was an object able to do it in the framework :-)... Julien Links: [1]: http://ijintek.fr/wiki/doku.php?id=spec_examples#listview_example [2]: http://forum.world.st/Spec-question-td4741608.html#a4747231 On 02/03/16 21:31, Johan Fabry wrote:
I never tried anything like this, I do not think it is possible.
What you are trying to do seems strange to me, what is the use case you want to implement?
On Mar 2, 2016, at 17:06, Julien Delplanque <julien@tamere.eu> wrote:
Hi everyone,
I can't find how to display Spec widgets in a ListModel, is it possible?
I would like to have a list model holding, at each row, a TextModel and a ButtonModel.
Thanks in advance,
Julien
---> Save our in-boxes! http://emailcharter.org <---
Johan Fabry - http://pleiad.cl/~jfabry PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile
For me, a list should just hold âdumbâ items where the kinds of actions you can do are limited to e.g. a simple context menu. Otherwise if you need complex actions or multiple nested widgets et cetera, the ListModel implementation and API will become too complicated. I instead think that what you want is something that should be taken care of by dynamic spec: (1) you make a ComposableModel subclass that holds all the widgets for one item of your list, (2) you make your own âlist widgetâ that uses dynamic spec to dynamically add/remove instances of (1) in a one column layout. Note that I have never tried this. As far as I understand, this should mostly work. When there will be a need for a vertical scrollbar I donât think it will appear. If this is the case, dynamic spec should be extended with this support. I think that in general, dynamic spec and layouting of widgets could benefit of some work. But this is a complex topic and I do not have the time to tackle it, sadly.
On Mar 2, 2016, at 17:44, Julien Delplanque <julien@tamere.eu> wrote:
This: [1] is what I would like to do. I found it in an old thread: [2] but it is a prototype. I wondered if there was an object able to do it in the framework :-)...
Julien
Links: [1]: http://ijintek.fr/wiki/doku.php?id=spec_examples#listview_example [2]: http://forum.world.st/Spec-question-td4741608.html#a4747231
On 02/03/16 21:31, Johan Fabry wrote:
I never tried anything like this, I do not think it is possible.
What you are trying to do seems strange to me, what is the use case you want to implement?
On Mar 2, 2016, at 17:06, Julien Delplanque <julien@tamere.eu> wrote:
Hi everyone,
I can't find how to display Spec widgets in a ListModel, is it possible?
I would like to have a list model holding, at each row, a TextModel and a ButtonModel.
Thanks in advance,
Julien
---> Save our in-boxes! http://emailcharter.org <---
Johan Fabry - http://pleiad.cl/~jfabry PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile
---> Save our in-boxes! http://emailcharter.org <--- Johan Fabry - http://pleiad.cl/~jfabry PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile
On 02/03/16 21:31, Johan Fabry wrote:
I never tried anything like this, I do not think it is possible.
That is what a MultiColumnListModel should be able to do (but can't) It is probably better to extend the FastTableModel.
What you are trying to do seems strange to me, what is the use case you want to implement?
Representing objects and actions on them in a list? And we want that in a matrix and tree too, not just linear. Stephan
Hi Julien Have a look at https://youtu.be/fRhcNkPKXWY?t=28 That's a list creating composed Spec widgets dynamically. Is that what you mean? Hernán 2016-03-02 17:06 GMT-03:00 Julien Delplanque <julien@tamere.eu>:
Hi everyone,
I can't find how to display Spec widgets in a ListModel, is it possible?
I would like to have a list model holding, at each row, a TextModel and a ButtonModel.
Thanks in advance,
Julien
participants (4)
-
Hernán Morales Durand -
Johan Fabry -
Julien Delplanque -
Stephan Eggermont