+ Reply to Thread
Results 1 to 3 of 3

Thread: No printer installed..?

  1. #1
    Join Date
    Dec 2006
    Location
    Bangalore, India
    Posts
    38
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question No printer installed..?

    Hi Buddies,
    I am working in the printing related problem in Qt.
    I dont know how to check the availability of PRINTERS in a system. So please let me send word a code snippet such that I can check whether any printer is installed in a system or not.

    Kindly help me to solve this problem.
    WINNERS DON`T D DIFFERENT THINGS THEY D THINGS differently.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,329
    Thanks
    3
    Thanked 5,004 Times in 4,783 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Blog Entries
    4
    Wiki edits
    10

    Default Re: No printer installed..?

    I think all you need is to call QPrinter::setup().

  3. #3
    Join Date
    Dec 2006
    Location
    Bangalore, India
    Posts
    38
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Talking Re: No printer installed..?

    Hi Wysota,

    Thanx...

    QString QPrinter:rinterName ()

    This string returned is set to default printer name, if the default printer is not installed it returns a QString with a NULL value.

    This is the solution which I have used in my code.
    WINNERS DON`T D DIFFERENT THINGS THEY D THINGS differently.

+ Reply to Thread

Similar Threads

  1. gcc 4.1.1 and qt 4.2 installation problem
    By dave in forum Installation and Deployment
    Replies: 11
    Last Post: 25th September 2011, 19:37
  2. Qt4 with mingw on win2K
    By geert in forum Installation and Deployment
    Replies: 3
    Last Post: 11th December 2006, 12:25
  3. Qt3 to Qt4 printer setup confusion
    By impeteperry in forum Qt Programming
    Replies: 6
    Last Post: 5th May 2006, 12:40
  4. Printing a PRN file on an NDPS printer
    By janca in forum General Discussion
    Replies: 4
    Last Post: 20th March 2006, 22:11
  5. Where does VS save its inviornment vars?
    By high_flyer in forum Installation and Deployment
    Replies: 5
    Last Post: 4th February 2006, 10:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts