Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] Printing problem

[Solved] Printing problem

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 2.7k 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.
  • Y Offline
    Y Offline
    Yasin
    wrote on last edited by
    #1

    Hi all.
    I want to print texts entered in some LineEdit to specified locations on paper but i don't know how to do that.

    Yasin Gorgij

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      Did you look at the QPrinter class?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        secretNinja
        wrote on last edited by
        #3

        bq. "void QPrinter::setPaperSource - Sets the paper source...":http://doc.trolltech.com/latest/qprinter.html#setPaperSource

        1 Reply Last reply
        0
        • Y Offline
          Y Offline
          Yasin
          wrote on last edited by
          #4

          Thank you Andre and secretNinja. I explain my problem, i have preprinted blank tables and i want to print into the cells, values that a user has entered in LineEdits with user selected font and size, i don't know how to do that with the QPrinter class.

          Yasin Gorgij

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #5

            Create a "QPainter":http://doc.qt.nokia.com/4.7/qpainter.html on the QPrinter and use it's methods. The linked API docs lists all the relevant methods (drawXXX)

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • Y Offline
              Y Offline
              Yasin
              wrote on last edited by
              #6

              Thank you Volker, i'll try it.

              Yasin Gorgij

              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