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. setting print options in QtCreator
Forum Updated to NodeBB v4.3 + New Features

setting print options in QtCreator

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 3 Posters 785 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.
  • W Offline
    W Offline
    Weichao Wang
    wrote on last edited by
    #1

    Dear all,
    First of all, Happy New Year to all!
    Is it possible to set margins for printing in QtCreator? I want to use less margin to print more content on a page, saving paper. Thanks for any hints.
    Weichao

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      http://doc.qt.io/qt-5/qprinter.html#setPageMargins-1

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      0
      • W Offline
        W Offline
        Weichao Wang
        wrote on last edited by
        #3

        Merci!
        I've not clearly specified my question. I want to print my C++ source code from QtCreator editor, using less margin and save paper.
        Weichao

        aha_1980A 1 Reply Last reply
        0
        • W Weichao Wang

          Merci!
          I've not clearly specified my question. I want to print my C++ source code from QtCreator editor, using less margin and save paper.
          Weichao

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Weichao-Wang I think the print support in Creator is really limited. I rarely use it (and I guess many others too), so I'd suggest to use an other editor for printing if you need more options.

          Qt has to stay free or it will die.

          1 Reply Last reply
          1
          • W Offline
            W Offline
            Weichao Wang
            wrote on last edited by
            #5

            Thank you!

            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