Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. What of "windowsprintersupport.dll" and "qwindowsvistastyle.dll"?
Forum Updated to NodeBB v4.3 + New Features

What of "windowsprintersupport.dll" and "qwindowsvistastyle.dll"?

Scheduled Pinned Locked Moved Unsolved Qt 6
6 Posts 2 Posters 266 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.
  • SprezzaturaS Offline
    SprezzaturaS Offline
    Sprezzatura
    wrote last edited by Sprezzatura
    #1

    Qt 5 required inclusion of "windowsprintersupport.dll" and "qwindowsvistastyle.dll" when building an installer.

    Does Qt 6 have an equivalent? What are they called?

    Without windowsprintersupport.dll, my Qt 6 version is failing when trying to print.

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote last edited by
      #2

      Use windeployqt to gather all required plugins and pack them into your installer.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      SprezzaturaS 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        Use windeployqt to gather all required plugins and pack them into your installer.

        SprezzaturaS Offline
        SprezzaturaS Offline
        Sprezzatura
        wrote last edited by
        #3

        @Christian-Ehrlicher Thanks for your reply. I ran "windeployqt.exe" and it created the following directories beneath where my EXE was (.\release)

            release\generic
            release\help
            release\iconengines
            release\imageformats
            release\networkinformation
            release\platforms
            release\sqldrivers
            release\styles
            release\tls
            release\translations
        

        My installer already creates the platforms, styles, printsupport and imageformats subdirectories for Qt 5. I don't currently create the others, yet the Qt 6 version of the app seems to run (except for printing).

        I'm confused about what to do with this output. Do I need to create all the other sub-directories? How come my app runs without them?

        What are all the *.qm files in the "translations" subdirectory? I don't have any translations in my app.

        What happened to the "printsupport" subdirectory? The Web page describing "Qt 6 for Windows - Deployment" mentions:

        "Your application may also depend on one or more Qt plugins, such as the print support plugin"

        1 Reply Last reply
        0
        • Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote last edited by
          #4

          As I already wrote - you have to package all files windeployqt is copying. That's what windeployqt is for...
          If you don't need translations you can remove them.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0
          • SprezzaturaS Offline
            SprezzaturaS Offline
            Sprezzatura
            wrote last edited by
            #5

            Well... why is windeployqt adding stuff that I don't need?

            Why does the documentation mention "printsupport", yet it doesn't appear in the windeployqt output?

            Christian EhrlicherC 1 Reply Last reply
            0
            • SprezzaturaS Sprezzatura

              Well... why is windeployqt adding stuff that I don't need?

              Why does the documentation mention "printsupport", yet it doesn't appear in the windeployqt output?

              Christian EhrlicherC Online
              Christian EhrlicherC Online
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote last edited by
              #6

              @Sprezzatura said in What of "windowsprintersupport.dll" and "qwindowsvistastyle.dll"?:

              Well... why is windeployqt adding stuff that I don't need?

              Because it can't determine if you load these translations or not. The normal app uses translations and therefore also the ones for the Qt libs

              Why does the documentation mention "printsupport", yet it doesn't appear in the windeployqt output?

              I would guess you don't use it in your app so windeploy knows this and does not deploy it.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              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