Namespaces
Variants
Actions
(Difference between revisions)

About using of QPrint and QPrintDialog

Jump to: navigation, search
(Created page with 'Category:Qt '''When we use QPrinter and QPrintDialog,we'd better put them in the predefine.''' '''Such as''' <code> #ifndef QT_NO_PRINTER ... QPrinter printer(QPrinter::H…')
 
m (minor edit)
Line 1: Line 1:
 
[[Category:Qt]]
 
[[Category:Qt]]
 +
{{CodeSnippet
 +
|id=
 +
|platform= All Qt Supported
 +
|devices= Emulator / desktop / device
 +
|category=Qt
 +
|subcategory=
 +
|creationdate=28 November 2010
 +
|keywords=QPrint, QPrintDialog
 +
}}
 +
 
'''When we use QPrinter and QPrintDialog,we'd better put them in the predefine.'''
 
'''When we use QPrinter and QPrintDialog,we'd better put them in the predefine.'''
  
Line 19: Line 29:
 
</code>
 
</code>
  
'''or the compiling process will not be successed because of no printer support.'''
+
'''or the compiling process will not be successful  because of no printer support.'''

Revision as of 15:53, 29 November 2010

Article Metadata

Tested with
Devices(s): Emulator / desktop / device

Compatibility
Platform(s): All Qt Supported

Article
Keywords: QPrint, QPrintDialog
Created: (28 Nov 2010)
Last edited: jimgilmour1 (29 Nov 2010)

When we use QPrinter and QPrintDialog,we'd better put them in the predefine.

Such as

#ifndef QT_NO_PRINTER
 
...
 
QPrinter printer(QPrinter::HighResolution);
 
QPrintDialog dialog(&printer, this);
 
...
 
#endif

or the compiling process will not be successful because of no printer support.

755 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved