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

Save qlabel picture, modify and reload to qlabel

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 2 Posters 691 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.
  • KutyusK Offline
    KutyusK Offline
    Kutyus
    wrote on 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.

    jsulmJ 1 Reply Last reply
    0
    • KutyusK Kutyus

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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

      KutyusK 1 Reply Last reply
      0
      • jsulmJ jsulm

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

        KutyusK Offline
        KutyusK Offline
        Kutyus
        wrote on last edited by
        #3

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

        jsulmJ 1 Reply Last reply
        0
        • KutyusK Kutyus

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

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Kutyus

          QPicture pic1;
          QPicture pic2 = pic1;
          

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

          KutyusK 1 Reply Last reply
          0
          • jsulmJ jsulm

            @Kutyus

            QPicture pic1;
            QPicture pic2 = pic1;
            
            KutyusK Offline
            KutyusK Offline
            Kutyus
            wrote on 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

            • Login

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