Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Save qlabel picture, modify and reload to qlabel
Forum Updated to NodeBB v4.3 + New Features

Save qlabel picture, modify and reload to qlabel

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 2 Posters 692 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.
  • K Offline
    K Offline
    Kutyus
    wrote on 31 Oct 2018, 08:34 last edited by
    #1

    Hi!

    I have a qlabel, and I make a qpicture with the qpainter and setting this picture to qlabel, is working fine.
    I would like to modify the picture, I would like to save the actual, because there are several versions, but I do not know how.

    Thanks in advance.

    J 1 Reply Last reply 31 Oct 2018, 08:50
    0
    • K Kutyus
      31 Oct 2018, 08:34

      Hi!

      I have a qlabel, and I make a qpicture with the qpainter and setting this picture to qlabel, is working fine.
      I would like to modify the picture, I would like to save the actual, because there are several versions, but I do not know how.

      Thanks in advance.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 31 Oct 2018, 08:50 last edited by
      #2

      @Kutyus What about http://doc.qt.io/qt-5/qpicture.html#save ?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      K 1 Reply Last reply 31 Oct 2018, 09:06
      0
      • J jsulm
        31 Oct 2018, 08:50

        @Kutyus What about http://doc.qt.io/qt-5/qpicture.html#save ?

        K Offline
        K Offline
        Kutyus
        wrote on 31 Oct 2018, 09:06 last edited by
        #3

        @jsulm I not need a file, I need QPixmap or QPicture object.

        J 1 Reply Last reply 31 Oct 2018, 09:16
        0
        • K Kutyus
          31 Oct 2018, 09:06

          @jsulm I not need a file, I need QPixmap or QPicture object.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 31 Oct 2018, 09:16 last edited by
          #4

          @Kutyus

          QPicture pic1;
          QPicture pic2 = pic1;
          

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          K 1 Reply Last reply 31 Oct 2018, 10:46
          0
          • J jsulm
            31 Oct 2018, 09:16

            @Kutyus

            QPicture pic1;
            QPicture pic2 = pic1;
            
            K Offline
            K Offline
            Kutyus
            wrote on 31 Oct 2018, 10:46 last edited by
            #5

            Ok, I solve the problem, change the QPicture to QPixmap, and it is copyable with the copy() method :)

            Thanks

            1 Reply Last reply
            0

            2/5

            31 Oct 2018, 08:50

            • Login

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