Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [Solved] Printing problem

    General and Desktop
    4
    6
    2415
    Loading More Posts
    • 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
      Yasin last edited by

      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 Reply Quote 0
      • A
        andre last edited by

        Did you look at the QPrinter class?

        1 Reply Last reply Reply Quote 0
        • S
          secretNinja last edited by

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

          1 Reply Last reply Reply Quote 0
          • Y
            Yasin last edited by

            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 Reply Quote 0
            • G
              goetz last edited by

              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 Reply Quote 0
              • Y
                Yasin last edited by

                Thank you Volker, i'll try it.

                Yasin Gorgij

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post