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] availablePrinters() returns list only from Creator
QtWS25 Last Chance

[SOLVED] availablePrinters() returns list only from Creator

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.3k 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.
  • E Offline
    E Offline
    ecdeveloper
    wrote on 11 Jul 2013, 15:18 last edited by
    #1

    Hey there,

    I'm using Qt5.0.1, under Windows XP. I want to retrieve the list of available printers using QPrinterInfo::availablePrinters(). When I run the app from Qt Creator - it shows the list. When I move the application to a separate folder together with all dll libraries (deploy folder) - the list returned by this function is empty.

    Any hints why could this happen and how could it be solved?

    Thanks in advance!

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bagipro
      wrote on 11 Jul 2013, 15:40 last edited by
      #2

      Did u use Dependency walker?

      1 Reply Last reply
      0
      • E Offline
        E Offline
        ecdeveloper
        wrote on 11 Jul 2013, 20:17 last edited by
        #3

        Nope. Actually I tried it. When I open the exe file from Release dir (where are no any dll's yet, I see this - http://d.pr/i/DLyO). I copied all libraries from the appropriate place and the app is running with no errors, the only difference is that availablePrinters() still shows an empty list. Any ideas?

        1 Reply Last reply
        0
        • E Offline
          E Offline
          ecdeveloper
          wrote on 11 Jul 2013, 21:10 last edited by
          #4

          Seems like the issue was fixed.
          http://stackoverflow.com/questions/17175398/deployed-qt5-application-doesnt-print-or-show-print-dialog - that helped.

          1 Reply Last reply
          0

          2/4

          11 Jul 2013, 15:40

          • Login

          • Login or register to search.
          2 out of 4
          • First post
            2/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved