Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Behind the Scenes
  3. Wiki Discussion
  4. Manipulating images with Qt creator...
Forum Updated to NodeBB v4.3 + New Features

Manipulating images with Qt creator...

Scheduled Pinned Locked Moved Solved Wiki Discussion
9 Posts 2 Posters 2.7k Views 1 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.
  • justCode7J Offline
    justCode7J Offline
    justCode7
    wrote on last edited by
    #1

    I've been given a "4 pictures 1 word" project that has to be done in Qt. My problem is the following : How to insert pictures in a database and how to retrieve them using Qt Creator C++. I've found something here https://wiki.qt.io/How_to_Store_and_Retrieve_Image_on_SQLite but I still don't know how to solve my problem !

    aha_1980A 1 Reply Last reply
    0
    • justCode7J justCode7

      I've been given a "4 pictures 1 word" project that has to be done in Qt. My problem is the following : How to insert pictures in a database and how to retrieve them using Qt Creator C++. I've found something here https://wiki.qt.io/How_to_Store_and_Retrieve_Image_on_SQLite but I still don't know how to solve my problem !

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @justCode7, welcome.

      but I still don't know how to solve my problem !

      Hmm, neither do I. Probably you can get some help if you describe clearly where you encounter problems and which kind they are.

      Regards

      Qt has to stay free or it will die.

      justCode7J 1 Reply Last reply
      1
      • aha_1980A aha_1980

        Hi @justCode7, welcome.

        but I still don't know how to solve my problem !

        Hmm, neither do I. Probably you can get some help if you describe clearly where you encounter problems and which kind they are.

        Regards

        justCode7J Offline
        justCode7J Offline
        justCode7
        wrote on last edited by
        #3

        Thanks @aha_1980 :) Here is my idea: To realize the project, I plan to store images in a database. In this way, I will be able to display these images in some widgets according to the word to guess. Do you know the game "4 pictures 1 word" ? It goes like this : The game shows you 4 pictures that will inspire you a word that you give. As shown on the following picture : 0_1554999349448_4-images-1-mot.jpg

        On the picture, the word inspired by the 4 pictures is "BALLON" that means "BALL" in French.

        Do you have an idea?

        aha_1980A 1 Reply Last reply
        0
        • justCode7J justCode7

          Thanks @aha_1980 :) Here is my idea: To realize the project, I plan to store images in a database. In this way, I will be able to display these images in some widgets according to the word to guess. Do you know the game "4 pictures 1 word" ? It goes like this : The game shows you 4 pictures that will inspire you a word that you give. As shown on the following picture : 0_1554999349448_4-images-1-mot.jpg

          On the picture, the word inspired by the 4 pictures is "BALLON" that means "BALL" in French.

          Do you have an idea?

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @justCode7 said in Manipulating images with Qt creator...:

          Ok, I got an idea now what you want to achive.

          To realize the project, I plan to store images in a database.

          Yeah they had to be stored somewhere. Another idea would be to store them in the resource of your program (but then they would be static). Do you intend to change the pictures in the database when your program is running on a users machine?

          And imagine, you have a place where your pictures are stored. How do you intend to continue with your development?

          Regards

          Qt has to stay free or it will die.

          1 Reply Last reply
          0
          • justCode7J Offline
            justCode7J Offline
            justCode7
            wrote on last edited by
            #5

            I just expect to gather the images in batches of 4 and display them as on the picture I sent above. Each time the player guesses the word corresponding to the images, the program shows him another batch of images and so on!

            aha_1980A 1 Reply Last reply
            0
            • justCode7J justCode7

              I just expect to gather the images in batches of 4 and display them as on the picture I sent above. Each time the player guesses the word corresponding to the images, the program shows him another batch of images and so on!

              aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @justCode7 You would need to make sure, that all four pictures belong to the same word, obviously ;)

              That said, where is your problem now?

              Qt has to stay free or it will die.

              1 Reply Last reply
              0
              • justCode7J Offline
                justCode7J Offline
                justCode7
                wrote on last edited by
                #7

                Here it is : The images I'm going to use, I want to store them in a database. Once done, I want to display them from the database in some widgets. I don't know how to do that (storing them).

                aha_1980A 1 Reply Last reply
                0
                • justCode7J justCode7

                  Here it is : The images I'm going to use, I want to store them in a database. Once done, I want to display them from the database in some widgets. I don't know how to do that (storing them).

                  aha_1980A Offline
                  aha_1980A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @justCode7 said in Manipulating images with Qt creator...:

                  I don't know how to do that (storing them).

                  Then you should carefully read the link you have in your first post, because that link explains it with ready made code.

                  Qt has to stay free or it will die.

                  1 Reply Last reply
                  2
                  • justCode7J Offline
                    justCode7J Offline
                    justCode7
                    wrote on last edited by
                    #9

                    This https://wiki.qt.io/How_to_Store_and_Retrieve_Image_on_SQLite you mean !
                    Thank you @aha_1980 for your time ! :) see you next time !

                    I think everything I'm looking for is in the code given in the link !

                    Be blessed ! ;)

                    1 Reply Last reply
                    1

                    • Login

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