Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QPrinter



  • Hi all,

    I am currently working on QPrinter to print labels on Linux. I am trying to get the status of the printer using QPrinter::printerState().

    I know there are four printer states available

    1. QPrinter::Idle
    2. QPrinter::Active
    3. QPrinter::Aborted
    4. QPrinter::error

    But I want to know whether QPrinter can return the current printer status like whether printer is connected or disconnected ?

    Any help is highly appreciated.

    Thanks,
    Narayanan K


Log in to reply