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. QPrinter problem QT 5.9.2 and 5.8
Forum Updated to NodeBB v4.3 + New Features

QPrinter problem QT 5.9.2 and 5.8

Scheduled Pinned Locked Moved Solved General and Desktop
24 Posts 5 Posters 10.4k Views 2 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.
  • mrjjM mrjj

    It seems not to be the pro file as
    it is pretty basic and it could compile my project too.

    And QPrinter is included in the installation as a default project works.

    My best bet is that the
    $$files(.cpp)
    $$files(classes/
    .cpp)
    $$files(gui/*.cpp) \

    find something we dont expect and include.

    K Offline
    K Offline
    Krasnoiark
    wrote on last edited by
    #21

    @mrjj I have tryed retyping all the pro file with all the files included but no luck.
    Do you think it could be about the multiple projects ? I have my software project inside a sub-project inside an other sub-project. (My team needed multiple projects in order to have the testing project and the software and a 2nd project because our project has multiple softwares ).
    In the sub project I only include the projects it gathers. Should I include qprintsupport inside that pro file ?

    mrjjM 1 Reply Last reply
    0
    • K Krasnoiark

      @mrjj I have tryed retyping all the pro file with all the files included but no luck.
      Do you think it could be about the multiple projects ? I have my software project inside a sub-project inside an other sub-project. (My team needed multiple projects in order to have the testing project and the software and a 2nd project because our project has multiple softwares ).
      In the sub project I only include the projects it gathers. Should I include qprintsupport inside that pro file ?

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #22

      If the sub projects also have .pro file
      and you get the linker error in them/related to those files
      then yes, you need
      QT+=printsupport there also to link the module to that set of .o files.

      1 Reply Last reply
      1
      • K Offline
        K Offline
        Krasnoiark
        wrote on last edited by
        #23

        OK THAT WAS IT ! I had to include inside the pro files the QT += printsupport.
        Thank you for helping me and sorry for taking your time. It was pretty stupid of me not to check that.
        Anyway, thank you.

        mrjjM 1 Reply Last reply
        0
        • K Krasnoiark

          OK THAT WAS IT ! I had to include inside the pro files the QT += printsupport.
          Thank you for helping me and sorry for taking your time. It was pretty stupid of me not to check that.
          Anyway, thank you.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #24

          @Krasnoiark
          No problem at all.
          I also learn something :)

          I had no idea you could do

          $$files(*.cpp) 
          

          thx :)

          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