QML - Search
-
wrote on 7 Jul 2011, 13:55 last edited by
Would it be possible to make a search function using QML? :D
-
wrote on 7 Jul 2011, 14:31 last edited by
what do you mean by search function? Where do you want to search? Please ask more detailed questions.
-
wrote on 7 Jul 2011, 14:39 last edited by
[quote author="Denis Kormalev" date="1310049073"]what do you mean by search function? Where do you want to search? Please ask more detailed questions.[/quote]
Uhh, sorry :). A search function where-in you can look for certain words in a form using a textbox.
-
wrote on 7 Jul 2011, 14:48 last edited by
In what form? Maybe you can provide some example or mockup to be more detail.
-
wrote on 7 Jul 2011, 16:00 last edited by
It would be easy enough to implement the interface for a search form in QML, but QML proper doesn't lend itself to doing the search logic. That would have to be written in C++ (or Javascript, I suppose).
-
wrote on 7 Jul 2011, 16:14 last edited by
[quote author="Denis Kormalev" date="1310050122"]In what form? Maybe you can provide some example or mockup to be more detail.[/quote]
Uhh, I envision it to be like google, where you search for a word and a bunch of links or in this case, a bunch of paragraphs show up and the searched word will be italicized or boldfaced :D
[quote author="mlong" date="1310054403"]It would be easy enough to implement the interface for a search form in QML, but QML proper doesn't lend itself to doing the search logic. That would have to be written in C++ (or Javascript, I suppose).[/quote]
Ohh, so I would have to make it using C++ or Javascript then implement it in the QML form?
-
wrote on 7 Jul 2011, 16:25 last edited by
So you want to have web search implemented? I think you can use Google API in this case. And probably QML/JS will be sufficient for you (but I don't think it is good to implement network stuff at qml/js side, c++ suits here better for me)
-
wrote on 8 Jul 2011, 09:33 last edited by
[quote author="Denis Kormalev" date="1310055953"]So you want to have web search implemented? I think you can use Google API in this case. And probably QML/JS will be sufficient for you (but I don't think it is good to implement network stuff at qml/js side, c++ suits here better for me)[/quote]
No, not a web search. Just a simple search function so that you can find specific phrases faster. Much like MS office's "Navigation" feature. Sorry for the confusion :D. Well that answers my question. I think I'll use C++ for this since everyone's saying that it's better. Thanks! :D
-
wrote on 8 Jul 2011, 09:50 last edited by
FlyingFish, it depends on your data structures. If you store data in JS/QML then it will be better to implement search in JS, if you store data in C++ then C++ search will fit better.
-
wrote on 8 Jul 2011, 11:34 last edited by
[quote author="Denis Kormalev" date="1310118646"]FlyingFish, it depends on your data structures. If you store data in JS/QML then it will be better to implement search in JS, if you store data in C++ then C++ search will fit better.[/quote]
Oh, well that explains a lot. I've been trying to use C++ and it wasn't doing the job right. Thanks Denis! :D.
1/10