Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. A database app
Forum Updated to NodeBB v4.3 + New Features

A database app

Scheduled Pinned Locked Moved Solved General and Desktop
15 Posts 5 Posters 3.6k Views 5 Watching
  • 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.
  • Pablo J. RoginaP Offline
    Pablo J. RoginaP Offline
    Pablo J. Rogina
    wrote on last edited by Pablo J. Rogina
    #5

    @Venkatesh-V maybe I'm wrong but it looks there's no examples for

    I'm trying to practice this section of that book

    have you tried them yourself?

    Upvote the answer(s) that helped you solve the issue
    Use "Topic Tools" button to mark your post as Solved
    Add screenshots via postimage.org
    Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

    1 Reply Last reply
    0
    • K koahnig

      @tomy

      I suggest that you have a look to the SQL examples as part of Qt distrbutions. Since they are typically ready for direct use, you can start with them and adapt to examples, if you still have the desire to do so.

      tomyT Offline
      tomyT Offline
      tomy
      wrote on last edited by
      #6

      @koahnig
      They are too advanced, not good for a beginner of that. But thanks. By the way, it doesn't show what template/classes are to be used.

      mrjjM Pablo J. RoginaP 2 Replies Last reply
      0
      • tomyT tomy

        @koahnig
        They are too advanced, not good for a beginner of that. But thanks. By the way, it doesn't show what template/classes are to be used.

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #7

        @tomy
        You can just use a default widget GUI project.
        The samples are just fragments. Not complete samples. Just shows how to hook
        up model to a view.
        To learn more, read docs for each class

        QListView(this);
        QStringListModel(this);
        QSqlDatabase db
        QSqlTableModel(this);

        1 Reply Last reply
        0
        • tomyT tomy

          @koahnig
          They are too advanced, not good for a beginner of that. But thanks. By the way, it doesn't show what template/classes are to be used.

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #8

          @tomy and what about reading this SQL programming guide from Qt?

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          3
          • mrjjM mrjj

            Hi
            I can highly recommend
            http://sqlitebrowser.org/
            for looking into the db, running sql on it and learn sqlite.

            tomyT Offline
            tomyT Offline
            tomy
            wrote on last edited by
            #9

            @mrjj
            It seems great but I don't want to go into the details to the DB world. It seems also advanced. I wanted to have a simple db program, or better to say, I just want to practice the example of the book. I'm not interested in db, at east, for now. And since it's part of that book I wanted that.
            Now if possible please tell me the kind of project for the book's example. Would Qt Widgets Applications be right to use for that.

            By the way, I will read the link properly. I may need it for the program I'm involving it (spreadsheet).

            1 Reply Last reply
            0
            • tomyT Offline
              tomyT Offline
              tomy
              wrote on last edited by
              #10

              I appreciate all of you, but for this step, I'd like to make the example of the book run. And follow the book. Thanks.

              1 Reply Last reply
              0
              • mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #11

                @tomy said in A database app:

                a simple db program

                Well unless you know what a table is, SQL and a little bit of db structure, its not going to be fun.
                If you dont want to learn about DB, there is no reason to read about Qt DB classes.
                They help you do DB stuff and if you skip that part, it best just to skip it all.

                tomyT 1 Reply Last reply
                0
                • mrjjM mrjj

                  @tomy said in A database app:

                  a simple db program

                  Well unless you know what a table is, SQL and a little bit of db structure, its not going to be fun.
                  If you dont want to learn about DB, there is no reason to read about Qt DB classes.
                  They help you do DB stuff and if you skip that part, it best just to skip it all.

                  tomyT Offline
                  tomyT Offline
                  tomy
                  wrote on last edited by
                  #12

                  @mrjj

                  If you dont want to learn about DB, there is no reason to read about Qt DB classes.

                  I don't want to say I don't like to learn DB, because I will certainly need it in near/far future. what I say is "at this stage", or for this time.
                  first I need to learn how to run the example (I pointed to at my first post of this thread) and follow the book and some time latter start reading about DB. I'm sure those links offered here are very useful.

                  mrjjM 1 Reply Last reply
                  0
                  • tomyT tomy

                    @mrjj

                    If you dont want to learn about DB, there is no reason to read about Qt DB classes.

                    I don't want to say I don't like to learn DB, because I will certainly need it in near/far future. what I say is "at this stage", or for this time.
                    first I need to learn how to run the example (I pointed to at my first post of this thread) and follow the book and some time latter start reading about DB. I'm sure those links offered here are very useful.

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #13

                    @tomy

                    ok. but unless you make a table with data, it will be impossible to see if it works as nothing would be shown. :)

                    Also , those samples are incomplete as it seems to be from some other part.
                    the variables are not defined there, only shown so there will be extra work to make it run
                    unless there is the rest of it.

                    1 Reply Last reply
                    1
                    • tomyT Offline
                      tomyT Offline
                      tomy
                      wrote on last edited by
                      #14

                      OK and thank you. So I skip that section.

                      1 Reply Last reply
                      1
                      • Pablo J. RoginaP Offline
                        Pablo J. RoginaP Offline
                        Pablo J. Rogina
                        wrote on last edited by
                        #15

                        @tomy Please don't forget to mark your post as "Solved" if you're done with the DB topic...

                        Upvote the answer(s) that helped you solve the issue
                        Use "Topic Tools" button to mark your post as Solved
                        Add screenshots via postimage.org
                        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                        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