QML - Search
-
Would it be possible to make a search function using QML? :D
-
what do you mean by search function? Where do you want to search? Please ask more detailed questions.
-
[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.
-
In what form? Maybe you can provide some example or mockup to be more detail.
-
[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?
-
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 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
-
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 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.