Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML - Search

QML - Search

Scheduled Pinned Locked Moved QML and Qt Quick
10 Posts 3 Posters 3.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    FlyingFish
    wrote on last edited by
    #1

    Would it be possible to make a search function using QML? :D

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

      what do you mean by search function? Where do you want to search? Please ask more detailed questions.

      1 Reply Last reply
      0
      • F Offline
        F Offline
        FlyingFish
        wrote on last edited by
        #3

        [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.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on last edited by
          #4

          In what form? Maybe you can provide some example or mockup to be more detail.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mlong
            wrote on last edited by
            #5

            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).

            Software Engineer
            My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

            1 Reply Last reply
            0
            • F Offline
              F Offline
              FlyingFish
              wrote on last edited by
              #6

              [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?

              1 Reply Last reply
              0
              • D Offline
                D Offline
                DenisKormalev
                wrote on last edited by
                #7

                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)

                1 Reply Last reply
                0
                • F Offline
                  F Offline
                  FlyingFish
                  wrote on last edited by
                  #8

                  [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

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    DenisKormalev
                    wrote on last edited by
                    #9

                    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.

                    1 Reply Last reply
                    0
                    • F Offline
                      F Offline
                      FlyingFish
                      wrote on last edited by
                      #10

                      [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 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved