QPrinterInfo::availablePrinterNames



  • Hello everywhere.
    I Have ComboBox where are the Avilable Printer Names.
    I use QT 5.7 and All printer names are avilable, but other version in other computers combobox is empty.

    alt text


  • Qt Champions 2016

    Its impossible to guess at.
    What other version, older windows ?
    or what are the details of the computers where it list nothing?

    And you did check that the computer did in fact have a printer installed?



  • @mrjj
    What other version, older windows ?
    old is 8.1 new 10

    or what are the details of the computers where it list nothing?
    nothing. combobox is empty.

    And you did check that the computer did in fact have a printer installed?
    Yeap!


  • Qt Champions 2016

    Might be some bug with 5.7 and win 8.1
    I would go and look the bugreports.qt.io

    If possible try with 5.8



  • @mrjj
    where printers avilable Qt 5.7 windows 8.1
    where printers is not avilable Qt 5.8 windows 10

    so when i build and relise my project in qt 5.8 printers is avilable but 5.7 is not.
    wtf ? is DLL problems?


  • Qt Champions 2016

    @Taz742
    Could be anything.
    Any yes could be related to DLLS.

    I dont have a win 8 to test on so sadly i cant help debug using a small sample.



  • @mrjj
    SOLVED.
    https://forum.qt.io/topic/39319/solved-qprinterinfo-availableprinters-don-t-list-available-printers

    create folder in your project name at "/printsupport" and insert windowsprintersupport.dll


  • Qt Champions 2016

    @Taz742
    Ahhh
    it was error in deployment.
    Good info.

    So you didn't test on clean win 10 pc. And hence it could find the dll from Qt folder.
    But on remote win 8, it was Qt clean and hence failed.


Log in to reply