Hi,
Allright, I've done some further testing and I also read some parts of the
QSqlTableModel source code to understand what's going on.
I've finally managed to get something working. For people that might be
interested in it, I figured out that :
- You have to emit the `beginRemoveRows` and
Hi,
Thanks for your input :)
> Hi, I am a SQL noob, but here's my piece of advice:
> Use a QML list model as a "proxy" and then replace the database with
> the QML list model's data at some point, like after the user exits
> some sort of list edit mode. It might not be the most efficient way
> bu
Hi Peter, hi guys,
First, thanks for your answer and ideas :)
> I find your code a bit hard to read. It would be nice if you use full
> names like list instead of l. I know it is annoying, but makes live
> easier in the long run.
Yeah, sorry about that. I'm not used to working in team and I also
Hello,
I sent the following email a few weeks ago but got no answer. The github
statistics also show that only one person downloaded the "dummy" project I
wrote to demonstrate my issue... :(
With the recent announcements and the Jolla boat sailing on, I'd like to get
this solved.
I'm even will
Hi,
I've stumbled upon something very annoying :
I have a model that inherits from QSqlTableModel. A SilicaListView shows the
data. This is very easy to do, thanks to Qt/QML :)
Each list item has a ContextMenu with a "Delete" entry that allows the user to
delete the item. It runs a remorse, an
Thank you Petr for you advices. I'll definitely give it a try.
If others have other ideas/advices/points of view, please share them !
Cheers,
--
François
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lis
Hi,
I have yet another UX/UI issue. I'll try to be as concise as possible, but this
post might end a bit long. Sorry for that.
I'm also sorry if it sounds easy to solve, or out of topic for some of you.
Just tell me.
Please consider the following (basic) scenario :
My app allows the user to m
Hi !
Thanks for your efforts. This is really great, especially for beginners (like
me !).
I have another suggestion : would it be possible to open the documentation to
community ?
I think a few people here could easily provide some good how-tos and
explanations about different subjects. Someon
much stuff/code :)
(Would you mind if I put your names in the credits (Lucien, Michael, Peter,
Nils) ?)
--
François
- Mail original -
> Hi,
>
> On Fri, Apr 17, 2015 at 12:09 PM, François K.
> wrote:
> > 1/ The first one is to build a Model that would inherit from
&
Hi Peter,
Thanks for your answer and your time :)
> I dont get it. A project status is a perfect field for a DB.
> The query would even group the project in the right way.
>
> select status , projectname
> from todolist
> group by statusRank
> ;
Currently, a task is represented that way :
u
Hi Michael, hi Lucien, hi devs,
> I support this idea:
> Why don't you build a model that is built in two step during
> creation, first, build the 6 entries, then build the rest ?
Do you suggest to do this in C++ (which is my idea n°1) or mix C++ and QML (see
below) ?
> > Is'nt it possible to
Hi Lucien,
Thanks a lot for your blazingly fast answer :D
> Can't you simply make the hard-coded entries dynamic too. Just add a
> column in the db saying that these entries are the hardcoded ones ?
Sadly, nope, I can't hard-code them in the database because they are entry
point to a different
Hi !
Today, my issue is probably more about Qt than SailfishOS, but I'd like to try
my luck with you first :)
I want to build a list where the first 6 items are "fixed" (they have to always
be here) and the following ones are retrieved from a database.
For each of these items, I'd like to also
Hi,
Me again !
Disclaimer : I'm pretty new in Sailfish development, and this mail is rather
long, because I'm trying to be precise.
Allright, I'm stuck by a "weird" issue that involves a SilicaListView,
sections, currentIndex and cover.
My SilicaListView is divided in 2 sections : items marke
Hi,
> It is a good practice to load the minimal amount of data in a
> ListModel. I don't know which app you are developing, but for an
> example TODO list app, the main page would only load (from a
> storage, like a database), only the title and id of the TODO
> entries. Clicking on an entry will
Hi,
Sorry to bump this, but I think my last mail formatting was misleading.
It actually contained another question :
> The best way to do this is to use QML ListModel. Instead of loading
> the properties in a JS object, you can load them as model properties
> (via
> http://qt-project.org/doc/qt-5
Hi,
@Lucien : thanks again for your help. I'm starting to owe you a lot :)
- Mail original -
> The best way to do this is to use QML ListModel. Instead of loading
> the properties in a JS object, you can load them as model properties
> (via
> http://qt-project.org/doc/qt-5/qml-qtqml-mod
Hi,
I'm writing a small app for SailfishOS in JS + QML (I don't know C++ so please
don't tell me to do this in C++).
I'm getting data from LocalStorage and hence get a Javascript Object with its
own properties. Let's call it myObj.
Then I bind some field in a view to these properties :
Det
Hi Krisztian,
I faced the same issues last week, and solved it this way :
http://pastebin.com/8JRd3ATp (borrowed from the SearchField example provided by
Jolla).
I tried several things, it's the only one that seems to give the expected
result. But I don't know why :/
Cheers,
--
François
___
Hi !
- Mail original -
> Hello. You need to set currentIndex after your model data
> initialized,
> not object. You can initialize at onCountChanged or make special
> signal
> from signal and listen it.
Thanks a lot Andrey, that solved my problem.
I think I need some doc about that kind
Hi :)
I have a ComboBox issue !
The ComboBox I want to use is made of dynamic items. I build it with a
ListModel and a Repeater as follow :
ComboBox {
id: project
label: qsTr("Project")
menu: ContextMenu {
MenuItem { text: qsTr("Not set") }
Repeater {
m
21 matches
Mail list logo