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. [SOLVED] Read/write user settings
QtWS25 Last Chance

[SOLVED] Read/write user settings

Scheduled Pinned Locked Moved QML and Qt Quick
17 Posts 5 Posters 11.1k 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.
  • S Offline
    S Offline
    strekazoid
    wrote on last edited by
    #7

    Thanks a lot, works now!

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #8

      You're welcome. If the problem has been solved for you feel free to edit your initial post title and prepend "[Solved]" to it to indicate that there is a solution inside.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        strekazoid
        wrote on last edited by
        #9

        Hey, is there some way to save image to settings? I have path to the image, how do I save it now to Settings?

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Rahul Das
          wrote on last edited by
          #10

          Try this :
          @settings.setValue("General/Pixmap", pixmap ); // pxmap is QPixmap@

          I haven't tried it yet, let me knw whats happening :)


          Declaration of (Platform) independence.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            strekazoid
            wrote on last edited by
            #11

            Thanks. How do I construct QPixmap in QML?

            1 Reply Last reply
            0
            • R Offline
              R Offline
              Rahul Das
              wrote on last edited by
              #12

              "here":http://doc.qt.nokia.com/latest/qdeclarativeimageprovider.html


              Declaration of (Platform) independence.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                strekazoid
                wrote on last edited by
                #13

                I'm still sort of confused. Is it possible to construct QPixmap in QML layer, or do I have to do something on C++ side as well?

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  Rahul Das
                  wrote on last edited by
                  #14

                  A request from QML for image/pixmap is handled by the 'Image Provider ' class, in simple words.

                  Yes you have to implement the Image provider in C++.


                  Declaration of (Platform) independence.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    strekazoid
                    wrote on last edited by
                    #15

                    Ok, thanks, I'll try to play with this idea.

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      Jon Heron
                      wrote on last edited by
                      #16

                      Thank you for this excellent post!!
                      Cheers,
                      Jon

                      1 Reply Last reply
                      0
                      • T Offline
                        T Offline
                        Traxx
                        wrote on last edited by
                        #17

                        Is the wrapper suppose to work out of the box and how do i make it work without qscopedpointer? Thank you

                        EDIT : Created a proper solution so anyone can answer to help future member

                        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