Results 1 to 3 of 3

Thread: QT_NO_PRINTER doesn't have effect

  1. #1
    Join Date
    Jul 2007
    Location
    Jundiai/SP, Brazil
    Posts
    114
    Thanks
    5
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question QT_NO_PRINTER doesn't have effect

    Hi,

    Someone knows because the macro QT_NO_PRINTER does not have effect in the Qt 4.6.
    Even though haven't a printer defined in the Window$ the routine is executed.

    i.e:
    Qt Code:
    1. #ifndef QT_NO_PRINTER
    2. // print text
    3. // this code always is performed even without definite printer
    4. #else
    5. // no printer definined
    6. #endif
    To copy to clipboard, switch view to plain text mode 

    Thanks in advance

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QT_NO_PRINTER doesn't have effect

    If it always prints text then you have compiled Qt with printer support. Check your configuration and recompile Qt from the sources.

  3. The following user says thank you to squidge for this useful post:

    vcp (12th February 2010)

  4. #3
    Join Date
    Jul 2007
    Location
    Jundiai/SP, Brazil
    Posts
    114
    Thanks
    5
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT_NO_PRINTER doesn't have effect

    I'm going to check this, but my compilation is to original from Qt 4.6.1 2010.01, but....

Similar Threads

  1. Problem stylesheet with effect
    By hakimingos in forum Qt Programming
    Replies: 0
    Last Post: 9th February 2010, 06:23
  2. What's effect of QT_BEGIN_NAMESPACE? Thanks
    By mihayinoviki in forum Qt Programming
    Replies: 10
    Last Post: 19th August 2009, 19:21
  3. mac os dialog effect?
    By 0xl33t in forum Newbie
    Replies: 5
    Last Post: 3rd August 2009, 17:05
  4. Help for 3D like Visual Effect.
    By AmolShinde_8 in forum Qt Programming
    Replies: 0
    Last Post: 6th October 2008, 15:25
  5. Help with a visual effect
    By SkripT in forum Qt Programming
    Replies: 25
    Last Post: 7th May 2006, 19:15

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.