Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Putting an image on a button and later using this image for a print out with text results...
Forum Updated to NodeBB v4.3 + New Features

Putting an image on a button and later using this image for a print out with text results...

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 2 Posters 1.2k 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.
  • T Offline
    T Offline
    Talonwiz1
    wrote on last edited by
    #1

    I am having some troubles in getting a image on a test reults sheet for printing? Any hits would be greatly appreciated!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What have you tried ? What is failing ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Talonwiz1
        wrote on last edited by
        #3

        Qimage
        QPixmap //to grab the image
        QPainter
        QViewport
        QFont

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          That's just a set of classes, did you read the Qt Print module documentation ?

          Posting the code where you are trying to print would be a plus

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • T Offline
            T Offline
            Talonwiz1
            wrote on last edited by
            #5

            I finally just used a std::ostringstream and put in quotes HTML syntax to handle the items to be printed....

            It is working now - 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