From bebf1c6db462b08309f111892ce83b7aebc6dd3f Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Sat, 3 Oct 2026 08:33:16 -0300
Subject: Replace zero pointer constants with nullptr
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
---
 pytqlupdate3/fetchtr.cpp                     |   6 +-
 pytqlupdate3/metatranslator.cpp              |  22 +--
 pytquic3/form.cpp                            |   4 +-
 pytquic3/globaldefs.h                        |   6 +-
 pytquic3/main.cpp                            |  10 +-
 pytquic3/uic.cpp                             |   2 +-
 pytquic3/uic.h                               |   6 +-
 pytquic3/widgetdatabase.cpp                  |  20 +--
 sip/tqt/tqaccel.sip                          |   4 +-
 sip/tqt/tqaction.sip                         |  12 +-
 sip/tqt/tqapplication.sip                    |  18 +-
 sip/tqt/tqassistantclient.sip                |   4 +-
 sip/tqt/tqbitmap.sip                         |   2 +-
 sip/tqt/tqbutton.sip                         |   2 +-
 sip/tqt/tqbuttongroup.sip                    |  12 +-
 sip/tqt/tqbytearray.sip                      |   2 +-
 sip/tqt/tqcdestyle.sip                       |   4 +-
 sip/tqt/tqcheckbox.sip                       |   4 +-
 sip/tqt/tqclipboard.sip                      |   2 +-
 sip/tqt/tqcolordialog.sip                    |  12 +-
 sip/tqt/tqcombobox.sip                       |   4 +-
 sip/tqt/tqcommonstyle.sip                    |  20 +--
 sip/tqt/tqcstring.sip                        |  34 ++--
 sip/tqt/tqdatetime.sip                       |   4 +-
 sip/tqt/tqdatetimeedit.sip                   |  14 +-
 sip/tqt/tqdesktopwidget.sip                  |   2 +-
 sip/tqt/tqdial.sip                           |   6 +-
 sip/tqt/tqdialog.sip                         |   2 +-
 sip/tqt/tqdir.sip                            |   4 +-
 sip/tqt/tqdockarea.sip                       |   4 +-
 sip/tqt/tqdockwindow.sip                     |   6 +-
 sip/tqt/tqdragobject.sip                     |  24 +--
 sip/tqt/tqdrawutil.sip                       |  20 +--
 sip/tqt/tqerrormessage.sip                   |   2 +-
 sip/tqt/tqevent.sip                          |   2 +-
 sip/tqt/tqeventloop.sip                      |   2 +-
 sip/tqt/tqfiledialog.sip                     |  20 +--
 sip/tqt/tqfontdialog.sip                     |  16 +-
 sip/tqt/tqfontmetrics.sip                    |   6 +-
 sip/tqt/tqframe.sip                          |   2 +-
 sip/tqt/tqgrid.sip                           |   4 +-
 sip/tqt/tqgridview.sip                       |   2 +-
 sip/tqt/tqgroupbox.sip                       |  14 +-
 sip/tqt/tqhbox.sip                           |   2 +-
 sip/tqt/tqhbuttongroup.sip                   |   4 +-
 sip/tqt/tqheader.sip                         |   4 +-
 sip/tqt/tqhgroupbox.sip                      |   4 +-
 sip/tqt/tqiconview.sip                       |   8 +-
 sip/tqt/tqimage.sip                          |  16 +-
 sip/tqt/tqinputdialog.sip                    |  44 ++---
 sip/tqt/tqinterlacestyle.sip                 |   6 +-
 sip/tqt/tqkeysequence.sip                    |   4 +-
 sip/tqt/tqlabel.sip                          |   6 +-
 sip/tqt/tqlayout.sip                         |  30 ++--
 sip/tqt/tqlcdnumber.sip                      |   4 +-
 sip/tqt/tqlineedit.sip                       |   6 +-
 sip/tqt/tqlistbox.sip                        |   4 +-
 sip/tqt/tqlistview.sip                       |   2 +-
 sip/tqt/tqlocale.sip                         |  36 ++--
 sip/tqt/tqmainwindow.sip                     |   2 +-
 sip/tqt/tqmenubar.sip                        |   2 +-
 sip/tqt/tqmenudata.sip                       |   2 +-
 sip/tqt/tqmessagebox.sip                     |   4 +-
 sip/tqt/tqmetaobject.sip                     |   6 +-
 sip/tqt/tqmotifplusstyle.sip                 |  10 +-
 sip/tqt/tqmotifstyle.sip                     |  14 +-
 sip/tqt/tqmultilinedit.sip                   |   2 +-
 sip/tqt/tqobject.sip                         | 236 +++++++++++++--------------
 sip/tqt/tqobjectlist.sip                     |   4 +-
 sip/tqt/tqpainter.sip                        |  16 +-
 sip/tqt/tqpicture.sip                        |   8 +-
 sip/tqt/tqpixmap.sip                         |  10 +-
 sip/tqt/tqplatinumstyle.sip                  |   8 +-
 sip/tqt/tqpopupmenu.sip                      |   2 +-
 sip/tqt/tqprintdialog.sip                    |   4 +-
 sip/tqt/tqprinter.sip                        |   2 +-
 sip/tqt/tqprocess.sip                        |  16 +-
 sip/tqt/tqprogressbar.sip                    |   4 +-
 sip/tqt/tqprogressdialog.sip                 |   4 +-
 sip/tqt/tqptrlist.sip                        |   2 +-
 sip/tqt/tqpushbutton.sip                     |   6 +-
 sip/tqt/tqradiobutton.sip                    |   4 +-
 sip/tqt/tqregexp.sip                         |   4 +-
 sip/tqt/tqscrollbar.sip                      |   6 +-
 sip/tqt/tqscrollview.sip                     |   2 +-
 sip/tqt/tqsettings.sip                       |  24 +--
 sip/tqt/tqsgistyle.sip                       |  10 +-
 sip/tqt/tqsignalmapper.sip                   |   2 +-
 sip/tqt/tqsimplerichtext.sip                 |   4 +-
 sip/tqt/tqsizegrip.sip                       |   2 +-
 sip/tqt/tqslider.sip                         |   6 +-
 sip/tqt/tqsocketnotifier.sip                 |   2 +-
 sip/tqt/tqsound.sip                          |   2 +-
 sip/tqt/tqspinbox.sip                        |   4 +-
 sip/tqt/tqsplitter.sip                       |   4 +-
 sip/tqt/tqstatusbar.sip                      |   2 +-
 sip/tqt/tqstring.sip                         |  42 ++---
 sip/tqt/tqstyle.sip                          |  36 ++--
 sip/tqt/tqstylesheet.sip                     |   2 +-
 sip/tqt/tqtabbar.sip                         |   4 +-
 sip/tqt/tqtabdialog.sip                      |   2 +-
 sip/tqt/tqtabwidget.sip                      |   2 +-
 sip/tqt/tqtextbrowser.sip                    |   2 +-
 sip/tqt/tqtextedit.sip                       |  12 +-
 sip/tqt/tqtextview.sip                       |   4 +-
 sip/tqt/tqtimer.sip                          |   2 +-
 sip/tqt/tqtoolbar.sip                        |   6 +-
 sip/tqt/tqtoolbox.sip                        |   2 +-
 sip/tqt/tqtoolbutton.sip                     |   6 +-
 sip/tqt/tqtooltip.sip                        |   4 +-
 sip/tqt/tqtranslator.sip                     |   6 +-
 sip/tqt/tqurloperator.sip                    |   2 +-
 sip/tqt/tqvalidator.sip                      |  14 +-
 sip/tqt/tqvaluelist.sip                      |   2 +-
 sip/tqt/tqvariant.sip                        |   4 +-
 sip/tqt/tqvbox.sip                           |   2 +-
 sip/tqt/tqvbuttongroup.sip                   |   4 +-
 sip/tqt/tqvgroupbox.sip                      |   4 +-
 sip/tqt/tqwhatsthis.sip                      |   4 +-
 sip/tqt/tqwidget.sip                         |   4 +-
 sip/tqt/tqwidgetlist.sip                     |   4 +-
 sip/tqt/tqwidgetstack.sip                    |   2 +-
 sip/tqt/tqwindowsstyle.sip                   |  12 +-
 sip/tqt/tqwizard.sip                         |   2 +-
 sip/tqt/tqwmatrix.sip                        |   4 +-
 sip/tqt/tqworkspace.sip                      |   2 +-
 sip/tqtaxcontainer/tqaxbase.sip              |   2 +-
 sip/tqtaxcontainer/tqaxobject.sip            |   4 +-
 sip/tqtaxcontainer/tqaxwidget.sip            |   4 +-
 sip/tqtcanvas/tqcanvas.sip                   |   6 +-
 sip/tqtext/tqextscintilla.sip                |   8 +-
 sip/tqtext/tqextscintillalexer.sip           |   2 +-
 sip/tqtext/tqextscintillalexerbash.sip       |   2 +-
 sip/tqtext/tqextscintillalexerbatch.sip      |   2 +-
 sip/tqtext/tqextscintillalexercpp.sip        |   2 +-
 sip/tqtext/tqextscintillalexercsharp.sip     |   4 +-
 sip/tqtext/tqextscintillalexercss.sip        |   2 +-
 sip/tqtext/tqextscintillalexerdiff.sip       |   2 +-
 sip/tqtext/tqextscintillalexerhtml.sip       |   2 +-
 sip/tqtext/tqextscintillalexeridl.sip        |   2 +-
 sip/tqtext/tqextscintillalexerjava.sip       |   2 +-
 sip/tqtext/tqextscintillalexerjavascript.sip |   4 +-
 sip/tqtext/tqextscintillalexerlua.sip        |   2 +-
 sip/tqtext/tqextscintillalexermakefile.sip   |   2 +-
 sip/tqtext/tqextscintillalexerperl.sip       |   2 +-
 sip/tqtext/tqextscintillalexerpov.sip        |   2 +-
 sip/tqtext/tqextscintillalexerproperties.sip |   2 +-
 sip/tqtext/tqextscintillalexerpython.sip     |   4 +-
 sip/tqtext/tqextscintillalexerruby.sip       |   2 +-
 sip/tqtext/tqextscintillalexersql.sip        |   2 +-
 sip/tqtext/tqextscintillalexertex.sip        |   2 +-
 sip/tqtext/tqextscintillamacro.sip           |   4 +-
 sip/tqtgl/tqgl.sip                           |  16 +-
 sip/tqtnetwork/tqftp.sip                     |   4 +-
 sip/tqtnetwork/tqhttp.sip                    |  18 +-
 sip/tqtnetwork/tqserversocket.sip            |   8 +-
 sip/tqtnetwork/tqsocket.sip                  |   2 +-
 sip/tqtpe/tqpeapplication.sip                |   2 +-
 sip/tqtpe/tqpemenubar.sip                    |   2 +-
 sip/tqtpe/tqpemenubutton.sip                 |   4 +-
 sip/tqtpe/tqpetoolbar.sip                    |   2 +-
 sip/tqtsql/tqdatabrowser.sip                 |   2 +-
 sip/tqtsql/tqdatatable.sip                   |   8 +-
 sip/tqtsql/tqdataview.sip                    |   2 +-
 sip/tqtsql/tqeditorfactory.sip               |   2 +-
 sip/tqtsql/tqsqlcursor.sip                   |   2 +-
 sip/tqtsql/tqsqldatabase.sip                 |   6 +-
 sip/tqtsql/tqsqldriver.sip                   |   2 +-
 sip/tqtsql/tqsqleditorfactory.sip            |   2 +-
 sip/tqtsql/tqsqlform.sip                     |   2 +-
 sip/tqtsql/tqsqlquery.sip                    |   2 +-
 sip/tqtsql/tqsqlselectcursor.sip             |   2 +-
 sip/tqttable/tqtable.sip                     |   4 +-
 sip/tqtui/tqwidgetfactory.sip                |  12 +-
 sip/tqtxml/tqdom.sip                         |  58 +++----
 175 files changed, 713 insertions(+), 713 deletions(-)

diff --git a/pytqlupdate3/fetchtr.cpp b/pytqlupdate3/fetchtr.cpp
index 9c66a2f..052de5f 100644
--- a/pytqlupdate3/fetchtr.cpp
+++ b/pytqlupdate3/fetchtr.cpp
@@ -245,7 +245,7 @@ static int getToken()
                             } else {
                                 const char *p = strchr( tab, yyCh );
                                 if ( yyStringLen < sizeof(yyString) - 1 )
-                                    yyString[yyStringLen++] = ( p == 0 ) ?
+                                    yyString[yyStringLen++] = ( !p ) ?
                                         (char) yyCh : backTab[p - tab];
                                 yyCh = getChar();
                             }
@@ -439,7 +439,7 @@ void fetchtr_py( const char *fileName, MetaTranslator *tor,
           const char *defaultContext, bool mustExist )
 {
     yyInFile = fopen( fileName, "r" );
-    if ( yyInFile == 0 ) {
+    if (!yyInFile ) {
         if ( mustExist )
             tqWarning( "pytqlupdate error: cannot open Python source file '%s': %s",
               fileName, strerror(errno) );
@@ -447,6 +447,6 @@ void fetchtr_py( const char *fileName, MetaTranslator *tor,
     }
 
     startTokenizer( fileName, getCharFromFile, peekCharFromFile );
-    parse( tor, 0, defaultContext );
+    parse( tor, nullptr, defaultContext );
     fclose( yyInFile );
 }
diff --git a/pytqlupdate3/metatranslator.cpp b/pytqlupdate3/metatranslator.cpp
index 62a5386..9c7bbdb 100644
--- a/pytqlupdate3/metatranslator.cpp
+++ b/pytqlupdate3/metatranslator.cpp
@@ -83,7 +83,7 @@ bool TsHandler::startElement( const TQString& /* namespaceURI */,
 		    base = 16;
 		    value = value.mid( 1 );
 		}
-		int n = value.toUInt( 0, base );
+		int n = value.toUInt( nullptr, base );
 		if ( n != 0 )
 		    accum += TQChar( n );
 	    }
@@ -174,7 +174,7 @@ bool TsHandler::fatalError( const TQXmlParseException& exception )
 	msg.sprintf( "Parse error at line %d, column %d (%s).",
 		     exception.lineNumber(), exception.columnNumber(),
 		     exception.message().utf8().data() );
-	if ( tqApp == 0 )
+	if (!tqApp )
 	    tqWarning( "XML error: %s", msg.local8Bit().data() );
 	else
 	    TQMessageBox::information( tqApp->mainWidget(),
@@ -257,7 +257,7 @@ MetaTranslatorMessage::MetaTranslatorMessage( const char *context,
       non-Latin-1) characters in .ui files.
     */
     if ( utf8 ) {
-	if ( sourceText != 0 ) {
+	if ( sourceText ) {
 	    int i = 0;
 	    while ( sourceText[i] != '\0' ) {
 		if ( (uchar) sourceText[i] >= 0x80 ) {
@@ -267,7 +267,7 @@ MetaTranslatorMessage::MetaTranslatorMessage( const char *context,
 		i++;
 	    }
 	}
-	if ( !utfeight && comment != 0 ) {
+	if ( !utfeight && comment ) {
 	    int i = 0;
 	    while ( comment[i] != '\0' ) {
 		if ( (uchar) comment[i] >= 0x80 ) {
@@ -312,7 +312,7 @@ bool MetaTranslatorMessage::operator<( const MetaTranslatorMessage& m ) const
 }
 
 MetaTranslator::MetaTranslator()
-    : codecName( "ISO-8859-1" ), codec( 0 )
+    : codecName( "ISO-8859-1" ), codec( nullptr )
 {
 }
 
@@ -351,8 +351,8 @@ bool MetaTranslator::load( const TQString& filename )
     reader.setErrorHandler( hand );
 
     bool ok = reader.parse( in );
-    reader.setContentHandler( 0 );
-    reader.setErrorHandler( 0 );
+    reader.setContentHandler( nullptr );
+    reader.setErrorHandler( nullptr );
     delete hand;
     f.close();
     if ( !ok )
@@ -431,7 +431,7 @@ bool MetaTranslator::save( const TQString& filename ) const
 
 bool MetaTranslator::release( const TQString& filename, bool verbose ) const
 {
-    TQTranslator tor( 0 );
+    TQTranslator tor( nullptr );
     int finished = 0;
     int unfinished = 0;
     int untranslated = 0;
@@ -515,15 +515,15 @@ void MetaTranslator::setCodec( const char *name )
 
     codecName = name;
     codec = TQTextCodec::codecForName( name );
-    if ( codec == 0 || codec->mibEnum() == latin1 )
-	codec = 0;
+    if (!codec || codec->mibEnum() == latin1 )
+	codec = nullptr;
 }
 
 TQString MetaTranslator::toUnicode( const char *str, bool utf8 ) const
 {
     if ( utf8 )
 	return TQString::fromUtf8( str );
-    else if ( codec == 0 )
+    else if (!codec )
 	return TQString( str );
     else
 	return codec->toUnicode( str );
diff --git a/pytquic3/form.cpp b/pytquic3/form.cpp
index 148bdae..a17bf87 100644
--- a/pytquic3/form.cpp
+++ b/pytquic3/form.cpp
@@ -281,8 +281,8 @@ void Uic::createFormImpl( const TQDomElement &e )
 
     // find out what images are required
     TQStringList requiredImages;
-    static const char *imgTags[] = { "pixmap", "iconset", 0 };
-    for ( i = 0; imgTags[i] != 0; i++ ) {
+    static const char *imgTags[] = { "pixmap", "iconset", nullptr };
+    for ( i = 0; imgTags[i]; i++ ) {
 	nl = e.parentNode().toElement().elementsByTagName( imgTags[i] );
 	for ( int j = 0; j < (int) nl.length(); j++ ) {
 	    TQDomNode nn = nl.item(j);
diff --git a/pytquic3/globaldefs.h b/pytquic3/globaldefs.h
index 4704ff9..a8b687a 100644
--- a/pytquic3/globaldefs.h
+++ b/pytquic3/globaldefs.h
@@ -28,9 +28,9 @@
 #define BOXLAYOUT_DEFAULT_SPACING 6
 
 #ifndef NO_STATIC_COLORS
-static TQColor *backColor1 = 0;
-static TQColor *backColor2 = 0;
-static TQColor *selectedBack = 0;
+static TQColor *backColor1 = nullptr;
+static TQColor *backColor2 = nullptr;
+static TQColor *selectedBack = nullptr;
 
 static void init_colors()
 {
diff --git a/pytquic3/main.cpp b/pytquic3/main.cpp
index 9c463e4..8ee641e 100644
--- a/pytquic3/main.cpp
+++ b/pytquic3/main.cpp
@@ -40,16 +40,16 @@ int main( int argc, char * argv[] )
     bool subcl = false;
     bool imagecollection = false;
     TQStringList images;
-    const char *error = 0;
-    const char* fileName = 0;
+    const char *error = nullptr;
+    const char* fileName = nullptr;
     TQCString outputFile;
-    const char* projectName = 0;
-    const char* trmacro = 0;
+    const char* projectName = nullptr;
+    const char* trmacro = nullptr;
     bool fix = false;
     TQApplication app(argc, argv, false);
     TQString className, uicClass;
 
-    for ( int n = 1; n < argc && error == 0; n++ ) {
+    for ( int n = 1; n < argc && !error; n++ ) {
 	TQCString arg = argv[n];
 	if ( arg[0] == '-' ) {			// option
 	    TQCString opt = &arg[1];
diff --git a/pytquic3/uic.cpp b/pytquic3/uic.cpp
index 067aacc..cb2ccf6 100644
--- a/pytquic3/uic.cpp
+++ b/pytquic3/uic.cpp
@@ -936,7 +936,7 @@ TQString Uic::createSpacerImpl( const TQDomElement &e, const TQString& /*parentC
 static const char* const ColorRole[] = {
     "Foreground", "Button", "Light", "Midlight", "Dark", "Mid",
     "Text", "BrightText", "ButtonText", "Base", "Background", "Shadow",
-    "Highlight", "HighlightedText", "Link", "LinkVisited", 0
+    "Highlight", "HighlightedText", "Link", "LinkVisited", nullptr
 };
 
 
diff --git a/pytquic3/uic.h b/pytquic3/uic.h
index 6e62b10..ff9e658 100644
--- a/pytquic3/uic.h
+++ b/pytquic3/uic.h
@@ -75,10 +75,10 @@ public:
     TQString createObjectInstance( const TQString& objClass, const TQString& parent, const TQString& objName );
     TQString createSpacerImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& layout = TQString::null );
     void createExclusiveProperty( const TQDomElement & e, const TQString& exclusiveProp );
-    TQString createListBoxItemImpl( const TQDomElement &e, const TQString &parent, TQString *value = 0 );
+    TQString createListBoxItemImpl( const TQDomElement &e, const TQString &parent, TQString *value = nullptr );
     TQString createIconViewItemImpl( const TQDomElement &e, const TQString &parent );
-    TQString createListViewColumnImpl( const TQDomElement &e, const TQString &parent, TQString *value = 0 );
-    TQString createTableRowColumnImpl( const TQDomElement &e, const TQString &parent, TQString *value = 0 );
+    TQString createListViewColumnImpl( const TQDomElement &e, const TQString &parent, TQString *value = nullptr );
+    TQString createTableRowColumnImpl( const TQDomElement &e, const TQString &parent, TQString *value = nullptr );
     TQString createListViewItemImpl( const TQDomElement &e, const TQString &parent,
 				    const TQString &parentItem );
     void createColorGroupImpl( const TQString& cg, const TQDomElement& e );
diff --git a/pytquic3/widgetdatabase.cpp b/pytquic3/widgetdatabase.cpp
index eb7df1e..3f6d5a4 100644
--- a/pytquic3/widgetdatabase.cpp
+++ b/pytquic3/widgetdatabase.cpp
@@ -43,13 +43,13 @@ const int dbsize = 300;
 const int dbcustom = 200;
 const int dbdictsize = 211;
 static WidgetDatabaseRecord* db[ dbsize ];
-static TQDict<int> *className2Id = 0;
+static TQDict<int> *className2Id = nullptr;
 static int dbcount  = 0;
 static int dbcustomcount = 200;
 static TQStrList *wGroups;
 static TQStrList *invisibleGroups;
 static bool whatsThisLoaded = false;
-static TQPluginManager<WidgetInterface> *widgetPluginManager = 0;
+static TQPluginManager<WidgetInterface> *widgetPluginManager = nullptr;
 static bool plugins_set_up = false;
 static bool was_in_setup = false;
 
@@ -59,7 +59,7 @@ WidgetDatabaseRecord::WidgetDatabaseRecord()
 {
     isForm = false;
     isContainer = false;
-    icon = 0;
+    icon = nullptr;
     nameCounter = 0;
     isCommon = false;
     isPlugin = false;
@@ -124,7 +124,7 @@ void WidgetDatabase::setupDataBase( int id )
     className2Id = new TQDict<int>( dbdictsize );
     className2Id->setAutoDelete( true );
 
-    WidgetDatabaseRecord *r = 0;
+    WidgetDatabaseRecord *r = nullptr;
 
     r = new WidgetDatabaseRecord;
     r->iconSet = "designer_pushbutton.png";
@@ -580,7 +580,7 @@ void WidgetDatabase::setupPlugins()
 	if ( hasWidget( *it ) )
 	    continue;
 	WidgetDatabaseRecord *r = new WidgetDatabaseRecord;
-	WidgetInterface *iface = 0;
+	WidgetInterface *iface = nullptr;
 	widgetManager()->queryInterface( *it, &iface );
 	if ( !iface )
 	    continue;
@@ -792,18 +792,18 @@ int WidgetDatabase::idFromClassName( const TQString &name )
 
 bool WidgetDatabase::hasWidget( const TQString &name )
 {
-    return className2Id->find( name ) != 0;
+    return className2Id->find( name ) != nullptr;
 }
 
 WidgetDatabaseRecord *WidgetDatabase::at( int index )
 {
     if ( index < 0 )
-	return 0;
+	return nullptr;
     if ( index >= dbcustom && index < dbcustomcount )
 	return db[ index ];
     if ( index < dbcount )
 	return db[ index ];
-    return 0;
+    return nullptr;
 }
 
 void WidgetDatabase::insert( int index, WidgetDatabaseRecord *r )
@@ -832,7 +832,7 @@ TQString WidgetDatabase::widgetGroup( const TQString &g )
 
 bool WidgetDatabase::isGroupEmpty( const TQString &grp )
 {
-    WidgetDatabaseRecord *r = 0;
+    WidgetDatabaseRecord *r = nullptr;
     for ( int i = 0; i < dbcount; ++i ) {
 	if ( !( r = db[ i ] ) )
 	    continue;
@@ -923,7 +923,7 @@ void WidgetDatabase::loadWhatsThis( const TQString &docPath )
 // ### TQt 3.1: make these publically accessible via TQWidgetDatabase API
 #if defined(UIC)
 bool dbnounload = false;
-TQStringList *dbpaths = 0;
+TQStringList *dbpaths = nullptr;
 #else
 extern TQString *qwf_plugin_dir;
 #endif
diff --git a/sip/tqt/tqaccel.sip b/sip/tqt/tqaccel.sip
index a10a9b9..02a5114 100644
--- a/sip/tqt/tqaccel.sip
+++ b/sip/tqt/tqaccel.sip
@@ -36,8 +36,8 @@ class TQAccel : TQObject
 %End
 
 public:
-	TQAccel(TQWidget * /TransferThis/,char * = 0);
-	TQAccel(TQWidget *,TQObject * /TransferThis/,char * = 0);
+	TQAccel(TQWidget * /TransferThis/,char * = nullptr);
+	TQAccel(TQWidget *,TQObject * /TransferThis/,char * = nullptr);
 
 	bool isEnabled();
 	void setEnabled(bool);
diff --git a/sip/tqt/tqaction.sip b/sip/tqt/tqaction.sip
index f74ca72..3656939 100644
--- a/sip/tqt/tqaction.sip
+++ b/sip/tqt/tqaction.sip
@@ -44,17 +44,17 @@ class TQAction : TQObject
 %End
 
 public:
-	TQAction(TQObject * /TransferThis/,const char * = 0);
+	TQAction(TQObject * /TransferThis/,const char * = nullptr);
 	TQAction(const TQString &,TQKeySequence,TQObject * /TransferThis/,
-		const char * = 0);
+		const char * = nullptr);
 	TQAction(const TQIconSet &,const TQString &,TQKeySequence,
-		TQObject * /TransferThis/,const char * = 0);
+		TQObject * /TransferThis/,const char * = nullptr);
 	// Obsolete.
 	TQAction(const TQString &,const TQIconSet &,const TQString &,TQKeySequence,
-		TQObject * /TransferThis/,const char * = 0,bool = 0);
+		TQObject * /TransferThis/,const char * = nullptr,bool = 0);
 	// Obsolete.
 	TQAction(const TQString &,const TQString &,TQKeySequence,
-		TQObject * /TransferThis/,const char * = 0,bool = 0);
+		TQObject * /TransferThis/,const char * = nullptr,bool = 0);
 	// Obsolete.
 	TQAction(TQObject * /TransferThis/,const char *,bool);
 
@@ -108,7 +108,7 @@ class TQActionGroup : TQAction
 %End
 
 public:
-	TQActionGroup(TQObject * /TransferThis/,const char * = 0);
+	TQActionGroup(TQObject * /TransferThis/,const char * = nullptr);
 	// Obsolete.
 	TQActionGroup(TQObject * /TransferThis/,const char *,bool);
 
diff --git a/sip/tqt/tqapplication.sip b/sip/tqt/tqapplication.sip
index 20ae838..b70a6a7 100644
--- a/sip/tqt/tqapplication.sip
+++ b/sip/tqt/tqapplication.sip
@@ -186,7 +186,7 @@ public:
 		TQWidgetListIt it(*tlw);
 		TQWidget *w;
 
-		while ((w = it.current()) != 0)
+		while ((w = it.current()) != nullptr)
 		{
 			PyObject *sw;
 
@@ -237,10 +237,10 @@ public:
 	static void restoreOverrideCursor();
 	static bool hasGlobalMouseTracking();
 	static void setGlobalMouseTracking(bool);
-	static TQPalette palette(const TQWidget * = 0);
-	static void setPalette(TQPalette &,bool = 0,const char * = 0);
-	static TQFont font(const TQWidget * = 0);
-	static void setFont(const TQFont &,bool = 0,const char * = 0);
+	static TQPalette palette(const TQWidget * = nullptr);
+	static void setPalette(TQPalette &,bool = 0,const char * = nullptr);
+	static TQFont font(const TQWidget * = nullptr);
+	static void setFont(const TQFont &,bool = 0,const char * = nullptr);
 	static TQFontMetrics fontMetrics();
 	TQWidget *mainWidget() const;
 	virtual void setMainWidget(TQWidget *);
@@ -290,7 +290,7 @@ public:
 		UnicodeUTF8
 	};
 
-	TQString translate(const char *,const char *,const char * = 0,
+	TQString translate(const char *,const char *,const char * = nullptr,
 			  Encoding = DefaultCodec) const;
 	TQString applicationDirPath();
 	TQString applicationFilePath();
@@ -424,7 +424,7 @@ SIP_PYCALLABLE qInstallMsgHandler(SIP_PYCALLABLE /AllowNone/);
 	void (*old)(TQtMsgType, const char *);
 
 	// Treat None as the default handler.
-	old = qInstallMsgHandler((a0 != Py_None) ? pytqtMsgHandler : 0);
+	old = qInstallMsgHandler((a0 != Py_None) ? pytqtMsgHandler : nullptr);
 
 	// If we recognise the old handler, then return it.  Otherwise return
 	// the default handler.  This doesn't exactly mimic the TQt behaviour
@@ -440,7 +440,7 @@ SIP_PYCALLABLE qInstallMsgHandler(SIP_PYCALLABLE /AllowNone/);
 
 %ModuleCode
 // The user supplied Python handler.
-static PyObject *pytqtPyMsgHandler = 0;
+static PyObject *pytqtPyMsgHandler = nullptr;
 
 // The C++ wrapper around the Python handler.
 static void pytqtMsgHandler(TQtMsgType type, const char *msg)
@@ -449,7 +449,7 @@ static void pytqtMsgHandler(TQtMsgType type, const char *msg)
 
 	SIP_BLOCK_THREADS
 
-	res = sipCallMethod(0, pytqtPyMsgHandler, "Es", type, sipEnum_TQtMsgType, msg);
+	res = sipCallMethod(nullptr, pytqtPyMsgHandler, "Es", type, sipEnum_TQtMsgType, msg);
 
 	Py_XDECREF(res);
 
diff --git a/sip/tqt/tqassistantclient.sip b/sip/tqt/tqassistantclient.sip
index 3815962..1cfea6f 100644
--- a/sip/tqt/tqassistantclient.sip
+++ b/sip/tqt/tqassistantclient.sip
@@ -38,8 +38,8 @@ class TQAssistantClient : TQObject
 %End
 
 public:
-	TQAssistantClient(const TQString &,TQObject * /TransferThis/ = 0,
-			 const char * = 0);
+	TQAssistantClient(const TQString &,TQObject * /TransferThis/ = nullptr,
+			 const char * = nullptr);
 
 	bool isOpen() const;
 
diff --git a/sip/tqt/tqbitmap.sip b/sip/tqt/tqbitmap.sip
index 3b499ba..32e80a4 100644
--- a/sip/tqt/tqbitmap.sip
+++ b/sip/tqt/tqbitmap.sip
@@ -42,7 +42,7 @@ public:
 	TQBitmap(int,int,uchar *,bool = 0);
 	TQBitmap(const TQSize &,uchar *,bool = 0);
 	TQBitmap(const TQBitmap &);
-	TQBitmap(const TQString &,const char * = 0);
+	TQBitmap(const TQString &,const char * = nullptr);
 
 	TQBitmap xForm(const TQWMatrix &) const;
 };
diff --git a/sip/tqt/tqbutton.sip b/sip/tqt/tqbutton.sip
index 47c475f..e9502fc 100644
--- a/sip/tqt/tqbutton.sip
+++ b/sip/tqt/tqbutton.sip
@@ -36,7 +36,7 @@ class TQButton : TQWidget
 %End
 
 public:
-	TQButton(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+	TQButton(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,WFlags = 0);
 
 	TQString text() const;
 	virtual void setText(const TQString &);
diff --git a/sip/tqt/tqbuttongroup.sip b/sip/tqt/tqbuttongroup.sip
index 74fae53..b43dc7b 100644
--- a/sip/tqt/tqbuttongroup.sip
+++ b/sip/tqt/tqbuttongroup.sip
@@ -37,13 +37,13 @@ class TQButtonGroup : TQGroupBox
 %End
 
 public:
-	TQButtonGroup(TQWidget * /TransferThis/ = 0,const char * = 0);
-	TQButtonGroup(const TQString &,TQWidget * /TransferThis/ = 0,
-		     const char * = 0);
-	TQButtonGroup(int,Orientation,TQWidget * /TransferThis/ = 0,
-		     const char * = 0);
+	TQButtonGroup(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
+	TQButtonGroup(const TQString &,TQWidget * /TransferThis/ = nullptr,
+		     const char * = nullptr);
+	TQButtonGroup(int,Orientation,TQWidget * /TransferThis/ = nullptr,
+		     const char * = nullptr);
 	TQButtonGroup(int,Orientation,const TQString &,
-		     TQWidget * /TransferThis/ = 0,const char * = 0);
+		     TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	bool isExclusive() const;
 	bool isRadioButtonExclusive() const;
diff --git a/sip/tqt/tqbytearray.sip b/sip/tqt/tqbytearray.sip
index 5053283..53516cd 100644
--- a/sip/tqt/tqbytearray.sip
+++ b/sip/tqt/tqbytearray.sip
@@ -227,7 +227,7 @@ public:
     		return sipGetState(sipTransferObj);
 	}
 
-	*sipCppPtr = reinterpret_cast<TQByteArray *>(sipConvertToInstance(sipPy,sipClass_TQByteArray,sipTransferObj,SIP_NO_CONVERTORS,0,sipIsErr));
+	*sipCppPtr = reinterpret_cast<TQByteArray *>(sipConvertToInstance(sipPy,sipClass_TQByteArray,sipTransferObj,SIP_NO_CONVERTORS,nullptr,sipIsErr));
 
 	return 0;
 %End
diff --git a/sip/tqt/tqcdestyle.sip b/sip/tqt/tqcdestyle.sip
index b11af4c..6f35fcf 100644
--- a/sip/tqt/tqcdestyle.sip
+++ b/sip/tqt/tqcdestyle.sip
@@ -40,12 +40,12 @@ class TQCDEStyle : TQMotifStyle
 public:
 	TQCDEStyle(bool = 0);
 
-	int pixelMetric(PixelMetric,const TQStyleControlElementData&,ControlElementFlags,const TQWidget * = 0) const;
+	int pixelMetric(PixelMetric,const TQStyleControlElementData&,ControlElementFlags,const TQWidget * = nullptr) const;
  
 	void drawControl(ControlElement,TQPainter *,const TQStyleControlElementData&,ControlElementFlags,
 			 const TQRect &,const TQColorGroup &,
 			 SFlags = Style_Default,
-			 const TQStyleOption & = TQStyleOption(),const TQWidget *=0) const;
+			 const TQStyleOption & = TQStyleOption(),const TQWidget * = nullptr) const;
  
 	void drawPrimitive(PrimitiveElement,TQPainter *,const TQStyleControlElementData&,ControlElementFlags,const TQRect &,
 			   const TQColorGroup &,SFlags = Style_Default,
diff --git a/sip/tqt/tqcheckbox.sip b/sip/tqt/tqcheckbox.sip
index 237a4b8..49923fe 100644
--- a/sip/tqt/tqcheckbox.sip
+++ b/sip/tqt/tqcheckbox.sip
@@ -36,8 +36,8 @@ class TQCheckBox : TQButton
 %End
 
 public:
-	TQCheckBox(TQWidget * /TransferThis/,const char * = 0);
-	TQCheckBox(const TQString &,TQWidget * /TransferThis/,const char * = 0);
+	TQCheckBox(TQWidget * /TransferThis/,const char * = nullptr);
+	TQCheckBox(const TQString &,TQWidget * /TransferThis/,const char * = nullptr);
 
 	bool isChecked() const;
 
diff --git a/sip/tqt/tqclipboard.sip b/sip/tqt/tqclipboard.sip
index 73057fa..3cc5316 100644
--- a/sip/tqt/tqclipboard.sip
+++ b/sip/tqt/tqclipboard.sip
@@ -51,7 +51,7 @@ class TQClipboard : TQObject
 %End
 
 private:
-	TQClipboard(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQClipboard(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 	~TQClipboard();
 
 public:
diff --git a/sip/tqt/tqcolordialog.sip b/sip/tqt/tqcolordialog.sip
index ff77210..0ca6cf3 100644
--- a/sip/tqt/tqcolordialog.sip
+++ b/sip/tqt/tqcolordialog.sip
@@ -26,8 +26,8 @@
 	<FuncDef>static TQRgb <Function>getRgba</Function></FuncDef>
 	<ParamDef>TQRgb <Parameter>initial</Parameter></ParamDef>
 	<ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
-	<ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
-	<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
+	<ParamDef>TQWidget *<Parameter>parent</Parameter> = nullptr</ParamDef>
+	<ParamDef>const char *<Parameter>name</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This takes the <Literal>initial</Literal>, <Literal>parent</Literal> and
@@ -47,16 +47,16 @@ class TQColorDialog : TQDialog
 %End
 
 public:
-	static TQColor getColor(const TQColor & = TQt::white,TQWidget * = 0,
-			       const char * = 0) /ReleaseGIL/;
-	static TQRgb getRgba(TQRgb,bool * = 0,TQWidget * = 0,const char * = 0) /ReleaseGIL/;
+	static TQColor getColor(const TQColor & = TQt::white,TQWidget * = nullptr,
+			       const char * = nullptr) /ReleaseGIL/;
+	static TQRgb getRgba(TQRgb,bool * = nullptr,TQWidget * = nullptr,const char * = nullptr) /ReleaseGIL/;
 	static int customCount();
 	static TQRgb customColor(int);
 	static void setCustomColor(int,TQRgb);
 	static void setStandardColor(int,TQRgb);
 
 private:
-	TQColorDialog(TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0);
+	TQColorDialog(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,bool = 0);
 	TQColorDialog(const TQColorDialog &);
 	~TQColorDialog();
 };
diff --git a/sip/tqt/tqcombobox.sip b/sip/tqt/tqcombobox.sip
index cc878ed..b81a862 100644
--- a/sip/tqt/tqcombobox.sip
+++ b/sip/tqt/tqcombobox.sip
@@ -36,8 +36,8 @@ class TQComboBox : TQWidget
 %End
 
 public:
-	TQComboBox(TQWidget * /TransferThis/ = 0,char * = 0);
-	TQComboBox(bool,TQWidget * /TransferThis/ = 0,char * = 0);
+	TQComboBox(TQWidget * /TransferThis/ = nullptr,char * = nullptr);
+	TQComboBox(bool,TQWidget * /TransferThis/ = nullptr,char * = nullptr);
 
 	int count() const;
 
diff --git a/sip/tqt/tqcommonstyle.sip b/sip/tqt/tqcommonstyle.sip
index 9eb4463..a0184f2 100644
--- a/sip/tqt/tqcommonstyle.sip
+++ b/sip/tqt/tqcommonstyle.sip
@@ -64,11 +64,11 @@ public:
 	void drawControl(ControlElement,TQPainter *,const TQStyleControlElementData&,ControlElementFlags,
 			 const TQRect &,const TQColorGroup &,
 			 SFlags = Style_Default,
-			 const TQStyleOption & = TQStyleOption(), const TQWidget *=0) const;
+			 const TQStyleOption & = TQStyleOption(), const TQWidget * = nullptr) const;
 
 	void drawControlMask(ControlElement,TQPainter *,const TQStyleControlElementData&,ControlElementFlags,
 			     const TQRect &,
-			     const TQStyleOption & = TQStyleOption(), const TQWidget *=0) const;
+			     const TQStyleOption & = TQStyleOption(), const TQWidget * = nullptr) const;
 
 	TQRect subRect(SubRect,const TQStyleControlElementData&, const ControlElementFlags,const TQWidget *) const;
 
@@ -76,29 +76,29 @@ public:
 				const TQRect &,const TQColorGroup &,
 				SFlags = Style_Default,SCFlags = SC_All,
 				SCFlags = SC_None,
-				const TQStyleOption & = TQStyleOption(),const TQWidget *=0) const;
+				const TQStyleOption & = TQStyleOption(),const TQWidget * = nullptr) const;
 
 	void drawComplexControlMask(ComplexControl,TQPainter *,const TQStyleControlElementData&,const ControlElementFlags,
 				    const TQRect &,
-				    const TQStyleOption & = TQStyleOption(), const TQWidget *=0) const;
+				    const TQStyleOption & = TQStyleOption(), const TQWidget * = nullptr) const;
 
 	TQRect querySubControlMetrics(ComplexControl,const TQStyleControlElementData&,ControlElementFlags,SubControl,
-				     const TQStyleOption & = TQStyleOption(), const TQWidget *=0) const;
+				     const TQStyleOption & = TQStyleOption(), const TQWidget * = nullptr) const;
 
 	SubControl querySubControl(ComplexControl,const TQStyleControlElementData&,ControlElementFlags,
 				   const TQPoint &,
-				   const TQStyleOption & = TQStyleOption(),const TQWidget *=0) const;
+				   const TQStyleOption & = TQStyleOption(),const TQWidget * = nullptr) const;
 
-	int pixelMetric(PixelMetric,const TQStyleControlElementData&,ControlElementFlags,const TQWidget * = 0) const;
+	int pixelMetric(PixelMetric,const TQStyleControlElementData&,ControlElementFlags,const TQWidget * = nullptr) const;
 
 	TQSize sizeFromContents(ContentsType,const TQStyleControlElementData&,ControlElementFlags,const TQSize &,
-			       const TQStyleOption & = TQStyleOption(),const TQWidget *=0) const;
+			       const TQStyleOption & = TQStyleOption(),const TQWidget * = nullptr) const;
 
 	int styleHint(StyleHint,const TQStyleControlElementData&,ControlElementFlags,const TQStyleOption &,
-		      TQStyleHintReturn *,const TQWidget *=0) const;
+		      TQStyleHintReturn *,const TQWidget * = nullptr) const;
 
 	TQPixmap stylePixmap(StylePixmap,const TQStyleControlElementData&,ControlElementFlags,
-			    const TQStyleOption & = TQStyleOption(), const TQWidget * = 0) const;
+			    const TQStyleOption & = TQStyleOption(), const TQWidget * = nullptr) const;
 
 private:
 	TQCommonStyle(const TQCommonStyle &);
diff --git a/sip/tqt/tqcstring.sip b/sip/tqt/tqcstring.sip
index 707d3a2..c747537 100644
--- a/sip/tqt/tqcstring.sip
+++ b/sip/tqt/tqcstring.sip
@@ -39,7 +39,7 @@ Not implemented.
 
 <FuncSynopsis>
 	<FuncDef>short <Function>toShort</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>short</Literal> result and the
@@ -48,7 +48,7 @@ This returns a tuple of the <Literal>short</Literal> result and the
 
 <FuncSynopsis>
 	<FuncDef>ushort <Function>toUShort</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>ushort</Literal> result and the
@@ -57,7 +57,7 @@ This returns a tuple of the <Literal>ushort</Literal> result and the
 
 <FuncSynopsis>
 	<FuncDef>int <Function>toInt</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>int</Literal> result and the
@@ -66,7 +66,7 @@ This returns a tuple of the <Literal>int</Literal> result and the
 
 <FuncSynopsis>
 	<FuncDef>uint <Function>toUInt</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>uint</Literal> result and the
@@ -75,7 +75,7 @@ This returns a tuple of the <Literal>uint</Literal> result and the
 
 <FuncSynopsis>
 	<FuncDef>long <Function>toLong</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>long</Literal> result and the
@@ -84,7 +84,7 @@ This returns a tuple of the <Literal>long</Literal> result and the
 
 <FuncSynopsis>
 	<FuncDef>ulong <Function>toULong</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>ulong</Literal> result and the
@@ -93,7 +93,7 @@ This returns a tuple of the <Literal>ulong</Literal> result and the
 
 <FuncSynopsis>
 	<FuncDef>float <Function>toFloat</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>float</Literal> result and the
@@ -102,7 +102,7 @@ This returns a tuple of the <Literal>float</Literal> result and the
 
 <FuncSynopsis>
 	<FuncDef>double <Function>toDouble</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>double</Literal> result and the
@@ -162,14 +162,14 @@ public:
 	TQCString &replace(const char *,const char *);
 //	TQCString &replace(char,char);
 
-	short toShort(bool * = 0) const;
-	ushort toUShort(bool * = 0) const;
-	int toInt(bool * = 0) const;
-	uint toUInt(bool * = 0) const;
-	long toLong(bool * = 0) const;
-	ulong toULong(bool * = 0) const;
-	float toFloat(bool * = 0) const;
-	double toDouble(bool * = 0) const;
+	short toShort(bool * = nullptr) const;
+	ushort toUShort(bool * = nullptr) const;
+	int toInt(bool * = nullptr) const;
+	uint toUInt(bool * = nullptr) const;
+	long toLong(bool * = nullptr) const;
+	ulong toULong(bool * = nullptr) const;
+	float toFloat(bool * = nullptr) const;
+	double toDouble(bool * = nullptr) const;
 
 	TQCString &setStr(const char *);
 //	TQCString &setNum(short);
@@ -210,7 +210,7 @@ public:
 		return sipGetState(sipTransferObj);
 	}
 
-	*sipCppPtr = reinterpret_cast<TQCString *>(sipConvertToInstance(sipPy,sipClass_TQCString,sipTransferObj,SIP_NO_CONVERTORS,0,sipIsErr));
+	*sipCppPtr = reinterpret_cast<TQCString *>(sipConvertToInstance(sipPy,sipClass_TQCString,sipTransferObj,SIP_NO_CONVERTORS,nullptr,sipIsErr));
 
 	return 0;
 %End
diff --git a/sip/tqt/tqdatetime.sip b/sip/tqt/tqdatetime.sip
index 3df731d..c05656b 100644
--- a/sip/tqt/tqdatetime.sip
+++ b/sip/tqt/tqdatetime.sip
@@ -33,7 +33,7 @@ operators are supported.
 
 <FuncSynopsis>
 	<FuncDef>int <Function>weekNumber</Function></FuncDef>
-	<ParamDef>int *<Parameter>yearNum</Parameter> = 0</ParamDef>
+	<ParamDef>int *<Parameter>yearNum</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This takes no parameters and returns the week number and the year number as a
@@ -86,7 +86,7 @@ public:
 	int daysInMonth() const;
 	int daysInYear() const;
 
-	int weekNumber(int * = 0) const;
+	int weekNumber(int * = nullptr) const;
 
 	static TQString shortMonthName(int);
 	static TQString shortDayName(int);
diff --git a/sip/tqt/tqdatetimeedit.sip b/sip/tqt/tqdatetimeedit.sip
index c32fcef..f4f1012 100644
--- a/sip/tqt/tqdatetimeedit.sip
+++ b/sip/tqt/tqdatetimeedit.sip
@@ -52,8 +52,8 @@ class TQDateEdit : TQWidget
 %End
 
 public:
-	TQDateEdit(TQWidget * /TransferThis/ = 0,const char * = 0);
-	TQDateEdit(const TQDate &,TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQDateEdit(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
+	TQDateEdit(const TQDate &,TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	enum Order {
 		DMY,
@@ -128,8 +128,8 @@ public:
 		AMPM
 	};
 
-	TQTimeEdit(TQWidget * /TransferThis/ = 0,const char * = 0);
-	TQTimeEdit(const TQTime &,TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQTimeEdit(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
+	TQTimeEdit(const TQTime &,TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	TQSize sizeHint() const;
 	TQSize minimumSizeHint() const;
@@ -187,9 +187,9 @@ class TQDateTimeEdit : TQWidget
 %End
 
 public:
-	TQDateTimeEdit(TQWidget * /TransferThis/ = 0,const char * = 0);
-	TQDateTimeEdit(const TQDateTime &,TQWidget * /TransferThis/ = 0,
-		      const char * = 0);
+	TQDateTimeEdit(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
+	TQDateTimeEdit(const TQDateTime &,TQWidget * /TransferThis/ = nullptr,
+		      const char * = nullptr);
 
 	TQSize sizeHint() const;
 	TQSize minimumSizeHint() const;
diff --git a/sip/tqt/tqdesktopwidget.sip b/sip/tqt/tqdesktopwidget.sip
index ff8a3fa..5b54e81 100644
--- a/sip/tqt/tqdesktopwidget.sip
+++ b/sip/tqt/tqdesktopwidget.sip
@@ -43,7 +43,7 @@ public:
 	int numScreens() const;
 	int primaryScreen() const;
 
-	int screenNumber(TQWidget * = 0) const;
+	int screenNumber(TQWidget * = nullptr) const;
 	int screenNumber(const TQPoint &) const;
 
 	TQWidget *screen(int = -1);
diff --git a/sip/tqt/tqdial.sip b/sip/tqt/tqdial.sip
index d0f8913..45ba899 100644
--- a/sip/tqt/tqdial.sip
+++ b/sip/tqt/tqdial.sip
@@ -38,8 +38,8 @@ class TQDial : TQWidget, TQRangeControl
 %End
 
 public:
-	TQDial(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
-	TQDial(int,int,int,int,TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQDial(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,WFlags = 0);
+	TQDial(int,int,int,int,TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	bool tracking() const;
 
@@ -96,7 +96,7 @@ protected:
 	void valueChange();
 	void rangeChange();
 
-	virtual void repaintScreen(const TQRect * = 0);
+	virtual void repaintScreen(const TQRect * = nullptr);
 
 private:
 	TQDial(const TQDial &);
diff --git a/sip/tqt/tqdialog.sip b/sip/tqt/tqdialog.sip
index aa26196..1a1d341 100644
--- a/sip/tqt/tqdialog.sip
+++ b/sip/tqt/tqdialog.sip
@@ -47,7 +47,7 @@ class TQDialog : TQWidget
 %End
 
 public:
-	TQDialog(TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0,WFlags = 0);
+	TQDialog(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,bool = 0,WFlags = 0);
 
 	enum DialogCode {
 		Rejected,
diff --git a/sip/tqt/tqdir.sip b/sip/tqt/tqdir.sip
index 2a16ba5..05b0f84 100644
--- a/sip/tqt/tqdir.sip
+++ b/sip/tqt/tqdir.sip
@@ -55,7 +55,7 @@ the return type of a function or the type of an argument, a Python list of
 	if (!(pl = PyList_New(0)))
 		return nullptr;
 
-	for (TQFileInfoListIterator it(*sipCpp); (obj = it.current()); ++it)
+	for (TQFileInfoListIterator it(*sipCpp); (obj = it.current()) != nullptr; ++it)
 	{
 		PyObject *inst;
 
@@ -98,7 +98,7 @@ the return type of a function or the type of an argument, a Python list of
 		// We apply the transfer to the list itself, not the elements.
 		// Note that any temporary element will never be destroyed.
 		// There is nothing that can be done about this.
-		tqfi = reinterpret_cast<TQFileInfo *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_TQFileInfo,0,0,0,sipIsErr));
+		tqfi = reinterpret_cast<TQFileInfo *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_TQFileInfo,nullptr,0,nullptr,sipIsErr));
 
 		if (*sipIsErr)
 		{
diff --git a/sip/tqt/tqdockarea.sip b/sip/tqt/tqdockarea.sip
index 7c01b85..c9b7682 100644
--- a/sip/tqt/tqdockarea.sip
+++ b/sip/tqt/tqdockarea.sip
@@ -25,7 +25,7 @@
 <FuncSynopsis>
 	<FuncDef>bool <Function>hasDockWindow</Function> const</FuncDef>
 	<ParamDef>TQDockWindow *<Parameter>w</Parameter></ParamDef>
-	<ParamDef>int *<Parameter>index</Parameter> = 0</ParamDef>
+	<ParamDef>int *<Parameter>index</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This takes the <Literal>w</Literal> parameter and returns the index of the
@@ -48,7 +48,7 @@ public:
 	};
 
 	TQDockArea(Orientation,HandlePosition = Normal,
-		  TQWidget * /TransferThis/ = 0,const char * = 0);
+		  TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	void moveDockWindow(TQDockWindow *,const TQPoint &,const TQRect &,bool);
 	void removeDockWindow(TQDockWindow *,bool,bool,bool = 1);
diff --git a/sip/tqt/tqdockwindow.sip b/sip/tqt/tqdockwindow.sip
index 1f078aa..2ea3682 100644
--- a/sip/tqt/tqdockwindow.sip
+++ b/sip/tqt/tqdockwindow.sip
@@ -48,9 +48,9 @@ public:
 		Always
 	};
 
-	TQDockWindow(Place = InDock,TQWidget * /TransferThis/ = 0,
-		    const char * = 0,WFlags = 0);
-	TQDockWindow(TQWidget * /TransferThis/,const char * = 0,WFlags = 0);
+	TQDockWindow(Place = InDock,TQWidget * /TransferThis/ = nullptr,
+		    const char * = nullptr,WFlags = 0);
+	TQDockWindow(TQWidget * /TransferThis/,const char * = nullptr,WFlags = 0);
 
 	virtual void setWidget(TQWidget *);
 	TQWidget *widget() const;
diff --git a/sip/tqt/tqdragobject.sip b/sip/tqt/tqdragobject.sip
index da9e266..36c0e77 100644
--- a/sip/tqt/tqdragobject.sip
+++ b/sip/tqt/tqdragobject.sip
@@ -74,7 +74,7 @@ class TQDragObject : TQObject, TQMimeSource
 %End
 
 public:
-	TQDragObject(TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQDragObject(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 %If (TQt_DRAGANDDROP)
 	bool drag();
@@ -120,7 +120,7 @@ class TQStoredDrag : TQDragObject
 %End
 
 public:
-	TQStoredDrag(const char *,TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQStoredDrag(const char *,TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	virtual void setEncodedData(const TQByteArray&);
 
@@ -139,9 +139,9 @@ class TQTextDrag : TQDragObject
 %End
 
 public:
-	TQTextDrag(const TQString &,TQWidget * /TransferThis/ = 0,
-		  const char * = 0);
-	TQTextDrag(TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQTextDrag(const TQString &,TQWidget * /TransferThis/ = nullptr,
+		  const char * = nullptr);
+	TQTextDrag(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	virtual void setText(const TQString &);
 	virtual void setSubtype(const TQCString &);
@@ -165,8 +165,8 @@ class TQImageDrag : TQDragObject
 %End
 
 public:
-	TQImageDrag(TQImage,TQWidget * /TransferThis/ = 0,const char * = 0);
-	TQImageDrag(TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQImageDrag(TQImage,TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
+	TQImageDrag(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	virtual void setImage(TQImage);
 
@@ -189,8 +189,8 @@ class TQUriDrag : TQStoredDrag
 %End
 
 public:
-	TQUriDrag(TQStrList,TQWidget * /TransferThis/ = 0,const char * = 0);
-	TQUriDrag(TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQUriDrag(TQStrList,TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
+	TQUriDrag(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	void setFileNames(const TQStringList &);
 	void setUnicodeUris(const TQStringList &);
@@ -217,9 +217,9 @@ class TQColorDrag : TQStoredDrag
 %End
 
 public:
-	TQColorDrag(const TQColor &,TQWidget * /TransferThis/ = 0,
-		   const char * = 0);
-	TQColorDrag(TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQColorDrag(const TQColor &,TQWidget * /TransferThis/ = nullptr,
+		   const char * = nullptr);
+	TQColorDrag(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	void setColor(const TQColor &);
  
diff --git a/sip/tqt/tqdrawutil.sip b/sip/tqt/tqdrawutil.sip
index 34e3033..c1a9433 100644
--- a/sip/tqt/tqdrawutil.sip
+++ b/sip/tqt/tqdrawutil.sip
@@ -31,26 +31,26 @@ void qDrawShadeLine(TQPainter *,const TQPoint &,const TQPoint &,
 		    const TQColorGroup &,bool = 1,int = 1,int = 0);
 
 void qDrawShadeRect(TQPainter *,int,int,int,int,const TQColorGroup &,bool = 0,
-		    int = 1,int = 0,const TQBrush * = 0);
+		    int = 1,int = 0,const TQBrush * = nullptr);
 void qDrawShadeRect(TQPainter *,const TQRect &,const TQColorGroup &,bool = 0,
-		    int = 1,int = 0,const TQBrush * = 0);
+		    int = 1,int = 0,const TQBrush * = nullptr);
 
 void qDrawShadePanel(TQPainter *,int,int,int,int,const TQColorGroup &,bool = 0,
-		     int = 1,const TQBrush * = 0);
+		     int = 1,const TQBrush * = nullptr);
 void qDrawShadePanel(TQPainter *,const TQRect &,const TQColorGroup &,bool = 0,
-		     int = 1,const TQBrush * = 0);
+		     int = 1,const TQBrush * = nullptr);
 
 void qDrawWinButton(TQPainter *,int,int,int,int,const TQColorGroup &,bool = 0,
-		    const TQBrush * = 0);
+		    const TQBrush * = nullptr);
 void qDrawWinButton(TQPainter *,const TQRect &,const TQColorGroup &,bool = 0,
-		    const TQBrush * = 0);
+		    const TQBrush * = nullptr);
 
 void qDrawWinPanel(TQPainter *,int,int,int,int,const TQColorGroup &,bool = 0,
-		   const TQBrush * = 0);
+		   const TQBrush * = nullptr);
 void qDrawWinPanel(TQPainter *,const TQRect &,const TQColorGroup &,bool = 0,
-		   const TQBrush * = 0);
+		   const TQBrush * = nullptr);
 
 void qDrawPlainRect(TQPainter *,int,int,int,int,const TQColor &,int = 1,
-		    const TQBrush * = 0);
+		    const TQBrush * = nullptr);
 void qDrawPlainRect(TQPainter *,const TQRect &,const TQColor &,int = 1,
-		    const TQBrush * = 0);
+		    const TQBrush * = nullptr);
diff --git a/sip/tqt/tqerrormessage.sip b/sip/tqt/tqerrormessage.sip
index b6eb433..00d4da3 100644
--- a/sip/tqt/tqerrormessage.sip
+++ b/sip/tqt/tqerrormessage.sip
@@ -36,7 +36,7 @@ class TQErrorMessage : TQDialog
 %End
 
 public:
-	TQErrorMessage(TQWidget * /TransferThis/,const char * = 0);
+	TQErrorMessage(TQWidget * /TransferThis/,const char * = nullptr);
 
 	static TQErrorMessage *qtHandler();
 
diff --git a/sip/tqt/tqevent.sip b/sip/tqt/tqevent.sip
index 7fa9592..2f172e2 100644
--- a/sip/tqt/tqevent.sip
+++ b/sip/tqt/tqevent.sip
@@ -848,7 +848,7 @@ public:
 
 		PyObject *obj = reinterpret_cast<PyObject *>(sipCpp -> TQCustomEvent::data());
 
-		sipCpp -> TQCustomEvent::setData(0);
+		sipCpp -> TQCustomEvent::setData(nullptr);
 
 		Py_XDECREF(obj);
 
diff --git a/sip/tqt/tqeventloop.sip b/sip/tqt/tqeventloop.sip
index 2146996..cb9f162 100644
--- a/sip/tqt/tqeventloop.sip
+++ b/sip/tqt/tqeventloop.sip
@@ -40,7 +40,7 @@ class TQEventLoop : TQObject
 %End
 
 public:
-	TQEventLoop(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQEventLoop(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	enum ProcessEvents {
 		AllEvents,
diff --git a/sip/tqt/tqfiledialog.sip b/sip/tqt/tqfiledialog.sip
index 920a218..cb0c9ee 100644
--- a/sip/tqt/tqfiledialog.sip
+++ b/sip/tqt/tqfiledialog.sip
@@ -69,7 +69,7 @@ class TQFileIconProvider : TQObject
 %End
 
 public:
-	TQFileIconProvider(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQFileIconProvider(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	virtual const TQPixmap *pixmap(const TQFileInfo &);
 
@@ -99,31 +99,31 @@ class TQFileDialog : TQDialog
 
 public:
 	TQFileDialog(const TQString &,const TQString & = TQString::null,
-		    TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0);
-	TQFileDialog(TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0);
+		    TQWidget * /TransferThis/ = nullptr,const char * = nullptr,bool = 0);
+	TQFileDialog(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,bool = 0);
 
 	static TQString getOpenFileName(const TQString & = TQString::null,
 				       const TQString & = TQString::null,
-				       TQWidget * = 0,const char * = 0,
+				       TQWidget * = nullptr,const char * = nullptr,
 				       const TQString & = TQString::null,
-				       TQString * = 0,bool = 1) /ReleaseGIL/;
+				       TQString * = nullptr,bool = 1) /ReleaseGIL/;
 
 	static TQString getSaveFileName(const TQString & = TQString::null,
 				       const TQString & = TQString::null,
-				       TQWidget * = 0,const char * = 0,
+				       TQWidget * = nullptr,const char * = nullptr,
 				       const TQString & = TQString::null,
-				       TQString * = 0,bool = 1) /ReleaseGIL/;
+				       TQString * = nullptr,bool = 1) /ReleaseGIL/;
 
 	static TQString getExistingDirectory(const TQString & = TQString::null,
-					    TQWidget * = 0,const char * = 0,
+					    TQWidget * = nullptr,const char * = nullptr,
 					    const TQString & = TQString::null,
 					    bool = 1,bool = 1) /ReleaseGIL/;
 
 	static TQStringList getOpenFileNames(const TQString & = TQString::null,
 					    const TQString & = TQString::null,
-					    TQWidget * = 0,const char * = 0,
+					    TQWidget * = nullptr,const char * = nullptr,
 					    const TQString & = TQString::null,
-					    TQString * = 0,
+					    TQString * = nullptr,
 					    bool = 1) /ReleaseGIL/;
 
 	static void setIconProvider(TQFileIconProvider *);
diff --git a/sip/tqt/tqfontdialog.sip b/sip/tqt/tqfontdialog.sip
index fdc0cb8..3a01c61 100644
--- a/sip/tqt/tqfontdialog.sip
+++ b/sip/tqt/tqfontdialog.sip
@@ -26,8 +26,8 @@
 	<FuncDef>static TQFont <Function>getFont</Function></FuncDef>
 	<ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
 	<ParamDef>const TQFont &<Parameter>def</Parameter></ParamDef>
-	<ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
-	<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
+	<ParamDef>TQWidget *<Parameter>parent</Parameter> = nullptr</ParamDef>
+	<ParamDef>const char *<Parameter>name</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This takes the <Literal>def</Literal>, <Literal>parent</Literal> and
@@ -38,8 +38,8 @@ This takes the <Literal>def</Literal>, <Literal>parent</Literal> and
 <FuncSynopsis>
 	<FuncDef>static TQFont <Function>getFont</Function></FuncDef>
 	<ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
-	<ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
-	<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
+	<ParamDef>TQWidget *<Parameter>parent</Parameter> = nullptr</ParamDef>
+	<ParamDef>const char *<Parameter>name</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This takes the <Literal>parent</Literal> and <Literal>name</Literal> parameters
@@ -59,12 +59,12 @@ class TQFontDialog : TQDialog
 %End
 
 public:
-	static TQFont getFont(bool *,const TQFont &,TQWidget * = 0,
-			     const char * = 0);
-	static TQFont getFont(bool *,TQWidget * = 0,const char * = 0);
+	static TQFont getFont(bool *,const TQFont &,TQWidget * = nullptr,
+			     const char * = nullptr);
+	static TQFont getFont(bool *,TQWidget * = nullptr,const char * = nullptr);
 
 private:
-	TQFontDialog(TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0,
+	TQFontDialog(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,bool = 0,
 		    WFlags = 0);
 	TQFontDialog(const TQFontDialog &);
 	~TQFontDialog();
diff --git a/sip/tqt/tqfontmetrics.sip b/sip/tqt/tqfontmetrics.sip
index 9e0c54c..c9b6696 100644
--- a/sip/tqt/tqfontmetrics.sip
+++ b/sip/tqt/tqfontmetrics.sip
@@ -32,7 +32,7 @@
         <ParamDef>const TQString &amp;<Parameter>str</Parameter></ParamDef>
         <ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
         <ParamDef>int <Parameter>tabstops</Parameter> = 0</ParamDef>
-        <ParamDef>int *<Parameter>tabarray</Parameter> = 0</ParamDef>
+        <ParamDef>int *<Parameter>tabarray</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 The <Literal>tabarray</Literal> parameter is a Python list of integers.
@@ -44,7 +44,7 @@ The <Literal>tabarray</Literal> parameter is a Python list of integers.
         <ParamDef>const TQString &amp;<Parameter>str</Parameter></ParamDef>
         <ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
         <ParamDef>int <Parameter>tabstops</Parameter> = 0</ParamDef>
-        <ParamDef>int *<Parameter>tabarray</Parameter> = 0</ParamDef>
+        <ParamDef>int *<Parameter>tabarray</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 The <Literal>tabarray</Literal> parameter is a Python list of integers.
@@ -132,7 +132,7 @@ static int intListToArray(PyObject *pl,int **ap)
 	// The trivial case.
 	if (!pl || pl == Py_None)
 	{
-		*ap = 0;
+		*ap = nullptr;
 		return 0;
 	}
 
diff --git a/sip/tqt/tqframe.sip b/sip/tqt/tqframe.sip
index ca47416..07ef6dc 100644
--- a/sip/tqt/tqframe.sip
+++ b/sip/tqt/tqframe.sip
@@ -36,7 +36,7 @@ class TQFrame : TQWidget
 %End
 
 public:
-	TQFrame(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+	TQFrame(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,WFlags = 0);
 
 	int frameStyle() const;
 	virtual void setFrameStyle(int);
diff --git a/sip/tqt/tqgrid.sip b/sip/tqt/tqgrid.sip
index 9047b70..5a12bca 100644
--- a/sip/tqt/tqgrid.sip
+++ b/sip/tqt/tqgrid.sip
@@ -36,8 +36,8 @@ class TQGrid : TQFrame
 %End
 
 public:
-	TQGrid(int,TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
-	TQGrid(int,Orientation,TQWidget * /TransferThis/ = 0,const char * = 0,
+	TQGrid(int,TQWidget * /TransferThis/ = nullptr,const char * = nullptr,WFlags = 0);
+	TQGrid(int,Orientation,TQWidget * /TransferThis/ = nullptr,const char * = nullptr,
 	      WFlags = 0);
 
 	void setSpacing(int);
diff --git a/sip/tqt/tqgridview.sip b/sip/tqt/tqgridview.sip
index ba73e64..bbc7511 100644
--- a/sip/tqt/tqgridview.sip
+++ b/sip/tqt/tqgridview.sip
@@ -36,7 +36,7 @@ class TQGridView : TQScrollView
 %End
 
 public:
-	TQGridView(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+	TQGridView(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,WFlags = 0);
 
 	int numRows() const;
 	virtual void setNumRows(int);
diff --git a/sip/tqt/tqgroupbox.sip b/sip/tqt/tqgroupbox.sip
index f4fdc61..2a13596 100644
--- a/sip/tqt/tqgroupbox.sip
+++ b/sip/tqt/tqgroupbox.sip
@@ -36,13 +36,13 @@ class TQGroupBox : TQFrame
 %End
 
 public:
-	TQGroupBox(TQWidget * /TransferThis/ = 0,const char * = 0);
-	TQGroupBox(const TQString &,TQWidget * /TransferThis/ = 0,
-		  const char * = 0);
-	TQGroupBox(int,Orientation,TQWidget * /TransferThis/ = 0,
-		  const char * = 0);
-	TQGroupBox(int,Orientation,const TQString &,TQWidget * /TransferThis/ = 0,
-		  const char * = 0);
+	TQGroupBox(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
+	TQGroupBox(const TQString &,TQWidget * /TransferThis/ = nullptr,
+		  const char * = nullptr);
+	TQGroupBox(int,Orientation,TQWidget * /TransferThis/ = nullptr,
+		  const char * = nullptr);
+	TQGroupBox(int,Orientation,const TQString &,TQWidget * /TransferThis/ = nullptr,
+		  const char * = nullptr);
 
 	virtual void setColumnLayout(int,Orientation);
 
diff --git a/sip/tqt/tqhbox.sip b/sip/tqt/tqhbox.sip
index 884db2e..741756b 100644
--- a/sip/tqt/tqhbox.sip
+++ b/sip/tqt/tqhbox.sip
@@ -36,7 +36,7 @@ class TQHBox : TQFrame
 %End
 
 public:
-	TQHBox(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+	TQHBox(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,WFlags = 0);
 
 	void setSpacing(int);
 	bool setStretchFactor(TQWidget *,int);
diff --git a/sip/tqt/tqhbuttongroup.sip b/sip/tqt/tqhbuttongroup.sip
index 3cdcd49..1530690 100644
--- a/sip/tqt/tqhbuttongroup.sip
+++ b/sip/tqt/tqhbuttongroup.sip
@@ -36,8 +36,8 @@ class TQHButtonGroup : TQButtonGroup
 %End
 
 public:
-	TQHButtonGroup(TQWidget * /TransferThis/ = 0,const char * = 0);
-	TQHButtonGroup(const TQString &,TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQHButtonGroup(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
+	TQHButtonGroup(const TQString &,TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 private:
 	TQHButtonGroup(const TQHButtonGroup &);
diff --git a/sip/tqt/tqheader.sip b/sip/tqt/tqheader.sip
index 2161dd3..4975926 100644
--- a/sip/tqt/tqheader.sip
+++ b/sip/tqt/tqheader.sip
@@ -36,8 +36,8 @@ class TQHeader : TQWidget
 %End
 
 public:
-	TQHeader(TQWidget * /TransferThis/ = 0,const char * = 0);
-	TQHeader(int,TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQHeader(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
+	TQHeader(int,TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	int addLabel(const TQString &,int = -1);
 	int addLabel(const TQIconSet &,const TQString &,int = -1);
diff --git a/sip/tqt/tqhgroupbox.sip b/sip/tqt/tqhgroupbox.sip
index e287673..2350efc 100644
--- a/sip/tqt/tqhgroupbox.sip
+++ b/sip/tqt/tqhgroupbox.sip
@@ -36,8 +36,8 @@ class TQHGroupBox : TQGroupBox
 %End
 
 public:
-	TQHGroupBox(TQWidget * /TransferThis/ = 0,const char * = 0);
-	TQHGroupBox(const TQString &,TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQHGroupBox(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
+	TQHGroupBox(const TQString &,TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 private:
 	TQHGroupBox(const TQHGroupBox &);
diff --git a/sip/tqt/tqiconview.sip b/sip/tqt/tqiconview.sip
index ceb6791..32b930d 100644
--- a/sip/tqt/tqiconview.sip
+++ b/sip/tqt/tqiconview.sip
@@ -78,7 +78,7 @@ class TQIconDrag : TQDragObject
 %End
 
 public:
-	TQIconDrag(TQWidget * /TransferThis/,const char * = 0);
+	TQIconDrag(TQWidget * /TransferThis/,const char * = nullptr);
  
 	void append(const TQIconDragItem &,const TQRect &,const TQRect &);
  
@@ -221,9 +221,9 @@ public:
 		Right
 	};
 
-	TQIconView(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+	TQIconView(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,WFlags = 0);
 
-	virtual void insertItem(TQIconViewItem *,TQIconViewItem * = 0);
+	virtual void insertItem(TQIconViewItem *,TQIconViewItem * = nullptr);
 	virtual void takeItem(TQIconViewItem *);
 
 	int index(const TQIconViewItem *) const;
@@ -366,7 +366,7 @@ protected:
 	virtual void insertInGrid(TQIconViewItem *);
 	virtual void drawBackground(TQPainter *,const TQRect &);
 
-	void emitSelectionChanged(TQIconViewItem * = 0);
+	void emitSelectionChanged(TQIconViewItem * = nullptr);
 	void emitRenamed(TQIconViewItem *);
 
 //	TQIconViewItem *makeRowLayout(TQIconViewItem *,int &,bool &);
diff --git a/sip/tqt/tqimage.sip b/sip/tqt/tqimage.sip
index 85ee7fd..02f7682 100644
--- a/sip/tqt/tqimage.sip
+++ b/sip/tqt/tqimage.sip
@@ -93,7 +93,7 @@ useful if passed to another Python module.
 	<FuncDef>bool <Function>loadFromData</Function></FuncDef>
 	<ParamDef>const uchar *<Parameter>buf</Parameter></ParamDef>
 	<ParamDef>uint <Parameter>len</Parameter></ParamDef>
-	<ParamDef>const char *<Parameter>format</Parameter> = 0</ParamDef>
+	<ParamDef>const char *<Parameter>format</Parameter> = nullptr</ParamDef>
 	<ParamDef>ColorMode <Parameter>mode</Parameter> = Auto</ParamDef>
 </FuncSynopsis>
 <Para>
@@ -149,7 +149,7 @@ public:
 	TQImage();
 	TQImage(int,int,int,int = 0,Endian = IgnoreEndian);
 	TQImage(const TQSize &,int,int = 0,Endian = IgnoreEndian);
-	TQImage(const TQString &,char * = 0);
+	TQImage(const TQString &,char * = nullptr);
 
 	TQImage(SIP_PYLIST) [(const char **)];
 %MethodCode
@@ -181,7 +181,7 @@ public:
 		TQRgb *coltab;
 
 		if (a4 == Py_None)
-			coltab = 0;
+			coltab = nullptr;
 		else
 		{
 			int len = PyList_Size(a4);
@@ -211,7 +211,7 @@ public:
 			// There is no wrapper class for TQImage.
 
 			Py_BEGIN_ALLOW_THREADS
-			sipCpp = new TQImage(a0,a1,a2,a3,0,a5,(TQImage::Endian)a6);
+			sipCpp = new TQImage(a0,a1,a2,a3,nullptr,a5,(TQImage::Endian)a6);
 
 			if (coltab)
 			{
@@ -309,10 +309,10 @@ public:
 	static TQStrList outputFormats();
 	static TQStringList inputFormatList();
 	static TQStringList outputFormatList();
-	bool load(const TQString &,const char * = 0);
+	bool load(const TQString &,const char * = nullptr);
 	bool loadFromData(const uchar * /Array/,uint /ArraySize/,
-			  const char * = 0);
-	bool loadFromData(TQByteArray,char * = 0);
+			  const char * = nullptr);
+	bool loadFromData(TQByteArray,char * = nullptr);
 	bool save(const TQString &,const char *,int = -1) const;
 	bool save(TQIODevice *,const char *,int = -1) const;
 
@@ -331,7 +331,7 @@ public:
 	TQValueList<TQImageTextKeyLang> textList() const;
 	TQStringList textLanguages() const;
 	TQStringList textKeys() const;
-	TQString text(const char *,const char * = 0) const;
+	TQString text(const char *,const char * = nullptr) const;
 	TQString text(const TQImageTextKeyLang &) const;
 	void setText(const char *,const char *,const TQString &);
 %End
diff --git a/sip/tqt/tqinputdialog.sip b/sip/tqt/tqinputdialog.sip
index 11016b6..417dfae 100644
--- a/sip/tqt/tqinputdialog.sip
+++ b/sip/tqt/tqinputdialog.sip
@@ -27,9 +27,9 @@
 	<ParamDef>const TQString &amp;<Parameter>caption</Parameter></ParamDef>
 	<ParamDef>const TQString &amp;<Parameter>label</Parameter></ParamDef>
 	<ParamDef>const TQString &amp;<Parameter>text</Parameter> = TQString::null</ParamDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
-	<ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
-	<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
+	<ParamDef>TQWidget *<Parameter>parent</Parameter> = nullptr</ParamDef>
+	<ParamDef>const char *<Parameter>name</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 The <Literal>ok</Literal> is not passed and the returned value is a tuple of
@@ -43,9 +43,9 @@ the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
 	<ParamDef>const TQString &amp;<Parameter>label</Parameter></ParamDef>
 	<ParamDef>TQLineEdit::EchoMode<Parameter>echo</Parameter></ParamDef>
 	<ParamDef>const TQString &amp;<Parameter>text</Parameter> = TQString::null</ParamDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
-	<ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
-	<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
+	<ParamDef>TQWidget *<Parameter>parent</Parameter> = nullptr</ParamDef>
+	<ParamDef>const char *<Parameter>name</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 The <Literal>ok</Literal> is not passed and the returned value is a tuple of
@@ -59,9 +59,9 @@ the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
 	<ParamDef>const TQString &amp;<Parameter>label</Parameter></ParamDef>
 	<ParamDef>TQLineEdit::EchoMode<Parameter>echo</Parameter> = TQLineEdit::Normal</ParamDef>
 	<ParamDef>const TQString &amp;<Parameter>text</Parameter> = TQString::null</ParamDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
-	<ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
-	<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
+	<ParamDef>TQWidget *<Parameter>parent</Parameter> = nullptr</ParamDef>
+	<ParamDef>const char *<Parameter>name</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 The <Literal>ok</Literal> is not passed and the returned value is a tuple of
@@ -77,9 +77,9 @@ the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
 	<ParamDef>int <Parameter>from</Parameter> = -2147483647</ParamDef>
 	<ParamDef>int <Parameter>to</Parameter> = 2147483647</ParamDef>
 	<ParamDef>int <Parameter>step</Parameter> = 1</ParamDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
-	<ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
-	<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
+	<ParamDef>TQWidget *<Parameter>parent</Parameter> = nullptr</ParamDef>
+	<ParamDef>const char *<Parameter>name</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 The <Literal>ok</Literal> is not passed and the returned value is a tuple of
@@ -94,9 +94,9 @@ the <Literal>int</Literal> result and the <Literal>ok</Literal> flag.
 	<ParamDef>double <Parameter>from</Parameter> = -2147483647</ParamDef>
 	<ParamDef>double <Parameter>to</Parameter> = 2147483647</ParamDef>
 	<ParamDef>int <Parameter>step</Parameter> = 1</ParamDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
-	<ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
-	<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
+	<ParamDef>TQWidget *<Parameter>parent</Parameter> = nullptr</ParamDef>
+	<ParamDef>const char *<Parameter>name</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 The <Literal>ok</Literal> is not passed and the returned value is a tuple of
@@ -110,9 +110,9 @@ the <Literal>double</Literal> result and the <Literal>ok</Literal> flag.
 	<ParamDef>const TQStringList &<Parameter>list</Parameter></ParamDef>
 	<ParamDef>int <Parameter>current</Parameter> = 0</ParamDef>
 	<ParamDef>bool <Parameter>editable</Parameter> = true</ParamDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
-	<ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
-	<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
+	<ParamDef>TQWidget *<Parameter>parent</Parameter> = nullptr</ParamDef>
+	<ParamDef>const char *<Parameter>name</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 The <Literal>ok</Literal> is not passed and the returned value is a tuple of
@@ -134,20 +134,20 @@ public:
 	static TQString getText(const TQString &,const TQString &,
 			       TQLineEdit::EchoMode = TQLineEdit::Normal,
 			       const TQString & = TQString::null,
-			       bool * = 0,TQWidget * = 0,const char * = 0);
+			       bool * = nullptr,TQWidget * = nullptr,const char * = nullptr);
 
 	static int getInteger(const TQString &,const TQString &,int = 0,
 			      int = -2147483647,int = 2147483647,int = 1,
-			      bool * = 0,TQWidget * = 0,const char * = 0);
+			      bool * = nullptr,TQWidget * = nullptr,const char * = nullptr);
 
 	static double getDouble(const TQString &,const TQString &,
 				double = 0,double = -2147483647,
 				double = 2147483647,int = 1,
-				bool * = 0,TQWidget * = 0,const char * = 0);
+				bool * = nullptr,TQWidget * = nullptr,const char * = nullptr);
 
 	static TQString getItem(const TQString &,const TQString &,
 			       const TQStringList &,int = 0,bool = true,
-			       bool * = 0,TQWidget * = 0,const char * = 0);
+			       bool * = nullptr,TQWidget * = nullptr,const char * = nullptr);
 
 private:
 	TQInputDialog(const TQInputDialog &);
diff --git a/sip/tqt/tqinterlacestyle.sip b/sip/tqt/tqinterlacestyle.sip
index 7e4445f..88ec66c 100644
--- a/sip/tqt/tqinterlacestyle.sip
+++ b/sip/tqt/tqinterlacestyle.sip
@@ -59,12 +59,12 @@ public:
 	int defaultFrameWidth() const;
 	TQRect pushButtonContentsRect(TQPushButton *);
 	void drawFocusRect(TQPainter *,const TQRect &,const TQColorGroup &,
-			   const TQColor * = 0,bool = 0);
+			   const TQColor * = nullptr,bool = 0);
 	void drawButton(TQPainter *,int,int,int,int,const TQColorGroup &,
-			bool = 0,const TQBrush * = 0);
+			bool = 0,const TQBrush * = nullptr);
 	void drawButtonMask(TQPainter *,int,int,int,int);
 	void drawBevelButton(TQPainter *,int,int,int,int,const TQColorGroup &,
-			     bool = 0,const TQBrush * = 0);
+			     bool = 0,const TQBrush * = nullptr);
 
 	void drawPushButton(TQPushButton *,TQPainter *);
 	TQSize indicatorSize() const;
diff --git a/sip/tqt/tqkeysequence.sip b/sip/tqt/tqkeysequence.sip
index 7712218..be29c0c 100644
--- a/sip/tqt/tqkeysequence.sip
+++ b/sip/tqt/tqkeysequence.sip
@@ -77,7 +77,7 @@ public:
 
 	if (sipCanConvertToInstance(sipPy,sipClass_TQKeySequence,SIP_NO_CONVERTORS))
 	{
-		*sipCppPtr = reinterpret_cast<TQKeySequence *>(sipConvertToInstance(sipPy,sipClass_TQKeySequence,sipTransferObj,SIP_NO_CONVERTORS,0,sipIsErr));
+		*sipCppPtr = reinterpret_cast<TQKeySequence *>(sipConvertToInstance(sipPy,sipClass_TQKeySequence,sipTransferObj,SIP_NO_CONVERTORS,nullptr,sipIsErr));
 
 		return 0;
 	}
@@ -85,7 +85,7 @@ public:
 	if (sipCanConvertToInstance(sipPy,sipClass_TQString,0))
 	{
 		int state;
-		TQString *s = reinterpret_cast<TQString *>(sipConvertToInstance(sipPy,sipClass_TQString,0,0,&state,sipIsErr));
+		TQString *s = reinterpret_cast<TQString *>(sipConvertToInstance(sipPy,sipClass_TQString,nullptr,0,&state,sipIsErr));
 
 		if (*sipIsErr)
 		{
diff --git a/sip/tqt/tqlabel.sip b/sip/tqt/tqlabel.sip
index 849b3a7..1eba038 100644
--- a/sip/tqt/tqlabel.sip
+++ b/sip/tqt/tqlabel.sip
@@ -37,9 +37,9 @@ class TQLabel : TQFrame
 %End
 
 public:
-	TQLabel(TQWidget * /TransferThis/,const char * = 0,WFlags = 0);
-	TQLabel(const TQString &,TQWidget * /TransferThis/,const char * = 0,WFlags = 0);
-	TQLabel(TQWidget *,const TQString &,TQWidget * /TransferThis/,const char * = 0,WFlags = 0);
+	TQLabel(TQWidget * /TransferThis/,const char * = nullptr,WFlags = 0);
+	TQLabel(const TQString &,TQWidget * /TransferThis/,const char * = nullptr,WFlags = 0);
+	TQLabel(TQWidget *,const TQString &,TQWidget * /TransferThis/,const char * = nullptr,WFlags = 0);
 
 	TQString text() const;
 	TQPixmap *pixmap() const;
diff --git a/sip/tqt/tqlayout.sip b/sip/tqt/tqlayout.sip
index 0e7d162..8a5f895 100644
--- a/sip/tqt/tqlayout.sip
+++ b/sip/tqt/tqlayout.sip
@@ -235,9 +235,9 @@ public:
 		Auto
 	};
 
-	TQLayout(TQWidget * /TransferThis/,int = 0,int = -1,const char * = 0);
-	TQLayout(TQLayout * /TransferThis/,int = -1,const char * = 0);
-	TQLayout(int = -1,const char * = 0);
+	TQLayout(TQWidget * /TransferThis/,int = 0,int = -1,const char * = nullptr);
+	TQLayout(TQLayout * /TransferThis/,int = -1,const char * = nullptr);
+	TQLayout(int = -1,const char * = nullptr);
 
 	int margin() const;
 	int spacing() const;
@@ -310,9 +310,9 @@ class TQGridLayout : TQLayout
 %End
 
 public:
-	TQGridLayout(TQWidget * /TransferThis/,int = 1,int = 1,int = 0,int = -1,const char * = 0);
-	TQGridLayout(int = 1,int = 1,int = -1,const char * = 0);
-	TQGridLayout(TQLayout * /TransferThis/,int = 1,int = 1,int = -1,const char * = 0);
+	TQGridLayout(TQWidget * /TransferThis/,int = 1,int = 1,int = 0,int = -1,const char * = nullptr);
+	TQGridLayout(int = 1,int = 1,int = -1,const char * = nullptr);
+	TQGridLayout(TQLayout * /TransferThis/,int = 1,int = 1,int = -1,const char * = nullptr);
 
 	TQSize sizeHint() const;
 	TQSize minimumSize() const;
@@ -388,9 +388,9 @@ public:
 		Up = BottomToTop
 	};
 
-	TQBoxLayout(TQWidget * /TransferThis/,Direction,int = 0,int = -1,const char * = 0);
-	TQBoxLayout(TQLayout * /TransferThis/,Direction,int = -1,const char * = 0);
-	TQBoxLayout(Direction,int = -1,const char * = 0);
+	TQBoxLayout(TQWidget * /TransferThis/,Direction,int = 0,int = -1,const char * = nullptr);
+	TQBoxLayout(TQLayout * /TransferThis/,Direction,int = -1,const char * = nullptr);
+	TQBoxLayout(Direction,int = -1,const char * = nullptr);
 
 	Direction direction() const;
 	void setDirection(Direction);
@@ -433,9 +433,9 @@ class TQHBoxLayout : TQBoxLayout
 %End
 
 public:
-	TQHBoxLayout(TQWidget * /TransferThis/,int = 0,int = -1,const char * = 0);
-	TQHBoxLayout(TQLayout * /TransferThis/,int = -1,const char * = 0);
-	TQHBoxLayout(int = -1,const char * = 0);
+	TQHBoxLayout(TQWidget * /TransferThis/,int = 0,int = -1,const char * = nullptr);
+	TQHBoxLayout(TQLayout * /TransferThis/,int = -1,const char * = nullptr);
+	TQHBoxLayout(int = -1,const char * = nullptr);
 
 private:
 	TQHBoxLayout(const TQHBoxLayout &);
@@ -449,9 +449,9 @@ class TQVBoxLayout : TQBoxLayout
 %End
 
 public:
-	TQVBoxLayout(TQWidget * /TransferThis/,int = 0,int = -1,const char * = 0);
-	TQVBoxLayout(TQLayout * /TransferThis/,int = -1,const char * = 0);
-	TQVBoxLayout(int = -1,const char * = 0);
+	TQVBoxLayout(TQWidget * /TransferThis/,int = 0,int = -1,const char * = nullptr);
+	TQVBoxLayout(TQLayout * /TransferThis/,int = -1,const char * = nullptr);
+	TQVBoxLayout(int = -1,const char * = nullptr);
 
 private:
 	TQVBoxLayout(const TQVBoxLayout &);
diff --git a/sip/tqt/tqlcdnumber.sip b/sip/tqt/tqlcdnumber.sip
index ef8cb79..a12e600 100644
--- a/sip/tqt/tqlcdnumber.sip
+++ b/sip/tqt/tqlcdnumber.sip
@@ -37,8 +37,8 @@ class TQLCDNumber : TQFrame
 %End
 
 public:
-	TQLCDNumber(TQWidget * /TransferThis/ = 0,const char * = 0);
-	TQLCDNumber(uint,TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQLCDNumber(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
+	TQLCDNumber(uint,TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	enum Mode {
 		Hex, HEX = Hex,
diff --git a/sip/tqt/tqlineedit.sip b/sip/tqt/tqlineedit.sip
index 4dd49d0..72ef1c5 100644
--- a/sip/tqt/tqlineedit.sip
+++ b/sip/tqt/tqlineedit.sip
@@ -61,10 +61,10 @@ class TQLineEdit : TQFrame
 %End
 
 public:
-	TQLineEdit(TQWidget * /TransferThis/,const char * = 0);
-	TQLineEdit(const TQString &,TQWidget * /TransferThis/,const char * = 0);
+	TQLineEdit(TQWidget * /TransferThis/,const char * = nullptr);
+	TQLineEdit(const TQString &,TQWidget * /TransferThis/,const char * = nullptr);
 	TQLineEdit(const TQString &,const TQString &,TQWidget * /TransferThis/,
-		  const char * = 0);
+		  const char * = nullptr);
 
 	TQString text() const;
 
diff --git a/sip/tqt/tqlistbox.sip b/sip/tqt/tqlistbox.sip
index 9efb272..ac2a267 100644
--- a/sip/tqt/tqlistbox.sip
+++ b/sip/tqt/tqlistbox.sip
@@ -62,7 +62,7 @@ class TQListBox : TQScrollView
 %End
 
 public:
-	TQListBox(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+	TQListBox(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,WFlags = 0);
 
 	virtual void setFont(const TQFont &);
 
@@ -247,7 +247,7 @@ class TQListBoxItem
 %End
 
 public:
-	TQListBoxItem(TQListBox * /TransferThis/ = 0);
+	TQListBoxItem(TQListBox * /TransferThis/ = nullptr);
 	TQListBoxItem(TQListBox * /TransferThis/,TQListBoxItem *);
 
 	virtual TQString text() const;
diff --git a/sip/tqt/tqlistview.sip b/sip/tqt/tqlistview.sip
index fa2a5ab..3a47402 100644
--- a/sip/tqt/tqlistview.sip
+++ b/sip/tqt/tqlistview.sip
@@ -191,7 +191,7 @@ class TQListView : TQScrollView
 %End
 
 public:
-	TQListView(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+	TQListView(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,WFlags = 0);
 
 	int treeStepSize() const;
 	virtual void setTreeStepSize(int);
diff --git a/sip/tqt/tqlocale.sip b/sip/tqt/tqlocale.sip
index 5352ac0..84146ba 100644
--- a/sip/tqt/tqlocale.sip
+++ b/sip/tqt/tqlocale.sip
@@ -24,7 +24,7 @@
 <Sect2><Title>TQLocale (TQt v3.3+)</Title>
 <FuncSynopsis>
 	<FuncDef>short <Function>toShort</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>short</Literal> result and the
@@ -33,7 +33,7 @@ This returns a tuple of the <Literal>short</Literal> result and the
 
 <FuncSynopsis>
 	<FuncDef>ushort <Function>toUShort</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>ushort</Literal> result and the
@@ -42,7 +42,7 @@ This returns a tuple of the <Literal>ushort</Literal> result and the
 
 <FuncSynopsis>
 	<FuncDef>int <Function>toInt</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>int</Literal> result and the
@@ -51,7 +51,7 @@ This returns a tuple of the <Literal>int</Literal> result and the
 
 <FuncSynopsis>
 	<FuncDef>uint <Function>toUInt</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>uint</Literal> result and the
@@ -60,7 +60,7 @@ This returns a tuple of the <Literal>uint</Literal> result and the
 
 <FuncSynopsis>
 	<FuncDef>TQ_LONG <Function>toLong</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>long</Literal> result and the
@@ -69,7 +69,7 @@ This returns a tuple of the <Literal>long</Literal> result and the
 
 <FuncSynopsis>
 	<FuncDef>TQ_ULONG <Function>toULong</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>ulong</Literal> result and the
@@ -78,7 +78,7 @@ This returns a tuple of the <Literal>ulong</Literal> result and the
 
 <FuncSynopsis>
 	<FuncDef>float <Function>toFloat</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>float</Literal> result and the
@@ -87,7 +87,7 @@ This returns a tuple of the <Literal>float</Literal> result and the
 
 <FuncSynopsis>
 	<FuncDef>double <Function>toDouble</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>double</Literal> result and the
@@ -502,16 +502,16 @@ public:
 	Country country() const;
 	TQString name() const;
 
-	short toShort(const TQString &,bool * = 0) const;
-	ushort toUShort(const TQString &,bool * = 0) const;
-	int toInt(const TQString &,bool * = 0) const;
-	uint toUInt(const TQString &,bool * = 0) const;
-	TQ_LONG toLong(const TQString &,bool * = 0) const;
-	TQ_ULONG toULong(const TQString &,bool * = 0) const;
-	//TQ_LLONG toLongLong(const TQString &,bool * = 0) const;
-	//TQ_ULLONG toULongLong(const TQString &,bool * = 0) const;
-	float toFloat(const TQString &,bool * = 0) const;
-	double toDouble(const TQString &,bool * = 0) const;
+	short toShort(const TQString &,bool * = nullptr) const;
+	ushort toUShort(const TQString &,bool * = nullptr) const;
+	int toInt(const TQString &,bool * = nullptr) const;
+	uint toUInt(const TQString &,bool * = nullptr) const;
+	TQ_LONG toLong(const TQString &,bool * = nullptr) const;
+	TQ_ULONG toULong(const TQString &,bool * = nullptr) const;
+	//TQ_LLONG toLongLong(const TQString &,bool * = nullptr) const;
+	//TQ_ULLONG toULongLong(const TQString &,bool * = nullptr) const;
+	float toFloat(const TQString &,bool * = nullptr) const;
+	double toDouble(const TQString &,bool * = nullptr) const;
 
 	//TQString toString(short) const;
 	//TQString toString(ushort) const;
diff --git a/sip/tqt/tqmainwindow.sip b/sip/tqt/tqmainwindow.sip
index b271b6c..705c50e 100644
--- a/sip/tqt/tqmainwindow.sip
+++ b/sip/tqt/tqmainwindow.sip
@@ -73,7 +73,7 @@ class TQMainWindow : TQWidget
 %End
 
 public:
-	TQMainWindow(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = WType_TopLevel);
+	TQMainWindow(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,WFlags = WType_TopLevel);
 
 	TQMenuBar *menuBar() const;
 	TQStatusBar *statusBar() const;
diff --git a/sip/tqt/tqmenubar.sip b/sip/tqt/tqmenubar.sip
index a008e46..a09061f 100644
--- a/sip/tqt/tqmenubar.sip
+++ b/sip/tqt/tqmenubar.sip
@@ -36,7 +36,7 @@ class TQMenuBar : TQFrame, TQMenuData
 %End
 
 public:
-	TQMenuBar(TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQMenuBar(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	void updateItem(int);
 
diff --git a/sip/tqt/tqmenudata.sip b/sip/tqt/tqmenudata.sip
index 7363902..bd027c6 100644
--- a/sip/tqt/tqmenudata.sip
+++ b/sip/tqt/tqmenudata.sip
@@ -157,7 +157,7 @@ public:
 //	TQMenuItem *findItem(int,TQMenuData **) const;
 //	Not documented in the TQt3 API (the similar findPopup() was internal in
 //	TQt2).
-//	TQMenuItem *findItem(TQPopupMenu *,int * = 0) const;
+//	TQMenuItem *findItem(TQPopupMenu *,int * = nullptr) const;
 
 	virtual void activateItemAt(int);
 
diff --git a/sip/tqt/tqmessagebox.sip b/sip/tqt/tqmessagebox.sip
index 5844107..9e40566 100644
--- a/sip/tqt/tqmessagebox.sip
+++ b/sip/tqt/tqmessagebox.sip
@@ -46,9 +46,9 @@ public:
 		Question,
 	};
 
-	TQMessageBox(TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQMessageBox(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 	TQMessageBox(const TQString &,const TQString &,Icon,int,int,int,
-		    TQWidget * /TransferThis/ = 0,const char * = 0,bool = 1,
+		    TQWidget * /TransferThis/ = nullptr,const char * = nullptr,bool = 1,
 		    WFlags = WStyle_DialogBorder);
 
 	enum {
diff --git a/sip/tqt/tqmetaobject.sip b/sip/tqt/tqmetaobject.sip
index 881e8e8..3f7788a 100644
--- a/sip/tqt/tqmetaobject.sip
+++ b/sip/tqt/tqmetaobject.sip
@@ -107,9 +107,9 @@ public:
 	int keysToValue(const TQStrList &) const;
 	TQStrList valueToKeys(int) const;
 
-	bool designable(TQObject * = 0) const;
-	bool scriptable(TQObject * = 0) const;
-	bool stored(TQObject * = 0) const;
+	bool designable(TQObject * = nullptr) const;
+	bool scriptable(TQObject * = nullptr) const;
+	bool stored(TQObject * = nullptr) const;
 
 	bool reset(TQObject *) const;
 };
diff --git a/sip/tqt/tqmotifplusstyle.sip b/sip/tqt/tqmotifplusstyle.sip
index d4d847b..f27921d 100644
--- a/sip/tqt/tqmotifplusstyle.sip
+++ b/sip/tqt/tqmotifplusstyle.sip
@@ -75,7 +75,7 @@ public:
 	void drawControl(ControlElement,TQPainter *,const TQStyleControlElementData&,ControlElementFlags,
 			 const TQRect &,const TQColorGroup &,
 			 SFlags = Style_Default,
-			 const TQStyleOption & = TQStyleOption(), const TQWidget *=0) const;
+			 const TQStyleOption & = TQStyleOption(), const TQWidget * = nullptr) const;
  
 	TQRect subRect(SubRect,const TQStyleControlElementData&, const ControlElementFlags,const TQWidget *) const;
  
@@ -83,17 +83,17 @@ public:
 				const TQRect &,const TQColorGroup &,
 				SFlags = Style_Default,SCFlags = SC_All,
 				SCFlags = SC_None,
-				const TQStyleOption & = TQStyleOption(),const TQWidget *=0) const; 
+				const TQStyleOption & = TQStyleOption(),const TQWidget * = nullptr) const; 
 
 	TQRect querySubControlMetrics(ComplexControl,const TQStyleControlElementData&,ControlElementFlags,
 				     SubControl,
-				     const TQStyleOption & = TQStyleOption(), const TQWidget *=0) const;
+				     const TQStyleOption & = TQStyleOption(), const TQWidget * = nullptr) const;
  
-	int pixelMetric(PixelMetric,const TQStyleControlElementData&,ControlElementFlags,const TQWidget * = 0) const;
+	int pixelMetric(PixelMetric,const TQStyleControlElementData&,ControlElementFlags,const TQWidget * = nullptr) const;
  
 	int styleHint(StyleHint,const TQStyleControlElementData&,ControlElementFlags,
 		      const TQStyleOption & = TQStyleOption(),
-		      TQStyleHintReturn * = 0, const TQWidget * = 0) const;
+		      TQStyleHintReturn * = nullptr, const TQWidget * = nullptr) const;
 
 protected:
 	bool eventFilter(TQObject *,TQEvent *);
diff --git a/sip/tqt/tqmotifstyle.sip b/sip/tqt/tqmotifstyle.sip
index e018a8e..97cf4d1 100644
--- a/sip/tqt/tqmotifstyle.sip
+++ b/sip/tqt/tqmotifstyle.sip
@@ -80,30 +80,30 @@ public:
 	void drawControl(ControlElement,TQPainter *,const TQStyleControlElementData&,ControlElementFlags,
 			 const TQRect &,const TQColorGroup &,
 			 SFlags = Style_Default,
-			 const TQStyleOption & = TQStyleOption(), const TQWidget *=0) const;
+			 const TQStyleOption & = TQStyleOption(), const TQWidget * = nullptr) const;
  
 	void drawComplexControl(ComplexControl,TQPainter *,const TQStyleControlElementData&,ControlElementFlags,
 				const TQRect &,const TQColorGroup &,
 				SFlags = Style_Default,SCFlags = SC_All,
 				SCFlags = SC_None,
-				const TQStyleOption & = TQStyleOption(),const TQWidget *=0) const;
+				const TQStyleOption & = TQStyleOption(),const TQWidget * = nullptr) const;
  
 	TQRect querySubControlMetrics(ComplexControl,const TQStyleControlElementData&,ControlElementFlags,SubControl,
-				     const TQStyleOption & = TQStyleOption(), const TQWidget *=0) const;
+				     const TQStyleOption & = TQStyleOption(), const TQWidget * = nullptr) const;
  
-	int pixelMetric(PixelMetric,const TQStyleControlElementData&,ControlElementFlags,const TQWidget * = 0) const;
+	int pixelMetric(PixelMetric,const TQStyleControlElementData&,ControlElementFlags,const TQWidget * = nullptr) const;
  
 	TQSize sizeFromContents(ContentsType,const TQStyleControlElementData&,ControlElementFlags,const TQSize &,
-			       const TQStyleOption & = TQStyleOption(),const TQWidget *=0) const; 
+			       const TQStyleOption & = TQStyleOption(),const TQWidget * = nullptr) const; 
 
 	TQRect subRect(SubRect,const TQStyleControlElementData&, const ControlElementFlags,const TQWidget *) const;
  
 	TQPixmap stylePixmap(StylePixmap,const TQStyleControlElementData&,ControlElementFlags,
-			    const TQStyleOption & = TQStyleOption(), const TQWidget * = 0) const;
+			    const TQStyleOption & = TQStyleOption(), const TQWidget * = nullptr) const;
  
 	int styleHint(StyleHint,const TQStyleControlElementData&,ControlElementFlags,
 		      const TQStyleOption & = TQStyleOption(),
-		      TQStyleHintReturn * = 0, const TQWidget * = 0) const;
+		      TQStyleHintReturn * = nullptr, const TQWidget * = nullptr) const;
 
 private:
 	TQMotifStyle(const TQMotifStyle &);
diff --git a/sip/tqt/tqmultilinedit.sip b/sip/tqt/tqmultilinedit.sip
index 4b3b4f7..0cc9892 100644
--- a/sip/tqt/tqmultilinedit.sip
+++ b/sip/tqt/tqmultilinedit.sip
@@ -73,7 +73,7 @@ class TQMultiLineEdit : TQTextEdit
 %End
 
 public:
-	TQMultiLineEdit(TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQMultiLineEdit(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	TQString textLine(int) const;
 	int numLines() const;
diff --git a/sip/tqt/tqobject.sip b/sip/tqt/tqobject.sip
index 6c16ef9..9699f7a 100644
--- a/sip/tqt/tqobject.sip
+++ b/sip/tqt/tqobject.sip
@@ -25,7 +25,7 @@
 <FuncSynopsis>
 	<FuncDef>bool <Function>disconnect</Function></FuncDef>
 	<ParamDef>const TQObject *<Parameter>receiver</Parameter></ParamDef>
-	<ParamDef>const char *<Parameter>member</Parameter> = 0</ParamDef>
+	<ParamDef>const char *<Parameter>member</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 Not yet implemented.
@@ -33,9 +33,9 @@ Not yet implemented.
 
 <FuncSynopsis>
 	<FuncDef>bool <Function>disconnect</Function></FuncDef>
-	<ParamDef>const char *<Parameter>signal</Parameter> = 0</ParamDef>
-	<ParamDef>const TQObject *<Parameter>receiver</Parameter> = 0</ParamDef>
-	<ParamDef>const char *<Parameter>member</Parameter> = 0</ParamDef>
+	<ParamDef>const char *<Parameter>signal</Parameter> = nullptr</ParamDef>
+	<ParamDef>const TQObject *<Parameter>receiver</Parameter> = nullptr</ParamDef>
+	<ParamDef>const char *<Parameter>member</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 Not yet implemented.
@@ -66,7 +66,7 @@ class TQObject : TQt
 %End
 
 public:
-	TQObject(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQObject(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 %ConvertToSubClassCode
 	static struct class_graph {
@@ -346,7 +346,7 @@ public:
 	// trUtf8() methods for a Python sub-class instance in the sub-class's
 	// ctor.
 
-	TQString tr(SIP_PYOBJECT sourceText /TypeHint="str"/,const char * = 0);
+	TQString tr(SIP_PYOBJECT sourceText /TypeHint="str"/,const char * = nullptr);
 %MethodCode
 		if (tqApp)
 		{
@@ -379,7 +379,7 @@ public:
 		}
 %End
 
-	TQString trUtf8(SIP_PYOBJECT sourceText /TypeHint="str"/,const char * = 0);
+	TQString trUtf8(SIP_PYOBJECT sourceText /TypeHint="str"/,const char * = nullptr);
 %MethodCode
 		if (tqApp)
 		{
@@ -466,11 +466,11 @@ public:
 	int startTimer(int);
 	void killTimer(int);
 	void killTimers();
-	TQObject *child(const char *,const char * = 0,bool = 1);
+	TQObject *child(const char *,const char * = nullptr,bool = 1);
 	const TQObjectList *children() const;
 	static const TQObjectList *objectTrees();
 
-	TQObjectList *queryList(char * = 0,char * = 0,bool = 1,bool = 1) const;
+	TQObjectList *queryList(char * = nullptr,char * = nullptr,bool = 1,bool = 1) const;
 %MethodCode
 		// The TQt implementation doesn't know anything about Python
 		// sub-classes.  For SIP v4 we get all classes and then use the
@@ -532,7 +532,7 @@ public:
 
 	static SIP_PYOBJECT connect(SIP_TQOBJECT,SIP_SIGNAL,SIP_PYCALLABLE);
 %MethodCode
-		sipRes = sipConnectRx(a0,a1,a2,0,0);
+		sipRes = sipConnectRx(a0,a1,a2,nullptr,0);
 %End
 
 	SIP_PYOBJECT connect(SIP_TQOBJECT,SIP_SIGNAL,SIP_SLOT) const;
@@ -547,11 +547,11 @@ public:
 
 	static SIP_PYOBJECT disconnect(SIP_TQOBJECT,SIP_SIGNAL,SIP_PYCALLABLE);
 %MethodCode
-		sipRes = sipDisconnectRx(a0,a1,a2,0);
+		sipRes = sipDisconnectRx(a0,a1,a2,nullptr);
 %End
 
-//	bool disconnect(const char * = 0,const TQObject * = 0,const char * = 0);
-//	bool disconnect(const TQObject *,const char * = 0);
+//	bool disconnect(const char * = nullptr,const TQObject * = nullptr,const char * = nullptr);
+//	bool disconnect(const TQObject *,const char * = nullptr);
 	void dumpObjectTree();
 	void dumpObjectInfo();
 	TQObject *parent() const;
@@ -736,60 +736,60 @@ PyTypeObject pytqtWrapperType_Type = {
     "tqt.pytqtWrapperType",   /* tp_name */
     sizeof (sipWrapperType),    /* tp_basicsize */
     0,                      /* tp_itemsize */
-    0,                      /* tp_dealloc */
+    nullptr,                      /* tp_dealloc */
 #if PY_VERSION_HEX >= 0x03080000
     0,                      /* tp_vectorcall_offset */
 #else
     0,                      /* tp_print */
 #endif
-    0,                      /* tp_getattr */
-    0,                      /* tp_setattr */
+    nullptr,                      /* tp_getattr */
+    nullptr,                      /* tp_setattr */
 #if PY_VERSION_HEX >= 0x03050000
-    0,                      /* tp_as_async */
+    nullptr,                      /* tp_as_async */
 #else
     0,                      /* tp_reserved */
 #endif
-    0,                      /* tp_repr */
-    0,                      /* tp_as_number */
-    0,                      /* tp_as_sequence */
-    0,                      /* tp_as_mapping */
-    0,                      /* tp_hash */
-    0,                      /* tp_call */
-    0,                      /* tp_str */
-    0,                      /* tp_getattro */
-    0,                      /* tp_setattro */
-    0,                      /* tp_as_buffer */
+    nullptr,                      /* tp_repr */
+    nullptr,                      /* tp_as_number */
+    nullptr,                      /* tp_as_sequence */
+    nullptr,                      /* tp_as_mapping */
+    nullptr,                      /* tp_hash */
+    nullptr,                      /* tp_call */
+    nullptr,                      /* tp_str */
+    nullptr,                      /* tp_getattro */
+    nullptr,                      /* tp_setattro */
+    nullptr,                      /* tp_as_buffer */
     Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,   /* tp_flags */
-    0,                      /* tp_doc */
-    0,                      /* tp_traverse */
-    0,                      /* tp_clear */
-    0,                      /* tp_richcompare */
+    nullptr,                      /* tp_doc */
+    nullptr,                      /* tp_traverse */
+    nullptr,                      /* tp_clear */
+    nullptr,                      /* tp_richcompare */
     0,                      /* tp_weaklistoffset */
-    0,                      /* tp_iter */
-    0,                      /* tp_iternext */
-    0,                      /* tp_methods */
-    0,                      /* tp_members */
-    0,                      /* tp_getset */
-    0,                      /* tp_base */
-    0,                      /* tp_dict */
-    0,                      /* tp_descr_get */
-    0,                      /* tp_descr_set */
+    nullptr,                      /* tp_iter */
+    nullptr,                      /* tp_iternext */
+    nullptr,                      /* tp_methods */
+    nullptr,                      /* tp_members */
+    nullptr,                      /* tp_getset */
+    nullptr,                      /* tp_base */
+    nullptr,                      /* tp_dict */
+    nullptr,                      /* tp_descr_get */
+    nullptr,                      /* tp_descr_set */
     0,                      /* tp_dictoffset */
-    0,                      /* tp_init */
-    0,                      /* tp_alloc */
-    0,                      /* tp_new */
-    0,                      /* tp_free */
-    0,                      /* tp_is_gc */
-    0,                      /* tp_bases */
-    0,                      /* tp_mro */
-    0,                      /* tp_cache */
-    0,                      /* tp_subclasses */
-    0,                      /* tp_weaklist */
-    0,                      /* tp_del */
+    nullptr,                      /* tp_init */
+    nullptr,                      /* tp_alloc */
+    nullptr,                      /* tp_new */
+    nullptr,                      /* tp_free */
+    nullptr,                      /* tp_is_gc */
+    nullptr,                      /* tp_bases */
+    nullptr,                      /* tp_mro */
+    nullptr,                      /* tp_cache */
+    nullptr,                      /* tp_subclasses */
+    nullptr,                      /* tp_weaklist */
+    nullptr,                      /* tp_del */
     0,                      /* tp_version_tag */
-    0,                      /* tp_finalize */
+    nullptr,                      /* tp_finalize */
 #if PY_VERSION_HEX >= 0x03080000
-    0,                      /* tp_vectorcall */
+    nullptr,                      /* tp_vectorcall */
 #endif
 #if PY_VERSION_HEX == 0x03080000
     0,                      /* tp_print (deprecated) */
@@ -864,7 +864,7 @@ static pytqt3PySig *find_py_signal(pytqtWrapper *pw, const char *sig)
         if (sipTQtSameSignalSlotName(ps->name, sig))
             return ps;
 
-    return 0;
+    return nullptr;
 }
 
 
@@ -905,7 +905,7 @@ static void pytqtWrapper_dealloc(pytqtWrapper *self)
         ps = self->pySigList;
         self->pySigList = ps->next;
 
-        while ((psrx = ps->rxlist))
+        while ((psrx = ps->rxlist) != nullptr)
         {
             ps->rxlist = psrx->next;
             free_slot_list(psrx);
@@ -958,54 +958,54 @@ static sipWrapperType pytqtWrapper_Type = {
 #else
             0,              /* tp_print */
 #endif
-            0,              /* tp_getattr */
-            0,              /* tp_setattr */
+            nullptr,              /* tp_getattr */
+            nullptr,              /* tp_setattr */
 #if PY_VERSION_HEX >= 0x03050000
-            0,              /* tp_as_async */
+            nullptr,              /* tp_as_async */
 #else
             0,              /* tp_reserved */
 #endif
-            0,              /* tp_repr */
-            0,              /* tp_as_number */
-            0,              /* tp_as_sequence */
-            0,              /* tp_as_mapping */
-            0,              /* tp_hash */
-            0,              /* tp_call */
-            0,              /* tp_str */
-            0,              /* tp_getattro */
-            0,              /* tp_setattro */
-            0,              /* tp_as_buffer */
+            nullptr,              /* tp_repr */
+            nullptr,              /* tp_as_number */
+            nullptr,              /* tp_as_sequence */
+            nullptr,              /* tp_as_mapping */
+            nullptr,              /* tp_hash */
+            nullptr,              /* tp_call */
+            nullptr,              /* tp_str */
+            nullptr,              /* tp_getattro */
+            nullptr,              /* tp_setattro */
+            nullptr,              /* tp_as_buffer */
             Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC,  /* tp_flags */
-            0,              /* tp_doc */
+            nullptr,              /* tp_doc */
             (traverseproc)pytqtWrapper_traverse, /* tp_traverse */
             (inquiry)pytqtWrapper_clear, /* tp_clear */
-            0,              /* tp_richcompare */
+            nullptr,              /* tp_richcompare */
             0,              /* tp_weaklistoffset */
-            0,              /* tp_iter */
-            0,              /* tp_iternext */
-            0,              /* tp_methods */
-            0,              /* tp_members */
-            0,              /* tp_getset */
-            0,              /* tp_base */
-            0,              /* tp_dict */
-            0,              /* tp_descr_get */
-            0,              /* tp_descr_set */
+            nullptr,              /* tp_iter */
+            nullptr,              /* tp_iternext */
+            nullptr,              /* tp_methods */
+            nullptr,              /* tp_members */
+            nullptr,              /* tp_getset */
+            nullptr,              /* tp_base */
+            nullptr,              /* tp_dict */
+            nullptr,              /* tp_descr_get */
+            nullptr,              /* tp_descr_set */
             0,              /* tp_dictoffset */
-            0,              /* tp_init */
-            0,              /* tp_alloc */
-            0,              /* tp_new */
-            0,              /* tp_free */
-            0,              /* tp_is_gc */
-            0,              /* tp_bases */
-            0,              /* tp_mro */
-            0,              /* tp_cache */
-            0,              /* tp_subclasses */
-            0,              /* tp_weaklist */
-            0,              /* tp_del */
+            nullptr,              /* tp_init */
+            nullptr,              /* tp_alloc */
+            nullptr,              /* tp_new */
+            nullptr,              /* tp_free */
+            nullptr,              /* tp_is_gc */
+            nullptr,              /* tp_bases */
+            nullptr,              /* tp_mro */
+            nullptr,              /* tp_cache */
+            nullptr,              /* tp_subclasses */
+            nullptr,              /* tp_weaklist */
+            nullptr,              /* tp_del */
             0,              /* tp_version_tag */
-            0,              /* tp_finalize */
+            nullptr,              /* tp_finalize */
 #if PY_VERSION_HEX >= 0x03080000
-            0,              /* tp_vectorcall */
+            nullptr,              /* tp_vectorcall */
 #endif
 #if PY_VERSION_HEX == 0x03080000
             0,              /* tp_print (deprecated) */
@@ -1014,8 +1014,8 @@ static sipWrapperType pytqtWrapper_Type = {
 #if !defined(STACKLESS)
     },
 #endif
-    0,
-    0,
+    nullptr,
+    nullptr,
     0
 };
 
@@ -1156,7 +1156,7 @@ UniversalSlot::UniversalSlot(TQObject *tqtx, pytqt3SlotConnection *connection, c
 	if (nextus)
 		nextus -> prevus = this;
 
-	prevus = 0;
+	prevus = nullptr;
 	unislots = this;
 }
 
@@ -1180,15 +1180,15 @@ UniversalSlot::~UniversalSlot()
 
 
 // The last Python signal sender.
-static PyObject *py_sender = 0;
+static PyObject *py_sender = nullptr;
 
 
-TQMetaObject *UniversalSlot::metaObj = 0;
+TQMetaObject *UniversalSlot::metaObj = nullptr;
 
 static TQMetaObjectCleanUp cleanUp_UniversalSlot("UniversalSlot", &UniversalSlot::staticMetaObject);
 
-TQObject *UniversalSlot::lastSender = 0;
-UniversalSlot *UniversalSlot::unislots = 0;
+TQObject *UniversalSlot::lastSender = nullptr;
+UniversalSlot *UniversalSlot::unislots = nullptr;
 
 
 TQMetaObject *UniversalSlot::staticMetaObject()
@@ -1198,7 +1198,7 @@ TQMetaObject *UniversalSlot::staticMetaObject()
 
 	// Define a single slot that takes no arguments and so will accept any
 	// connection.
-	static const TQUMethod slot = {"unislot", 0, 0};
+	static const TQUMethod slot = {"unislot", 0, nullptr};
 	static const TQMetaData slot_tbl[] = {
 		{"unislot()", &slot, TQMetaData::Public}
 	};
@@ -1206,12 +1206,12 @@ TQMetaObject *UniversalSlot::staticMetaObject()
 	metaObj = TQMetaObject::new_metaobject(
 			"UniversalSlot", TQObject::staticMetaObject(),
 			slot_tbl, 1,
-			0, 0,
+			nullptr, 0,
 #ifndef TQT_NO_PROPERTIES
-			0, 0,
-			0, 0,
+			nullptr, 0,
+			nullptr, 0,
 #endif
-			0, 0);
+			nullptr, 0);
 
 	cleanUp_UniversalSlot.setMetaObject(metaObj);
 
@@ -1237,7 +1237,7 @@ bool UniversalSlot::tqt_invoke(int id, TQUObject *tqargs)
 	if (lastSender->inherits("TQSignal"))
 		tqv = &static_QUType_TQVariant.get(tqargs + 1);
 	else
-		tqv = 0;
+		tqv = nullptr;
 
 #ifdef WITH_THREAD
 	PyGILState_STATE state = PyGILState_Ensure();
@@ -1326,17 +1326,17 @@ bool UniversalSlot::tqt_invoke(int id, TQUObject *tqargs)
 
 			case class_sat:
 			case classp_sat:
-				arg = sipConvertFromInstance((void *)static_QUType_ptr.get(tqargs),psig->sg_args[a].u.wt,0);
+				arg = sipConvertFromInstance((void *)static_QUType_ptr.get(tqargs),psig->sg_args[a].u.wt,nullptr);
 				break;
 
 			case mtype_sat:
 			case mtypep_sat:
-				arg = sipConvertFromMappedType((void *)static_QUType_ptr.get(tqargs),psig->sg_args[a].u.mt,0);
+				arg = sipConvertFromMappedType((void *)static_QUType_ptr.get(tqargs),psig->sg_args[a].u.mt,nullptr);
 				break;
 
 			case tqvariant_sat:
 			case tqvariantp_sat:
-				arg = sipConvertFromInstance((void *)&static_QUType_TQVariant.get(tqargs),sipClass_TQVariant,0);
+				arg = sipConvertFromInstance((void *)&static_QUType_TQVariant.get(tqargs),sipClass_TQVariant,nullptr);
 				break;
 
 			case pyobject_sat:
@@ -1390,25 +1390,25 @@ static void *sipTQtCreateUniversalSlot(sipWrapper *tx, const char *sig,
     /* Initialise the connection. */
     if (tx && !sipGetAddress(&tx->super))
     {
-        conn.sc_transmitter = 0;
+        conn.sc_transmitter = nullptr;
     }
     else
     {
-        conn.sc_transmitter = (tx ? sipGetCppPtr(&tx->super, 0) : 0);
+        conn.sc_transmitter = (tx ? sipGetCppPtr(&tx->super, nullptr) : nullptr);
     }
 
     /* Save the real slot. */
     if (sipSaveSlot(&conn.sc_slot, rxObj, slot) < 0)
-        return 0;
+        return nullptr;
 
     /* Parse the signature and create the universal slot. */
     if (!(conn.sc_signature = parseSignature(sig)))
     {
         sipFreeSipslot(&conn.sc_slot);
-        return 0;
+        return nullptr;
     }
 
-	TQObject *tqtx = 0;
+	TQObject *tqtx = nullptr;
 
 	// See if the transmitter is a TQObject in which case we will connect
 	// to it's destroyed signal so that the universal slot can be destroyed
@@ -1445,7 +1445,7 @@ static pytqt3Signature *parseSignature(const char *sig)
 
     psig->sg_signature = (char *)&psig[1];
     psig->sg_nrargs = 0;
-    psig->sg_args = 0;
+    psig->sg_args = nullptr;
 
     // Find the start and end of the arguments.
     sp = strchr(sig, '(');
@@ -1796,7 +1796,7 @@ static void *sipTQtFindSlot(void *tx, const char *sig, PyObject *rxObj,
 		}
     }
 
-	return 0;
+	return nullptr;
 }
 
 
@@ -1851,7 +1851,7 @@ static sipSlot *sipTQtFindSipslot(void *tx, void **context)
     if (!us)
         us = UniversalSlot::unislots;
 
-    sipSlot *slot = 0;
+    sipSlot *slot = nullptr;
 
     while (us)
     {
@@ -1923,7 +1923,7 @@ static void sipTQtDisconnectPySignal(PyObject *txObj, const char *sig,
 {
     pytqt3PySig *ps;
 
-    if ((ps = find_py_signal((pytqtWrapper *)txObj, sig)))
+    if ((ps = find_py_signal((pytqtWrapper *)txObj, sig)) != nullptr)
     {
         pytqt3SlotList **psrxp;
 
@@ -2004,7 +2004,7 @@ int pytqtEmitSignal(PyObject *self, const char *sig, PyObject *sigargs)
         pytqt3SlotList *rxlist = ps->rxlist;
 
         // Forget the last TQt sender and remember this one.
-	    UniversalSlot::lastSender = 0;
+	    UniversalSlot::lastSender = nullptr;
         py_sender = self;
 
         // Apply the arguments to each slot method.
diff --git a/sip/tqt/tqobjectlist.sip b/sip/tqt/tqobjectlist.sip
index 9cefc62..90f411c 100644
--- a/sip/tqt/tqobjectlist.sip
+++ b/sip/tqt/tqobjectlist.sip
@@ -46,7 +46,7 @@ return type of a function or the type of an argument, a Python list of
 	if (!(pl = PyList_New(0)))
 		return nullptr;
 
-	for (TQObjectListIt it(*sipCpp); (obj = it.current()); ++it)
+	for (TQObjectListIt it(*sipCpp); (obj = it.current()) != nullptr; ++it)
 	{
 		PyObject *inst;
 
@@ -89,7 +89,7 @@ return type of a function or the type of an argument, a Python list of
 		// We apply the transfer to the list itself, not the elements.
 		// Note that any temporary element will never be destroyed.
 		// There is nothing that can be done about this.
-		tqobj = reinterpret_cast<TQObject *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_TQObject,0,0,0,sipIsErr));
+		tqobj = reinterpret_cast<TQObject *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_TQObject,nullptr,0,nullptr,sipIsErr));
 
 		if (*sipIsErr)
 		{
diff --git a/sip/tqt/tqpainter.sip b/sip/tqt/tqpainter.sip
index 6761642..6e19a69 100644
--- a/sip/tqt/tqpainter.sip
+++ b/sip/tqt/tqpainter.sip
@@ -31,7 +31,7 @@
         <ParamDef>int <Parameter>flags</Parameter></ParamDef>
         <ParamDef>const char *<Parameter>str</Parameter></ParamDef>
         <ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
-        <ParamDef>char **<Parameter>intern</Parameter> = 0</ParamDef>
+        <ParamDef>char **<Parameter>intern</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 The <Literal>intern</Literal> parameter is not supported.
@@ -43,7 +43,7 @@ The <Literal>intern</Literal> parameter is not supported.
         <ParamDef>int <Parameter>flags</Parameter></ParamDef>
         <ParamDef>const char *<Parameter>str</Parameter></ParamDef>
         <ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
-        <ParamDef>char **<Parameter>intern</Parameter> = 0</ParamDef>
+        <ParamDef>char **<Parameter>intern</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 The <Literal>intern</Literal> parameter is not supported.
@@ -58,8 +58,8 @@ The <Literal>intern</Literal> parameter is not supported.
         <ParamDef>int <Parameter>flags</Parameter></ParamDef>
         <ParamDef>const char *<Parameter>str</Parameter></ParamDef>
         <ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
-        <ParamDef>TQRect *<Parameter>br</Parameter> = 0</ParamDef>
-        <ParamDef>char **<Parameter>intern</Parameter> = 0</ParamDef>
+        <ParamDef>TQRect *<Parameter>br</Parameter> = nullptr</ParamDef>
+        <ParamDef>char **<Parameter>intern</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 The <Literal>intern</Literal> parameter is not supported.
@@ -71,8 +71,8 @@ The <Literal>intern</Literal> parameter is not supported.
         <ParamDef>int <Parameter>flags</Parameter></ParamDef>
         <ParamDef>const char *<Parameter>str</Parameter></ParamDef>
         <ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
-        <ParamDef>TQRect *<Parameter>br</Parameter> = 0</ParamDef>
-        <ParamDef>char **<Parameter>intern</Parameter> = 0</ParamDef>
+        <ParamDef>TQRect *<Parameter>br</Parameter> = nullptr</ParamDef>
+        <ParamDef>char **<Parameter>intern</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 The <Literal>intern</Literal> parameter is not supported.
@@ -261,8 +261,8 @@ public:
 	void drawText(int,int,const TQString &,int,int,TextDirection = Auto);
 	void drawText(const TQPoint &,const TQString &,int,int,
 		      TextDirection = Auto);
-	void drawText(int,int,int,int,int,const TQString &,int = -1,TQRect * = 0);
-	void drawText(const TQRect &,int,const TQString &,int = -1,TQRect * = 0);
+	void drawText(int,int,int,int,int,const TQString &,int = -1,TQRect * = nullptr);
+	void drawText(const TQRect &,int,const TQString &,int = -1,TQRect * = nullptr);
 
 	TQRect boundingRect(int,int,int,int,int,const TQString &,int = -1);
 	TQRect boundingRect(const TQRect &,int,const TQString &,int = -1);
diff --git a/sip/tqt/tqpicture.sip b/sip/tqt/tqpicture.sip
index 9bcd839..df20d08 100644
--- a/sip/tqt/tqpicture.sip
+++ b/sip/tqt/tqpicture.sip
@@ -63,10 +63,10 @@ public:
 
 	bool play(TQPainter *);
 
-	bool load(TQIODevice *,const char * = 0);
-	bool load(const TQString &,const char * = 0);
-	bool save(TQIODevice *,const char * = 0);
-	bool save(const TQString &,const char * = 0);
+	bool load(TQIODevice *,const char * = nullptr);
+	bool load(const TQString &,const char * = nullptr);
+	bool save(TQIODevice *,const char * = nullptr);
+	bool save(const TQString &,const char * = nullptr);
 
 	TQRect boundingRect() const;
 	void setBoundingRect(const TQRect &);
diff --git a/sip/tqt/tqpixmap.sip b/sip/tqt/tqpixmap.sip
index 24bdef4..b820763 100644
--- a/sip/tqt/tqpixmap.sip
+++ b/sip/tqt/tqpixmap.sip
@@ -34,7 +34,7 @@ This takes a list of strings as its parameter.
         <FuncDef>bool <Function>loadFromData</Function></FuncDef>
         <ParamDef>const uchar *<Parameter>buf</Parameter></ParamDef>
         <ParamDef>uint <Parameter>len</Parameter></ParamDef>
-        <ParamDef>const char *<Parameter>format</Parameter> = 0</ParamDef>
+        <ParamDef>const char *<Parameter>format</Parameter> = nullptr</ParamDef>
         <ParamDef>ColorMode <Parameter>mode</Parameter> = Auto</ParamDef>
 </FuncSynopsis>
 <Para>
@@ -83,7 +83,7 @@ public:
 	TQPixmap(const TQImage &);
 	TQPixmap(int,int,int = -1,Optimization = DefaultOptim);
 	TQPixmap(const TQSize &,int = -1,Optimization = DefaultOptim);
-	TQPixmap(const TQString &,const char * = 0,ColorMode = Auto);
+	TQPixmap(const TQString &,const char * = nullptr,ColorMode = Auto);
 	TQPixmap(const TQString &,const char *,int);
 
 	TQPixmap(SIP_PYLIST) [(const char **)];
@@ -136,12 +136,12 @@ public:
 	bool convertFromImage(const TQImage &,ColorMode = Auto);
 	bool convertFromImage(const TQImage &,int);
 	static const char *imageFormat(const TQString &);
-	bool load(const TQString &,const char * = 0,ColorMode = Auto);
+	bool load(const TQString &,const char * = nullptr,ColorMode = Auto);
 	bool load(const TQString &,const char *,int);
 	bool loadFromData(const uchar * /Array/,uint /ArraySize/,
-			  const char * = 0,ColorMode = Auto);
+			  const char * = nullptr,ColorMode = Auto);
 //	bool loadFromData(const uchar *,uint,const char *,int);
-	bool loadFromData(TQByteArray,const char * = 0,int = 0);
+	bool loadFromData(TQByteArray,const char * = nullptr,int = 0);
 	bool save(const TQString &,const char *,int = -1) const;
 	bool save(TQIODevice *,const char *,int = -1) const;
 	int serialNumber() const;
diff --git a/sip/tqt/tqplatinumstyle.sip b/sip/tqt/tqplatinumstyle.sip
index 78da451..be55b44 100644
--- a/sip/tqt/tqplatinumstyle.sip
+++ b/sip/tqt/tqplatinumstyle.sip
@@ -58,18 +58,18 @@ public:
 	void drawControl(ControlElement,TQPainter *,const TQStyleControlElementData&,ControlElementFlags,
 			 const TQRect &,const TQColorGroup &,
 			 SFlags = Style_Default,
-			 const TQStyleOption & = TQStyleOption(), const TQWidget *=0) const;
+			 const TQStyleOption & = TQStyleOption(), const TQWidget * = nullptr) const;
  
 	void drawComplexControl(ComplexControl,TQPainter *,const TQStyleControlElementData&,ControlElementFlags,
 				const TQRect &,const TQColorGroup &,
 				SFlags = Style_Default,SCFlags = SC_All,
 				SCFlags = SC_None,
-				const TQStyleOption & = TQStyleOption(),const TQWidget *=0) const;
+				const TQStyleOption & = TQStyleOption(),const TQWidget * = nullptr) const;
  
 	TQRect querySubControlMetrics(ComplexControl,const TQStyleControlElementData&,ControlElementFlags,SubControl,
-				     const TQStyleOption & = TQStyleOption(), const TQWidget *=0) const;
+				     const TQStyleOption & = TQStyleOption(), const TQWidget * = nullptr) const;
  
-	int pixelMetric(PixelMetric,const TQStyleControlElementData&,ControlElementFlags,const TQWidget * = 0) const;
+	int pixelMetric(PixelMetric,const TQStyleControlElementData&,ControlElementFlags,const TQWidget * = nullptr) const;
  
 	TQRect subRect(SubRect,const TQStyleControlElementData&, const ControlElementFlags,const TQWidget *) const;
 
diff --git a/sip/tqt/tqpopupmenu.sip b/sip/tqt/tqpopupmenu.sip
index 0e08bf5..005ee7c 100644
--- a/sip/tqt/tqpopupmenu.sip
+++ b/sip/tqt/tqpopupmenu.sip
@@ -63,7 +63,7 @@ class TQPopupMenu : TQFrame, TQMenuData
 %End
 
 public:
-	TQPopupMenu(TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQPopupMenu(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	void popup(const TQPoint &,int = -1);
 	void updateItem(int);
diff --git a/sip/tqt/tqprintdialog.sip b/sip/tqt/tqprintdialog.sip
index ad2e952..23fd1e6 100644
--- a/sip/tqt/tqprintdialog.sip
+++ b/sip/tqt/tqprintdialog.sip
@@ -39,9 +39,9 @@ class TQPrintDialog : TQDialog
 %End
 
 public:
-	TQPrintDialog(TQPrinter *,TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQPrintDialog(TQPrinter *,TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
-	static bool getPrinterSetup(TQPrinter *,TQWidget * = 0);
+	static bool getPrinterSetup(TQPrinter *,TQWidget * = nullptr);
 	static void setGlobalPrintDialog(TQPrintDialog *);
 
 	void setPrinter(TQPrinter *,bool = 0);
diff --git a/sip/tqt/tqprinter.sip b/sip/tqt/tqprinter.sip
index fbe7709..283684d 100644
--- a/sip/tqt/tqprinter.sip
+++ b/sip/tqt/tqprinter.sip
@@ -159,7 +159,7 @@ public:
 	bool abort();
 	bool aborted() const;
 
-	bool setup(TQWidget * = 0);
+	bool setup(TQWidget * = nullptr);
 
 	PaperSource paperSource()   const;
 	virtual void setPaperSource(PaperSource);
diff --git a/sip/tqt/tqprocess.sip b/sip/tqt/tqprocess.sip
index 8581534..04577e0 100644
--- a/sip/tqt/tqprocess.sip
+++ b/sip/tqt/tqprocess.sip
@@ -36,11 +36,11 @@ class TQProcess : TQObject
 %End
 
 public:
-	TQProcess(TQObject * /TransferThis/ = 0,const char * = 0);
-	TQProcess(const TQString &,TQObject * /TransferThis/ = 0,
-		 const char * = 0);
-	TQProcess(const TQStringList &,TQObject * /TransferThis/ = 0,
-		 const char * = 0);
+	TQProcess(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
+	TQProcess(const TQString &,TQObject * /TransferThis/ = nullptr,
+		 const char * = nullptr);
+	TQProcess(const TQStringList &,TQObject * /TransferThis/ = nullptr,
+		 const char * = nullptr);
 
 	TQStringList arguments() const;
 	void clearArguments();
@@ -59,9 +59,9 @@ public:
 	void setCommunication(int);
 	int communication() const;
 
-	virtual bool start(TQStringList * = 0);
-	virtual bool launch(const TQString &, TQStringList * = 0 );
-	virtual bool launch(const TQByteArray &,TQStringList * = 0 );
+	virtual bool start(TQStringList * = nullptr);
+	virtual bool launch(const TQString &, TQStringList * = nullptr );
+	virtual bool launch(const TQByteArray &,TQStringList * = nullptr );
 
 	bool isRunning() const;
 	bool normalExit() const;
diff --git a/sip/tqt/tqprogressbar.sip b/sip/tqt/tqprogressbar.sip
index 0bae238..ad4e7cf 100644
--- a/sip/tqt/tqprogressbar.sip
+++ b/sip/tqt/tqprogressbar.sip
@@ -36,8 +36,8 @@ class TQProgressBar : TQFrame
 %End
 
 public:
-	TQProgressBar(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
-	TQProgressBar(int,TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+	TQProgressBar(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,WFlags = 0);
+	TQProgressBar(int,TQWidget * /TransferThis/ = nullptr,const char * = nullptr,WFlags = 0);
 
 	int totalSteps() const;
 	int progress() const;
diff --git a/sip/tqt/tqprogressdialog.sip b/sip/tqt/tqprogressdialog.sip
index 4b21b55..950db7c 100644
--- a/sip/tqt/tqprogressdialog.sip
+++ b/sip/tqt/tqprogressdialog.sip
@@ -39,10 +39,10 @@ class TQProgressDialog : TQDialog
 %End
 
 public:
-	TQProgressDialog(TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0,
+	TQProgressDialog(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,bool = 0,
 			WFlags = 0);
 	TQProgressDialog(const TQString &,const TQString &,int,
-			TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0,
+			TQWidget * /TransferThis/ = nullptr,const char * = nullptr,bool = 0,
 			WFlags = 0);
 
 	void setLabel(TQLabel *);
diff --git a/sip/tqt/tqptrlist.sip b/sip/tqt/tqptrlist.sip
index f586a5f..920401f 100644
--- a/sip/tqt/tqptrlist.sip
+++ b/sip/tqt/tqptrlist.sip
@@ -90,7 +90,7 @@ template<Type>
 		// We apply the transfer to the list itself, not the elements.
 		// Note that any temporary element will never be destroyed.
 		// There is nothing that can be done about this.
-		tqpl -> append(reinterpret_cast<Type *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_Type,0,0,0,sipIsErr)));
+		tqpl -> append(reinterpret_cast<Type *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_Type,nullptr,0,nullptr,sipIsErr)));
  
 		if (*sipIsErr)
 		{
diff --git a/sip/tqt/tqpushbutton.sip b/sip/tqt/tqpushbutton.sip
index 77c4d7a..6cf6734 100644
--- a/sip/tqt/tqpushbutton.sip
+++ b/sip/tqt/tqpushbutton.sip
@@ -37,9 +37,9 @@ class TQPushButton : TQButton
 %End
 
 public:
-	TQPushButton(TQWidget * /TransferThis/,const char * = 0);
-	TQPushButton(const TQString &,TQWidget * /TransferThis/,const char * = 0);
-	TQPushButton(const TQIconSet &,const TQString &,TQWidget * /TransferThis/,const char * = 0);
+	TQPushButton(TQWidget * /TransferThis/,const char * = nullptr);
+	TQPushButton(const TQString &,TQWidget * /TransferThis/,const char * = nullptr);
+	TQPushButton(const TQIconSet &,const TQString &,TQWidget * /TransferThis/,const char * = nullptr);
 
 	TQSize sizeHint() const;
 
diff --git a/sip/tqt/tqradiobutton.sip b/sip/tqt/tqradiobutton.sip
index ea5c5d3..e3d8574 100644
--- a/sip/tqt/tqradiobutton.sip
+++ b/sip/tqt/tqradiobutton.sip
@@ -36,8 +36,8 @@ class TQRadioButton : TQButton
 %End
 
 public:
-	TQRadioButton(TQWidget * /TransferThis/,const char * = 0);
-	TQRadioButton(const TQString &,TQWidget * /TransferThis/,const char * = 0);
+	TQRadioButton(TQWidget * /TransferThis/,const char * = nullptr);
+	TQRadioButton(const TQString &,TQWidget * /TransferThis/,const char * = nullptr);
 
 	bool isChecked() const;
 
diff --git a/sip/tqt/tqregexp.sip b/sip/tqt/tqregexp.sip
index 02feb48..bdbcb03 100644
--- a/sip/tqt/tqregexp.sip
+++ b/sip/tqt/tqregexp.sip
@@ -31,7 +31,7 @@ supported.
         <FuncDef>int <Function>match</Function></FuncDef>
         <ParamDef>const char *<Parameter>str</Parameter></ParamDef>
         <ParamDef>int <Parameter>index</Parameter> = 0</ParamDef>
-        <ParamDef>int *<Parameter>len</Parameter> = 0</ParamDef>
+        <ParamDef>int *<Parameter>len</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This takes <Literal>str</Literal> and <Literal>index</Literal> parameters and
@@ -43,7 +43,7 @@ returns a tuple of the <Literal>int</Literal> result and the
         <FuncDef>int <Function>match</Function></FuncDef>
         <ParamDef>const TQString &<Parameter>str</Parameter></ParamDef>
         <ParamDef>int <Parameter>index</Parameter> = 0</ParamDef>
-        <ParamDef>int *<Parameter>len</Parameter> = 0</ParamDef>
+        <ParamDef>int *<Parameter>len</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This takes <Literal>str</Literal> and <Literal>index</Literal> parameters and
diff --git a/sip/tqt/tqscrollbar.sip b/sip/tqt/tqscrollbar.sip
index dc6a096..94fc12a 100644
--- a/sip/tqt/tqscrollbar.sip
+++ b/sip/tqt/tqscrollbar.sip
@@ -36,10 +36,10 @@ class TQScrollBar : TQWidget, TQRangeControl
 %End
 
 public:
-	TQScrollBar(TQWidget * /TransferThis/,const char * = 0);
-	TQScrollBar(Orientation,TQWidget * /TransferThis/,const char * = 0);
+	TQScrollBar(TQWidget * /TransferThis/,const char * = nullptr);
+	TQScrollBar(Orientation,TQWidget * /TransferThis/,const char * = nullptr);
 	TQScrollBar(int,int,int,int,int,Orientation,TQWidget * /TransferThis/,
-		   const char * = 0);
+		   const char * = nullptr);
 
 	virtual void setOrientation(Orientation);
 	Orientation orientation() const;
diff --git a/sip/tqt/tqscrollview.sip b/sip/tqt/tqscrollview.sip
index 91a4a16..253438b 100644
--- a/sip/tqt/tqscrollview.sip
+++ b/sip/tqt/tqscrollview.sip
@@ -58,7 +58,7 @@ class TQScrollView : TQFrame
 %End
 
 public:
-	TQScrollView(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+	TQScrollView(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,WFlags = 0);
 
 	enum ResizePolicy {
 		Default,
diff --git a/sip/tqt/tqsettings.sip b/sip/tqt/tqsettings.sip
index 3831bfd..3973cdb 100644
--- a/sip/tqt/tqsettings.sip
+++ b/sip/tqt/tqsettings.sip
@@ -26,7 +26,7 @@
 	<FuncDef>bool <Function>readBoolEntry</Function></FuncDef>
 	<ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
 	<ParamDef>bool <Parameter>def</Parameter> = 0</ParamDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 The <Literal>ok</Literal> is not passed and the returned value is a tuple of
@@ -37,7 +37,7 @@ the <Literal>bool</Literal> result and the <Literal>ok</Literal> flag.
 <FuncDef>double <Function>readDoubleEntry</Function></FuncDef>
 	<ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
 	<ParamDef>double <Parameter>def</Parameter> = 0</ParamDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 The <Literal>ok</Literal> is not passed and the returned value is a tuple of
@@ -48,7 +48,7 @@ the <Literal>double</Literal> result and the <Literal>ok</Literal> flag.
 <FuncDef>TQString <Function>readEntry</Function></FuncDef>
 	<ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
 	<ParamDef>const TQString &amp;<Parameter>def</Parameter> = TQString::null</ParamDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 The <Literal>ok</Literal> is not passed and the returned value is a tuple of
@@ -58,7 +58,7 @@ the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
 <FuncSynopsis>
 <FuncDef>TQStringList <Function>readListEntry</Function></FuncDef>
 	<ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 The <Literal>ok</Literal> is not passed and the returned value is a tuple of
@@ -69,7 +69,7 @@ the <Literal>TQStringList</Literal> result and the <Literal>ok</Literal> flag.
 <FuncDef>TQStringList <Function>readListEntry</Function></FuncDef>
 	<ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
 	<ParamDef>const TQChar &amp;<Parameter>separator</Parameter></ParamDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 The <Literal>ok</Literal> is not passed and the returned value is a tuple of
@@ -80,7 +80,7 @@ the <Literal>TQStringList</Literal> result and the <Literal>ok</Literal> flag.
 <FuncDef>int <Function>readNumEntry</Function></FuncDef>
 	<ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
 	<ParamDef>int <Parameter>def</Parameter> = 0</ParamDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 The <Literal>ok</Literal> is not passed and the returned value is a tuple of
@@ -136,13 +136,13 @@ public:
 	TQStringList entryList(const TQString &) const;
 	TQStringList subkeyList(const TQString &) const;
 
-	TQStringList readListEntry(const TQString &,bool * = 0);
-	TQStringList readListEntry(const TQString &,const TQChar &,bool * = 0);
+	TQStringList readListEntry(const TQString &,bool * = nullptr);
+	TQStringList readListEntry(const TQString &,const TQChar &,bool * = nullptr);
 	TQString readEntry(const TQString &,const TQString & = TQString::null,
-			  bool * = 0);
-	int readNumEntry(const TQString &,int = 0,bool * = 0);
-	double readDoubleEntry(const TQString &,double = 0,bool * = 0);
-	bool readBoolEntry(const TQString &,bool = 0,bool * = 0);
+			  bool * = nullptr);
+	int readNumEntry(const TQString &,int = 0,bool * = nullptr);
+	double readDoubleEntry(const TQString &,double = 0,bool * = nullptr);
+	bool readBoolEntry(const TQString &,bool = 0,bool * = nullptr);
 
 	bool removeEntry(const TQString &);
 
diff --git a/sip/tqt/tqsgistyle.sip b/sip/tqt/tqsgistyle.sip
index 0dbba8f..e790488 100644
--- a/sip/tqt/tqsgistyle.sip
+++ b/sip/tqt/tqsgistyle.sip
@@ -63,24 +63,24 @@ public:
 	void drawControl(ControlElement,TQPainter *,const TQStyleControlElementData&,ControlElementFlags,
 			 const TQRect &,const TQColorGroup &,
 			 SFlags = Style_Default,
-			 const TQStyleOption & = TQStyleOption(), const TQWidget *=0) const;
+			 const TQStyleOption & = TQStyleOption(), const TQWidget * = nullptr) const;
  
 	void drawComplexControl(ComplexControl,TQPainter *,const TQStyleControlElementData&,ControlElementFlags,
 				const TQRect &,const TQColorGroup &,
 				SFlags = Style_Default,SCFlags = SC_All,
 				SCFlags = SC_None,
-				const TQStyleOption & = TQStyleOption(),const TQWidget *=0) const; 
+				const TQStyleOption & = TQStyleOption(),const TQWidget * = nullptr) const; 
 
-	int pixelMetric(PixelMetric,const TQStyleControlElementData&,ControlElementFlags,const TQWidget * = 0) const;
+	int pixelMetric(PixelMetric,const TQStyleControlElementData&,ControlElementFlags,const TQWidget * = nullptr) const;
 
 	TQSize sizeFromContents(ContentsType,const TQStyleControlElementData&,ControlElementFlags,const TQSize &,
-			       const TQStyleOption & = TQStyleOption(),const TQWidget *=0) const;
+			       const TQStyleOption & = TQStyleOption(),const TQWidget * = nullptr) const;
 
 	TQRect subRect(SubRect,const TQStyleControlElementData&, const ControlElementFlags,const TQWidget *) const;
  
 	TQRect querySubControlMetrics(ComplexControl,const TQStyleControlElementData&,ControlElementFlags,
 				     SubControl,
-				     const TQStyleOption & = TQStyleOption(), const TQWidget *=0) const;
+				     const TQStyleOption & = TQStyleOption(), const TQWidget * = nullptr) const;
 
 protected:
 	bool eventFilter(TQObject *,TQEvent *);
diff --git a/sip/tqt/tqsignalmapper.sip b/sip/tqt/tqsignalmapper.sip
index 2ac99e6..a85d5b3 100644
--- a/sip/tqt/tqsignalmapper.sip
+++ b/sip/tqt/tqsignalmapper.sip
@@ -36,7 +36,7 @@ class TQSignalMapper : TQObject
 %End
 
 public:
-	TQSignalMapper(TQObject * /TransferThis/,const char * = 0);
+	TQSignalMapper(TQObject * /TransferThis/,const char * = nullptr);
 
 	virtual void setMapping(const TQObject *,int);
 	virtual void setMapping(const TQObject *,const TQString &);
diff --git a/sip/tqt/tqsimplerichtext.sip b/sip/tqt/tqsimplerichtext.sip
index cc21df5..196566f 100644
--- a/sip/tqt/tqsimplerichtext.sip
+++ b/sip/tqt/tqsimplerichtext.sip
@@ -38,7 +38,7 @@ class TQSimpleRichText
 public:
 	TQSimpleRichText(const TQString &,const TQFont &,
 			const TQString & = TQString::null,
-			const TQStyleSheet * = 0);
+			const TQStyleSheet * = nullptr);
 	TQSimpleRichText(const TQString &,const TQFont &,const TQString &,
 			const TQStyleSheet *,const TQMimeSourceFactory *,
 			int = -1,const TQColor & = TQt::blue,bool = 1);
@@ -52,7 +52,7 @@ public:
 	void adjustSize();
 
 	void draw(TQPainter *,int,int,const TQRect &,const TQColorGroup &,
-		  const TQBrush * = 0) const;
+		  const TQBrush * = nullptr) const;
 
 	TQString context() const;
 	TQString anchorAt(const TQPoint &) const;
diff --git a/sip/tqt/tqsizegrip.sip b/sip/tqt/tqsizegrip.sip
index 505f90b..19df8be 100644
--- a/sip/tqt/tqsizegrip.sip
+++ b/sip/tqt/tqsizegrip.sip
@@ -38,7 +38,7 @@ class TQSizeGrip : TQWidget
 %End
 
 public:
-	TQSizeGrip(TQWidget * /TransferThis/,const char * = 0);
+	TQSizeGrip(TQWidget * /TransferThis/,const char * = nullptr);
 
 	TQSize sizeHint() const;
 
diff --git a/sip/tqt/tqslider.sip b/sip/tqt/tqslider.sip
index 28d42e5..19eb327 100644
--- a/sip/tqt/tqslider.sip
+++ b/sip/tqt/tqslider.sip
@@ -46,9 +46,9 @@ public:
 		Both = 3
 	};
 
-	TQSlider(TQWidget * /TransferThis/,const char * = 0);
-	TQSlider(Orientation,TQWidget * /TransferThis/,const char * = 0);
-	TQSlider(int,int,int,int,Orientation,TQWidget * /TransferThis/,const char * = 0);
+	TQSlider(TQWidget * /TransferThis/,const char * = nullptr);
+	TQSlider(Orientation,TQWidget * /TransferThis/,const char * = nullptr);
+	TQSlider(int,int,int,int,Orientation,TQWidget * /TransferThis/,const char * = nullptr);
 
 	virtual void setOrientation(Orientation);
 	Orientation orientation() const;
diff --git a/sip/tqt/tqsocketnotifier.sip b/sip/tqt/tqsocketnotifier.sip
index 0f2d27d..613be19 100644
--- a/sip/tqt/tqsocketnotifier.sip
+++ b/sip/tqt/tqsocketnotifier.sip
@@ -42,7 +42,7 @@ public:
 		Exception
 	};
 
-	TQSocketNotifier(int,Type,TQObject * /TransferThis/ = 0,const char * = 0);
+	TQSocketNotifier(int,Type,TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	int socket() const;
 	Type type() const;
diff --git a/sip/tqt/tqsound.sip b/sip/tqt/tqsound.sip
index d0c442e..66eba14 100644
--- a/sip/tqt/tqsound.sip
+++ b/sip/tqt/tqsound.sip
@@ -38,7 +38,7 @@ class TQSound : TQObject
 %End
 
 public:
-	TQSound(const TQString &,TQObject * /TransferThis/ = 0,const char * = 0);
+	TQSound(const TQString &,TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	static bool isAvailable();
 	static void play(const TQString &);
diff --git a/sip/tqt/tqspinbox.sip b/sip/tqt/tqspinbox.sip
index 447ec7c..c0e6662 100644
--- a/sip/tqt/tqspinbox.sip
+++ b/sip/tqt/tqspinbox.sip
@@ -41,8 +41,8 @@ class TQSpinBox : TQWidget, TQRangeControl
 %End
 
 public:
-	TQSpinBox(TQWidget * /TransferThis/ = 0,const char * = 0);
-	TQSpinBox(int,int,int = 1,TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQSpinBox(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
+	TQSpinBox(int,int,int = 1,TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	TQString text() const;
 
diff --git a/sip/tqt/tqsplitter.sip b/sip/tqt/tqsplitter.sip
index 182b706..caddfbf 100644
--- a/sip/tqt/tqsplitter.sip
+++ b/sip/tqt/tqsplitter.sip
@@ -52,8 +52,8 @@ public:
 		Auto
 	};
 
-	TQSplitter(TQWidget * /TransferThis/ = 0,const char * = 0);
-	TQSplitter(Orientation,TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQSplitter(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
+	TQSplitter(Orientation,TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	virtual void setOrientation(Orientation);
 	Orientation orientation() const;
diff --git a/sip/tqt/tqstatusbar.sip b/sip/tqt/tqstatusbar.sip
index d1fadcf..2b4c50d 100644
--- a/sip/tqt/tqstatusbar.sip
+++ b/sip/tqt/tqstatusbar.sip
@@ -36,7 +36,7 @@ class TQStatusBar : TQWidget
 %End
 
 public:
-	TQStatusBar(TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQStatusBar(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	virtual void addWidget(TQWidget * /Transfer/,int = 0,bool = 0);
 	virtual void removeWidget(TQWidget * /TransferBack/);
diff --git a/sip/tqt/tqstring.sip b/sip/tqt/tqstring.sip
index f6da33a..692a49b 100644
--- a/sip/tqt/tqstring.sip
+++ b/sip/tqt/tqstring.sip
@@ -99,7 +99,7 @@ Not implemented.
 
 <FuncSynopsis>
 	<FuncDef>short <Function>toShort</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>short</Literal> result and the
@@ -108,7 +108,7 @@ This returns a tuple of the <Literal>short</Literal> result and the
 
 <FuncSynopsis>
 	<FuncDef>ushort <Function>toUShort</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>ushort</Literal> result and the
@@ -117,7 +117,7 @@ This returns a tuple of the <Literal>ushort</Literal> result and the
 
 <FuncSynopsis>
 	<FuncDef>int <Function>toInt</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>int</Literal> result and the
@@ -126,7 +126,7 @@ This returns a tuple of the <Literal>int</Literal> result and the
 
 <FuncSynopsis>
 	<FuncDef>uint <Function>toUInt</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>uint</Literal> result and the
@@ -135,7 +135,7 @@ This returns a tuple of the <Literal>uint</Literal> result and the
 
 <FuncSynopsis>
 	<FuncDef>long <Function>toLong</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>long</Literal> result and the
@@ -144,7 +144,7 @@ This returns a tuple of the <Literal>long</Literal> result and the
 
 <FuncSynopsis>
 	<FuncDef>ulong <Function>toULong</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>ulong</Literal> result and the
@@ -153,7 +153,7 @@ This returns a tuple of the <Literal>ulong</Literal> result and the
 
 <FuncSynopsis>
 	<FuncDef>float <Function>toFloat</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>float</Literal> result and the
@@ -162,7 +162,7 @@ This returns a tuple of the <Literal>float</Literal> result and the
 
 <FuncSynopsis>
 	<FuncDef>double <Function>toDouble</Function></FuncDef>
-	<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
+	<ParamDef>bool *<Parameter>ok</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This returns a tuple of the <Literal>double</Literal> result and the
@@ -488,16 +488,16 @@ public:
 	TQString &replace(const TQRegExp &,const TQString &);
 	TQString &replace(TQChar,TQChar);
 
-	short toShort(bool * = 0,int = 10) const;
-	ushort toUShort(bool * = 0,int = 10) const;
-	int toInt(bool * = 0,int = 10) const;
-	uint toUInt(bool * = 0,int = 10) const;
-	long toLong(bool * = 0,int = 10) const;
-	ulong toULong(bool * = 0,int = 10) const;
-//	TQ_LLONG toLongLong(bool * = 0,int = 10) const;
-//	TQ_ULLONG toULongLong(bool * = 0,int = 10) const;
-	float toFloat(bool * = 0) const;
-	double toDouble(bool * = 0) const;
+	short toShort(bool * = nullptr,int = 10) const;
+	ushort toUShort(bool * = nullptr,int = 10) const;
+	int toInt(bool * = nullptr,int = 10) const;
+	uint toUInt(bool * = nullptr,int = 10) const;
+	long toLong(bool * = nullptr,int = 10) const;
+	ulong toULong(bool * = nullptr,int = 10) const;
+//	TQ_LLONG toLongLong(bool * = nullptr,int = 10) const;
+//	TQ_ULLONG toULongLong(bool * = nullptr,int = 10) const;
+	float toFloat(bool * = nullptr) const;
+	double toDouble(bool * = nullptr) const;
 
 	TQString &setNum(int /Constrained/,int = 10);
 	TQString &setNum(double /Constrained/,char = 'g',int = 6);
@@ -656,7 +656,7 @@ public:
 	if (*sipCppPtr)
 		return sipGetState(sipTransferObj);
 
-	*sipCppPtr = reinterpret_cast<TQString *>(sipConvertToInstance(sipPy,sipClass_TQString,sipTransferObj,SIP_NO_CONVERTORS,0,sipIsErr));
+	*sipCppPtr = reinterpret_cast<TQString *>(sipConvertToInstance(sipPy,sipClass_TQString,sipTransferObj,SIP_NO_CONVERTORS,nullptr,sipIsErr));
 
 	return 0;
 %End
@@ -713,7 +713,7 @@ public:
 
 			enc = codec->fromUnicode(*sipCpp);
 
-			if ((encobj = PyBytes_FromString(enc.data())))
+			if ((encobj = PyBytes_FromString(enc.data())) != nullptr)
     			{
 				*sipPtrPtr = (void *)PyString_AS_STRING(encobj);
 				sipRes = PyString_GET_SIZE(encobj);
@@ -850,7 +850,7 @@ extern const char *PyTQt_tqt_encode(PyObject **s, TQApplication::Encoding encodi
 const char *PyTQt_tqt_encode(PyObject **s, TQApplication::Encoding encoding)
 {
     PyObject *obj = *s;
-    const char *es = 0;
+    const char *es = nullptr;
     SIP_SSIZE_T sz;
 
     if (PyUnicode_Check(obj))
diff --git a/sip/tqt/tqstyle.sip b/sip/tqt/tqstyle.sip
index 521678e..d7e8b77 100644
--- a/sip/tqt/tqstyle.sip
+++ b/sip/tqt/tqstyle.sip
@@ -158,8 +158,8 @@ class TQStyleWidgetActionRequestData
 public:
 	TQStyleWidgetActionRequestData();
 	TQStyleWidgetActionRequestData(int, int = 0);
-	TQStyleWidgetActionRequestData(TQPalette, bool = false, const char* = 0);
-	TQStyleWidgetActionRequestData(TQFont, bool = false, const char* = 0);
+	TQStyleWidgetActionRequestData(TQPalette, bool = false, const char* = nullptr);
+	TQStyleWidgetActionRequestData(TQFont, bool = false, const char* = nullptr);
 	TQStyleWidgetActionRequestData(TQRect);
 	~TQStyleWidgetActionRequestData();
 };
@@ -226,7 +226,7 @@ public:
  
 	virtual void drawItem(TQPainter *,const TQRect &,int,const TQColorGroup &,
 			      bool,const TQPixmap *,const TQString &,int = -1,
-			      const TQColor * = 0) const;
+			      const TQColor * = nullptr) const;
 
 	enum PrimitiveElement {
 		PE_ButtonCommand,
@@ -555,7 +555,7 @@ public:
 		PM_CustomBase
 	};
 
-	virtual int pixelMetric(PixelMetric,const TQWidget * = 0) const = 0;
+	virtual int pixelMetric(PixelMetric,const TQWidget * = nullptr) const = 0;
 
 	enum ContentsType {
 		CT_PushButton,
@@ -674,9 +674,9 @@ public:
 		SH_CustomBase
 	};
 
-	virtual int styleHint(StyleHint,const TQWidget * = 0,
+	virtual int styleHint(StyleHint,const TQWidget * = nullptr,
 			      const TQStyleOption & = TQStyleOption(),
-			      TQStyleHintReturn * = 0) const = 0;
+			      TQStyleHintReturn * = nullptr) const = 0;
 
 	enum StylePixmap {
 		SP_TitleBarMinButton,
@@ -694,7 +694,7 @@ public:
 		SP_CustomBase
 	};
 
-	virtual TQPixmap stylePixmap(StylePixmap,const TQWidget * = 0,
+	virtual TQPixmap stylePixmap(StylePixmap,const TQWidget * = nullptr,
 				    const TQStyleOption & = TQStyleOption()) const = 0;
 
 	static TQRect visualRect(const TQRect &,const TQWidget *);
@@ -719,7 +719,7 @@ public:
 		const TQColorGroup&,
 		SFlags how = Style_Default,
 		const TQStyleOption& = TQStyleOption::Default,
-		const TQWidget* = 0 /* compat, will likely go away */ ) const = 0;
+		const TQWidget* = nullptr /* compat, will likely go away */ ) const = 0;
 	
 	virtual void drawControlMask( ControlElement element,
 		TQPainter*,
@@ -727,7 +727,7 @@ public:
 		ControlElementFlags,
 		const TQRect&,
 		const TQStyleOption& = TQStyleOption::Default,
-		const TQWidget* = 0 /* compat, will likely go away */ ) const = 0;
+		const TQWidget* = nullptr /* compat, will likely go away */ ) const = 0;
 	
 	virtual TQRect subRect( SubRect, const TQStyleControlElementData&, const ControlElementFlags, const TQWidget* ) const = 0;
 
@@ -741,7 +741,7 @@ public:
 		SCFlags = SC_All,
 		SCFlags = SC_None,
 		const TQStyleOption& = TQStyleOption::Default,
-		const TQWidget* = 0 ) const = 0;
+		const TQWidget* = nullptr ) const = 0;
 	
 	virtual void drawComplexControlMask( ComplexControl,
 		TQPainter*,
@@ -749,47 +749,47 @@ public:
 		const ControlElementFlags,
 		const TQRect&,
 		const TQStyleOption& = TQStyleOption::Default,
-		const TQWidget* = 0 ) const = 0;
+		const TQWidget* = nullptr ) const = 0;
 	
 	virtual TQRect querySubControlMetrics( ComplexControl,
 		const TQStyleControlElementData&,
 		ControlElementFlags,
 		SubControl,
 		const TQStyleOption& = TQStyleOption::Default,
-		const TQWidget* = 0 ) const = 0;
+		const TQWidget* = nullptr ) const = 0;
 	
 	virtual SubControl querySubControl( ComplexControl,
 		const TQStyleControlElementData&,
 		ControlElementFlags,
 		const TQPoint&,
 		const TQStyleOption& = TQStyleOption::Default,
-		const TQWidget* = 0 ) const = 0;
+		const TQWidget* = nullptr ) const = 0;
 	
 	virtual int pixelMetric( PixelMetric,
 		const TQStyleControlElementData&,
 		ControlElementFlags,
-		const TQWidget* = 0 ) const = 0;
+		const TQWidget* = nullptr ) const = 0;
 	
 	virtual TQSize sizeFromContents( ContentsType,
 		const TQStyleControlElementData&,
 		ControlElementFlags,
 		const TQSize&,
 		const TQStyleOption& = TQStyleOption::Default,
-		const TQWidget* = 0 ) const = 0;
+		const TQWidget* = nullptr ) const = 0;
 	
 	virtual int styleHint( StyleHint,
 		const TQStyleControlElementData&,
 		ControlElementFlags,
 		const TQStyleOption& = TQStyleOption::Default,
-		TQStyleHintReturn* returnData = 0,
-		const TQWidget* = 0
+		TQStyleHintReturn* returnData = nullptr,
+		const TQWidget* = nullptr
 		) const = 0;
 	
 	virtual TQPixmap stylePixmap( StylePixmap,
 		const TQStyleControlElementData&,
 		ControlElementFlags,
 		const TQStyleOption& = TQStyleOption::Default,
-		const TQWidget* = 0 ) const = 0;
+		const TQWidget* = nullptr ) const = 0;
 	
 	static TQRect visualRect( const TQRect&, const TQStyleControlElementData&, const ControlElementFlags );
 	
diff --git a/sip/tqt/tqstylesheet.sip b/sip/tqt/tqstylesheet.sip
index 8f1d546..4c41aec 100644
--- a/sip/tqt/tqstylesheet.sip
+++ b/sip/tqt/tqstylesheet.sip
@@ -165,7 +165,7 @@ class TQStyleSheet : TQObject
 %End
 
 public:
-	TQStyleSheet(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQStyleSheet(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	static TQStyleSheet *defaultSheet();
 	static void setDefaultSheet(TQStyleSheet *);
diff --git a/sip/tqt/tqtabbar.sip b/sip/tqt/tqtabbar.sip
index 84e6134..b7cc555 100644
--- a/sip/tqt/tqtabbar.sip
+++ b/sip/tqt/tqtabbar.sip
@@ -70,7 +70,7 @@ class TQTabBar : TQWidget
 %End
 
 public:
-	TQTabBar(TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQTabBar(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	enum Shape {
 		RoundedAbove,
@@ -150,7 +150,7 @@ protected:
 			Py_END_ALLOW_THREADS
 
 			// Convert the list.
-			for (TQPtrListIterator<TQTab> it(*tl); (tab = it.current()); ++it)
+			for (TQPtrListIterator<TQTab> it(*tl); (tab = it.current()) != nullptr; ++it)
 			{
 				PyObject *inst = sipBuildResult(&sipIsErr,"C",tab,sipClass_TQTab,nullptr);
 
diff --git a/sip/tqt/tqtabdialog.sip b/sip/tqt/tqtabdialog.sip
index 0cfe69a..271ce49 100644
--- a/sip/tqt/tqtabdialog.sip
+++ b/sip/tqt/tqtabdialog.sip
@@ -38,7 +38,7 @@ class TQTabDialog : TQDialog
 %End
 
 public:
-	TQTabDialog(TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0,
+	TQTabDialog(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,bool = 0,
 		   WFlags = 0);
 
 	void show();
diff --git a/sip/tqt/tqtabwidget.sip b/sip/tqt/tqtabwidget.sip
index 9435402..87c9dc1 100644
--- a/sip/tqt/tqtabwidget.sip
+++ b/sip/tqt/tqtabwidget.sip
@@ -36,7 +36,7 @@ class TQTabWidget : TQWidget
 %End
 
 public:
-	TQTabWidget(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+	TQTabWidget(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,WFlags = 0);
 
 	// The TQWidget is passed to TQWidgetStack::addWidget().
 	virtual void addTab(TQWidget * /Transfer/,const TQString &);
diff --git a/sip/tqt/tqtextbrowser.sip b/sip/tqt/tqtextbrowser.sip
index 3b0a11c..a2f6c5f 100644
--- a/sip/tqt/tqtextbrowser.sip
+++ b/sip/tqt/tqtextbrowser.sip
@@ -36,7 +36,7 @@ class TQTextBrowser : TQTextEdit
 %End
 
 public:
-	TQTextBrowser(TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQTextBrowser(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	TQString source() const;
 
diff --git a/sip/tqt/tqtextedit.sip b/sip/tqt/tqtextedit.sip
index 80bedec..fb75abe 100644
--- a/sip/tqt/tqtextedit.sip
+++ b/sip/tqt/tqtextedit.sip
@@ -25,7 +25,7 @@
 <FuncSynopsis>
 <FuncDef>int <Function>charAt</Function></FuncDef>
 	<ParamDef>const TQPoint &amp;<Parameter>pos</Parameter></ParamDef>
-	<ParamDef>int *<Parameter>para</Parameter> = 0</ParamDef>
+	<ParamDef>int *<Parameter>para</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This takes only the <Literal>pos</Literal> parameter and returns a tuple of the
@@ -46,8 +46,8 @@ This has been renamed <Literal>delChar</Literal> in Python.
 	<ParamDef>bool <Parameter>cs</Parameter></ParamDef>
 	<ParamDef>bool <Parameter>wo</Parameter></ParamDef>
 	<ParamDef>bool <Parameter>forward</Parameter> = true</ParamDef>
-	<ParamDef>int *<Parameter>para</Parameter> = 0</ParamDef>
-	<ParamDef>int *<Parameter>index</Parameter> = 0</ParamDef>
+	<ParamDef>int *<Parameter>para</Parameter> = nullptr</ParamDef>
+	<ParamDef>int *<Parameter>index</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 If the <Literal>para</Literal> and <Literal>index</Literal> parameters are
@@ -154,8 +154,8 @@ public:
 	};
 
 	TQTextEdit(const TQString &,const TQString & = TQString::null,
-		  TQWidget * /TransferThis/ = 0,const char * = 0);
-	TQTextEdit(TQWidget * /TransferThis/ = 0,const char * = 0);
+		  TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
+	TQTextEdit(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	void setPalette(const TQPalette &);
 
@@ -319,7 +319,7 @@ public slots:
 //	Marked as internal in the TQt3 beta.
 //	virtual void setFormat(TQTextFormat *,int);
 	virtual void ensureCursorVisible();
-	virtual void placeCursor(const TQPoint &,TQTextCursor * = 0);
+	virtual void placeCursor(const TQPoint &,TQTextCursor * = nullptr);
 	virtual void moveCursor(CursorAction,bool);
 	virtual void doKeyboardAction(KeyboardAction);
 	virtual void removeSelectedText(int = 0);
diff --git a/sip/tqt/tqtextview.sip b/sip/tqt/tqtextview.sip
index 1d30dad..be28ba5 100644
--- a/sip/tqt/tqtextview.sip
+++ b/sip/tqt/tqtextview.sip
@@ -36,9 +36,9 @@ class TQTextView : TQTextEdit
 %End
 
 public:
-	TQTextView(TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQTextView(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 	TQTextView(const TQString &,const TQString & = TQString::null,
-		  TQWidget * /TransferThis/ = 0,const char * = 0);
+		  TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 private:
 	TQTextView(const TQTextView &);
diff --git a/sip/tqt/tqtimer.sip b/sip/tqt/tqtimer.sip
index 6dd2249..5f7f5fb 100644
--- a/sip/tqt/tqtimer.sip
+++ b/sip/tqt/tqtimer.sip
@@ -36,7 +36,7 @@ class TQTimer : TQObject
 %End
 
 public:
-	TQTimer(TQObject * /TransferThis/ = 0,char * = 0);
+	TQTimer(TQObject * /TransferThis/ = nullptr,char * = nullptr);
 
 	bool isActive() const;
 	int start(int,bool = 0);
diff --git a/sip/tqt/tqtoolbar.sip b/sip/tqt/tqtoolbar.sip
index 5bab07f..ec9f29a 100644
--- a/sip/tqt/tqtoolbar.sip
+++ b/sip/tqt/tqtoolbar.sip
@@ -37,10 +37,10 @@ class TQToolBar : TQDockWindow
 
 public:
 	TQToolBar(const TQString &,TQMainWindow * /TransferThis/,Dock = DockTop,
-		 bool = 0,const char * = 0);
+		 bool = 0,const char * = nullptr);
 	TQToolBar(const TQString &,TQMainWindow *,TQWidget * /TransferThis/,
-		 bool = 0,const char * = 0,WFlags = 0);
-	TQToolBar(TQMainWindow * /TransferThis/ = 0,const char * = 0);
+		 bool = 0,const char * = nullptr,WFlags = 0);
+	TQToolBar(TQMainWindow * /TransferThis/ = nullptr,const char * = nullptr);
 
 	void addSeparator();
 
diff --git a/sip/tqt/tqtoolbox.sip b/sip/tqt/tqtoolbox.sip
index 43486b5..780b2a7 100644
--- a/sip/tqt/tqtoolbox.sip
+++ b/sip/tqt/tqtoolbox.sip
@@ -36,7 +36,7 @@ class TQToolBox : TQFrame
 %End
 
 public:
-	TQToolBox(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+	TQToolBox(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,WFlags = 0);
 	~TQToolBox();
 
 	int addItem(TQWidget * /Transfer/,const TQString &);
diff --git a/sip/tqt/tqtoolbutton.sip b/sip/tqt/tqtoolbutton.sip
index ab8d195..e4c553a 100644
--- a/sip/tqt/tqtoolbutton.sip
+++ b/sip/tqt/tqtoolbutton.sip
@@ -43,11 +43,11 @@ public:
 		Under		// Obsolete
 	};
 
-	TQToolButton(TQWidget * /TransferThis/,const char * = 0);
+	TQToolButton(TQWidget * /TransferThis/,const char * = nullptr);
 	TQToolButton(const TQIconSet &,const TQString &,const TQString &,
 		    SIP_RXOBJ_CON,SIP_SLOT_CON(),TQToolBar * /TransferThis/,
-		    const char * = 0);
-	TQToolButton(ArrowType,TQWidget * /TransferThis/,const char * = 0);
+		    const char * = nullptr);
+	TQToolButton(ArrowType,TQWidget * /TransferThis/,const char * = nullptr);
 
 	TQSize sizeHint() const;
 	TQSize minimumSizeHint() const;
diff --git a/sip/tqt/tqtooltip.sip b/sip/tqt/tqtooltip.sip
index 1a24264..8290887 100644
--- a/sip/tqt/tqtooltip.sip
+++ b/sip/tqt/tqtooltip.sip
@@ -42,7 +42,7 @@ class TQToolTipGroup : TQObject
 %End
 
 public:
-	TQToolTipGroup(TQObject * /TransferThis/,const char * = 0);
+	TQToolTipGroup(TQObject * /TransferThis/,const char * = nullptr);
 
 	bool delay() const;
 	bool enabled() const;
@@ -67,7 +67,7 @@ class TQToolTip : TQt
 %End
 
 public:
-	TQToolTip(TQWidget *,TQToolTipGroup * = 0);
+	TQToolTip(TQWidget *,TQToolTipGroup * = nullptr);
 
 	static void add(TQWidget *,const TQString &);
 	static void add(TQWidget *,const TQString &,TQToolTipGroup *,
diff --git a/sip/tqt/tqtranslator.sip b/sip/tqt/tqtranslator.sip
index 1edee94..a659350 100644
--- a/sip/tqt/tqtranslator.sip
+++ b/sip/tqt/tqtranslator.sip
@@ -78,12 +78,12 @@ class TQTranslator : TQObject
 %End
 
 public:
-	TQTranslator(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQTranslator(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	TQString find(const char *,const char *,const char *) const;
 
 	virtual TQTranslatorMessage findMessage(const char *,const char *,
-					       const char * = 0) const;
+					       const char * = nullptr) const;
 
 	bool load(const TQString &,const TQString & = TQString::null,
 		  const TQString & = TQString::null,
@@ -101,7 +101,7 @@ public:
 
 	void insert(const TQTranslatorMessage &);
 	void remove(const TQTranslatorMessage &);
-	bool contains(const char *,const char *,const char * = 0) const;
+	bool contains(const char *,const char *,const char * = nullptr) const;
 
 	void squeeze(SaveMode = Everything);
 	void unsqueeze();
diff --git a/sip/tqt/tqurloperator.sip b/sip/tqt/tqurloperator.sip
index 20e0d8d..fdc6109 100644
--- a/sip/tqt/tqurloperator.sip
+++ b/sip/tqt/tqurloperator.sip
@@ -63,7 +63,7 @@ public:
 						 const TQString &,bool = 0,
 						 bool = 1);
 	virtual void copy(const TQStringList &,const TQString &,bool = 0);
-	virtual bool isDir(bool * = 0);
+	virtual bool isDir(bool * = nullptr);
 
 	virtual void setNameFilter(const TQString &);
 	TQString nameFilter() const;
diff --git a/sip/tqt/tqvalidator.sip b/sip/tqt/tqvalidator.sip
index c400969..9a92793 100644
--- a/sip/tqt/tqvalidator.sip
+++ b/sip/tqt/tqvalidator.sip
@@ -79,7 +79,7 @@ class TQValidator : TQObject
 %End
 
 public:
-	TQValidator(TQObject * /TransferThis/,const char * = 0);
+	TQValidator(TQObject * /TransferThis/,const char * = nullptr);
 
 	enum State
 	{
@@ -104,8 +104,8 @@ class TQIntValidator : TQValidator
 %End
 
 public:
-	TQIntValidator(TQObject * /TransferThis/,const char * = 0);
-	TQIntValidator(int,int,TQObject * /TransferThis/,const char * = 0);
+	TQIntValidator(TQObject * /TransferThis/,const char * = nullptr);
+	TQIntValidator(int,int,TQObject * /TransferThis/,const char * = nullptr);
 
 	TQValidator::State validate(TQString &,int & /In,Out/) const;
 
@@ -128,9 +128,9 @@ class TQDoubleValidator : TQValidator
 %End
 
 public:
-	TQDoubleValidator(TQObject * /TransferThis/,const char * = 0);
+	TQDoubleValidator(TQObject * /TransferThis/,const char * = nullptr);
 	TQDoubleValidator(double,double,int,TQObject * /TransferThis/,
-			 const char * = 0);
+			 const char * = nullptr);
 
 	TQValidator::State validate(TQString &,int & /In,Out/) const;
 
@@ -155,9 +155,9 @@ class TQRegExpValidator : TQValidator
 %End
 
 public:
-	TQRegExpValidator(TQObject * /TransferThis/,const char * = 0);
+	TQRegExpValidator(TQObject * /TransferThis/,const char * = nullptr);
 	TQRegExpValidator(const TQRegExp &,TQObject * /TransferThis/,
-			 const char * = 0);
+			 const char * = nullptr);
  
 	virtual TQValidator::State validate(TQString &,int & /In,Out/) const;
  
diff --git a/sip/tqt/tqvaluelist.sip b/sip/tqt/tqvaluelist.sip
index 8bc01a2..afa97b6 100644
--- a/sip/tqt/tqvaluelist.sip
+++ b/sip/tqt/tqvaluelist.sip
@@ -90,7 +90,7 @@ template<Type>
 		int iserr = 0, state;
 
 		// We apply the transfer to the list itself, not the elements.
-		Type *itm = reinterpret_cast<Type *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_Type,0,SIP_NOT_NONE,&state,&iserr));
+		Type *itm = reinterpret_cast<Type *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_Type,nullptr,SIP_NOT_NONE,&state,&iserr));
 
 		if (iserr)
 		{
diff --git a/sip/tqt/tqvariant.sip b/sip/tqt/tqvariant.sip
index ea28fcf..069259d 100644
--- a/sip/tqt/tqvariant.sip
+++ b/sip/tqt/tqvariant.sip
@@ -319,8 +319,8 @@ public:
 	const TQPen toPen() const;
 	int toInt() const;
 	uint toUInt() const;
-//	TQ_LLONG toLongLong(bool * = 0) const;
-//	TQ_ULLONG toULongLong( bool * = 0) const;
+//	TQ_LLONG toLongLong(bool * = nullptr) const;
+//	TQ_ULLONG toULongLong( bool * = nullptr) const;
 	bool toBool() const;
 	double toDouble() const;
 //	const TQValueList<TQVariant> toList() const;
diff --git a/sip/tqt/tqvbox.sip b/sip/tqt/tqvbox.sip
index d88d324..23ac98f 100644
--- a/sip/tqt/tqvbox.sip
+++ b/sip/tqt/tqvbox.sip
@@ -36,7 +36,7 @@ class TQVBox : TQHBox
 %End
 
 public:
-	TQVBox(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+	TQVBox(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,WFlags = 0);
 
 private:
 	TQVBox(const TQVBox &);
diff --git a/sip/tqt/tqvbuttongroup.sip b/sip/tqt/tqvbuttongroup.sip
index d024bfc..c899fc3 100644
--- a/sip/tqt/tqvbuttongroup.sip
+++ b/sip/tqt/tqvbuttongroup.sip
@@ -36,8 +36,8 @@ class TQVButtonGroup : TQButtonGroup
 %End
 
 public:
-	TQVButtonGroup(TQWidget * /TransferThis/ = 0,const char * = 0);
-	TQVButtonGroup(const TQString &,TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQVButtonGroup(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
+	TQVButtonGroup(const TQString &,TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 private:
 	TQVButtonGroup(const TQVButtonGroup &);
diff --git a/sip/tqt/tqvgroupbox.sip b/sip/tqt/tqvgroupbox.sip
index 9714a08..72196f3 100644
--- a/sip/tqt/tqvgroupbox.sip
+++ b/sip/tqt/tqvgroupbox.sip
@@ -36,8 +36,8 @@ class TQVGroupBox : TQGroupBox
 %End
 
 public:
-	TQVGroupBox(TQWidget * /TransferThis/ = 0,const char * = 0);
-	TQVGroupBox(const TQString &,TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQVGroupBox(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
+	TQVGroupBox(const TQString &,TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 private:
 	TQVGroupBox(const TQVGroupBox &);
diff --git a/sip/tqt/tqwhatsthis.sip b/sip/tqt/tqwhatsthis.sip
index b6d5a3a..a27ff5a 100644
--- a/sip/tqt/tqwhatsthis.sip
+++ b/sip/tqt/tqwhatsthis.sip
@@ -53,8 +53,8 @@ public:
 	static bool inWhatsThisMode();
 	static void leaveWhatsThisMode(const TQString & = TQString::null,
 				       const TQPoint & = TQCursor::pos(),
-				       TQWidget * = 0);
+				       TQWidget * = nullptr);
 
 	static void display(const TQString &,const TQPoint & = TQCursor::pos(),
-			    TQWidget * = 0);
+			    TQWidget * = nullptr);
 };
diff --git a/sip/tqt/tqwidget.sip b/sip/tqt/tqwidget.sip
index 30c3af9..3d6965b 100644
--- a/sip/tqt/tqwidget.sip
+++ b/sip/tqt/tqwidget.sip
@@ -64,7 +64,7 @@ class TQWidget : TQObject, TQPaintDevice
 %End
 
 public:
-	TQWidget(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+	TQWidget(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,WFlags = 0);
 
 	WId winId() const;
 	bool isTopLevel() const;
@@ -403,7 +403,7 @@ protected:
 	void clearWState(uint);
 	virtual void setWFlags(WFlags);
 	virtual void setKeyCompression(bool);
-	virtual void setMicroFocusHint(int,int,int,int,bool = 1,TQFont * = 0);
+	virtual void setMicroFocusHint(int,int,int,int,bool = 1,TQFont * = nullptr);
 
 private:
 	TQWidget(const TQWidget &);
diff --git a/sip/tqt/tqwidgetlist.sip b/sip/tqt/tqwidgetlist.sip
index 89eec70..4a373c5 100644
--- a/sip/tqt/tqwidgetlist.sip
+++ b/sip/tqt/tqwidgetlist.sip
@@ -46,7 +46,7 @@ instances is used instead.
 	if (!(pl = PyList_New(0)))
 		return nullptr;
 
-	for (TQWidgetListIt it(*sipCpp); (obj = it.current()); ++it)
+	for (TQWidgetListIt it(*sipCpp); (obj = it.current()) != nullptr; ++it)
 	{
 		PyObject *inst;
 
@@ -89,7 +89,7 @@ instances is used instead.
 		// We apply the transfer to the list itself, not the elements.
 		// Note that any temporary element will never be destroyed.
 		// There is nothing that can be done about this.
-		tqw = reinterpret_cast<TQWidget *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_TQWidget,0,0,0,sipIsErr));
+		tqw = reinterpret_cast<TQWidget *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_TQWidget,nullptr,0,nullptr,sipIsErr));
  
 		if (*sipIsErr)
 		{
diff --git a/sip/tqt/tqwidgetstack.sip b/sip/tqt/tqwidgetstack.sip
index 9451970..3547378 100644
--- a/sip/tqt/tqwidgetstack.sip
+++ b/sip/tqt/tqwidgetstack.sip
@@ -36,7 +36,7 @@ class TQWidgetStack : TQFrame
 %End
 
 public:
-	TQWidgetStack(TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQWidgetStack(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 	TQWidgetStack(TQWidget * /TransferThis/,const char *,WFlags);
 
 	// The TQWidget has it's parent changed to be `this' so it will be
diff --git a/sip/tqt/tqwindowsstyle.sip b/sip/tqt/tqwindowsstyle.sip
index 72e5f83..b1372cd 100644
--- a/sip/tqt/tqwindowsstyle.sip
+++ b/sip/tqt/tqwindowsstyle.sip
@@ -91,25 +91,25 @@ public:
 	void drawControl(ControlElement,TQPainter *,const TQStyleControlElementData&,ControlElementFlags,
 			 const TQRect &,const TQColorGroup &,
 			 SFlags = Style_Default,
-			 const TQStyleOption & = TQStyleOption(), const TQWidget *=0) const;
+			 const TQStyleOption & = TQStyleOption(), const TQWidget * = nullptr) const;
  
 	void drawComplexControl(ComplexControl,TQPainter *,const TQStyleControlElementData&,ControlElementFlags,
 				const TQRect &,const TQColorGroup &,
 				SFlags = Style_Default,SCFlags = SC_All,
 				SCFlags = SC_None,
-				const TQStyleOption & = TQStyleOption(),const TQWidget *=0) const;
+				const TQStyleOption & = TQStyleOption(),const TQWidget * = nullptr) const;
  
-	int pixelMetric(PixelMetric,const TQStyleControlElementData&,ControlElementFlags,const TQWidget * = 0) const;
+	int pixelMetric(PixelMetric,const TQStyleControlElementData&,ControlElementFlags,const TQWidget * = nullptr) const;
  
 	TQSize sizeFromContents(ContentsType,const TQStyleControlElementData&,ControlElementFlags,const TQSize &,
-			       const TQStyleOption & = TQStyleOption(),const TQWidget *=0) const; 
+			       const TQStyleOption & = TQStyleOption(),const TQWidget * = nullptr) const; 
 
 	int styleHint(StyleHint,const TQStyleControlElementData&,ControlElementFlags,
 		      const TQStyleOption & = TQStyleOption(),
-		      TQStyleHintReturn * = 0, const TQWidget * = 0) const;
+		      TQStyleHintReturn * = nullptr, const TQWidget * = nullptr) const;
  
 	TQPixmap stylePixmap(StylePixmap,const TQStyleControlElementData&,ControlElementFlags,
-			    const TQStyleOption & = TQStyleOption(), const TQWidget * = 0) const;
+			    const TQStyleOption & = TQStyleOption(), const TQWidget * = nullptr) const;
 
 	TQRect subRect(SubRect,const TQStyleControlElementData&, const ControlElementFlags,const TQWidget *) const;
 
diff --git a/sip/tqt/tqwizard.sip b/sip/tqt/tqwizard.sip
index 278be85..0524502 100644
--- a/sip/tqt/tqwizard.sip
+++ b/sip/tqt/tqwizard.sip
@@ -38,7 +38,7 @@ class TQWizard : TQDialog
 %End
 
 public:
-	TQWizard(TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0,
+	TQWizard(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,bool = 0,
 		WFlags = 0);
 
 	void show();
diff --git a/sip/tqt/tqwmatrix.sip b/sip/tqt/tqwmatrix.sip
index 965130e..fe0e6bc 100644
--- a/sip/tqt/tqwmatrix.sip
+++ b/sip/tqt/tqwmatrix.sip
@@ -29,7 +29,7 @@ The Python <Literal>==</Literal>, <Literal>!=</Literal> and
 
 <FuncSynopsis>
         <FuncDef>TQWMatrix <Function>invert</Function> const</FuncDef>
-        <ParamDef>bool *<Parameter>invertible</Parameter> = 0</ParamDef>
+        <ParamDef>bool *<Parameter>invertible</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This takes no parameters and returns a tuple of the <Literal>TQWMatrix</Literal>
@@ -105,7 +105,7 @@ public:
 	bool isInvertible() const;
 	double det() const;
 
-	TQWMatrix invert(bool * = 0) const;
+	TQWMatrix invert(bool * = nullptr) const;
 
 	bool operator==(const TQWMatrix &) const;
 	bool operator!=(const TQWMatrix &) const;
diff --git a/sip/tqt/tqworkspace.sip b/sip/tqt/tqworkspace.sip
index 06b85be..026a95d 100644
--- a/sip/tqt/tqworkspace.sip
+++ b/sip/tqt/tqworkspace.sip
@@ -38,7 +38,7 @@ class TQWorkspace : TQWidget
 %End
 
 public:
-	TQWorkspace(TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQWorkspace(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 	enum WindowOrder {
 		CreationOrder,
diff --git a/sip/tqtaxcontainer/tqaxbase.sip b/sip/tqtaxcontainer/tqaxbase.sip
index a29d504..753848b 100644
--- a/sip/tqtaxcontainer/tqaxbase.sip
+++ b/sip/tqtaxcontainer/tqaxbase.sip
@@ -24,7 +24,7 @@
 <Sect2><Title>TQAxBase (Windows, TQt v3+)</Title>
 <FuncSynopsis>
 	<FuncDef><Function>TQAxObject</Function></FuncDef>
-	<ParamDef>IUnknown *<Parameter>iface</Parameter> = 0</ParamDef>
+	<ParamDef>IUnknown *<Parameter>iface</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 Not implemented.
diff --git a/sip/tqtaxcontainer/tqaxobject.sip b/sip/tqtaxcontainer/tqaxobject.sip
index 01521c2..10cece9 100644
--- a/sip/tqtaxcontainer/tqaxobject.sip
+++ b/sip/tqtaxcontainer/tqaxobject.sip
@@ -25,8 +25,8 @@
 <FuncSynopsis>
 	<FuncDef><Function>TQAxObject</Function></FuncDef>
 	<ParamDef>IUnknown *<Parameter>iface</Parameter></ParamDef>
-	<ParamDef>TQObject *<Parameter>parent</Parameter> = 0</ParamDef>
-	<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
+	<ParamDef>TQObject *<Parameter>parent</Parameter> = nullptr</ParamDef>
+	<ParamDef>const char *<Parameter>name</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 Not implemented.
diff --git a/sip/tqtaxcontainer/tqaxwidget.sip b/sip/tqtaxcontainer/tqaxwidget.sip
index 3751088..a5defec 100644
--- a/sip/tqtaxcontainer/tqaxwidget.sip
+++ b/sip/tqtaxcontainer/tqaxwidget.sip
@@ -25,8 +25,8 @@
 <FuncSynopsis>
 	<FuncDef><Function>TQAxWidget</Function></FuncDef>
 	<ParamDef>IUnknown *<Parameter>iface</Parameter></ParamDef>
-	<ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
-	<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
+	<ParamDef>TQWidget *<Parameter>parent</Parameter> = nullptr</ParamDef>
+	<ParamDef>const char *<Parameter>name</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 Not implemented.
diff --git a/sip/tqtcanvas/tqcanvas.sip b/sip/tqtcanvas/tqcanvas.sip
index 6ffa143..c3195bb 100644
--- a/sip/tqtcanvas/tqcanvas.sip
+++ b/sip/tqtcanvas/tqcanvas.sip
@@ -328,7 +328,7 @@ class TQCanvas : TQObject
 %End
 
 public:
-	TQCanvas(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQCanvas(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 	TQCanvas(int,int);
 	TQCanvas(TQPixmap,int,int,int,int);
 
@@ -435,8 +435,8 @@ class TQCanvasView : TQScrollView
 %End
 
 public:
-	TQCanvasView(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
-	TQCanvasView(TQCanvas *,TQWidget * /TransferThis/ = 0,const char * = 0,
+	TQCanvasView(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,WFlags = 0);
+	TQCanvasView(TQCanvas *,TQWidget * /TransferThis/ = nullptr,const char * = nullptr,
 		    WFlags = 0);
 
 	TQCanvas* canvas() const;
diff --git a/sip/tqtext/tqextscintilla.sip b/sip/tqtext/tqextscintilla.sip
index f9a7592..4c69cd3 100644
--- a/sip/tqtext/tqextscintilla.sip
+++ b/sip/tqtext/tqextscintilla.sip
@@ -124,7 +124,7 @@ public:
 	};
 %End
 
-	TQextScintilla(TQWidget * /TransferThis/ = 0,const char * = 0,
+	TQextScintilla(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,
 		      WFlags = 0);
 
 	bool autoCompletionCaseSensitivity();
@@ -230,14 +230,14 @@ public:
 	void resetFoldMarginColors();
 	void setFoldMarginColors(const TQColor &,const TQColor &);
 
-	void setAutoCompletionAPIs(TQextScintillaAPIs * = 0);
+	void setAutoCompletionAPIs(TQextScintillaAPIs * = nullptr);
 	void setAutoCompletionFillups(const char *);
 %If (TQScintilla_1_7 -)
 	void setAutoCompletionFillupsEnabled(bool);
 	void setAutoCompletionStartCharacters(const char *);
 %End
 
-	void setCallTipsAPIs(TQextScintillaAPIs * = 0);
+	void setCallTipsAPIs(TQextScintillaAPIs * = nullptr);
 	void setCallTipsBackgroundColor(const TQColor &);
 	void setCallTipsForegroundColor(const TQColor &);
 	void setCallTipsHighlightColor(const TQColor &);
@@ -353,7 +353,7 @@ public slots:
 	virtual void setIndentationsUseTabs(bool);
 	virtual void setIndentationWidth(int);
 
-	virtual void setLexer(TQextScintillaLexer * = 0);
+	virtual void setLexer(TQextScintillaLexer * = nullptr);
 
 	virtual void setMarginsBackgroundColor(const TQColor &);
 	virtual void setMarginsFont(const TQFont &);
diff --git a/sip/tqtext/tqextscintillalexer.sip b/sip/tqtext/tqextscintillalexer.sip
index b13b14d..863d4a2 100644
--- a/sip/tqtext/tqextscintillalexer.sip
+++ b/sip/tqtext/tqextscintillalexer.sip
@@ -31,7 +31,7 @@ class TQextScintillaLexer : TQObject
 %End
 
 public:
-	TQextScintillaLexer(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQextScintillaLexer(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	virtual const char *language() const = 0;
 	virtual const char *lexer() const = 0;
diff --git a/sip/tqtext/tqextscintillalexerbash.sip b/sip/tqtext/tqextscintillalexerbash.sip
index 0a3b95c..e4f71e9 100644
--- a/sip/tqtext/tqextscintillalexerbash.sip
+++ b/sip/tqtext/tqextscintillalexerbash.sip
@@ -50,7 +50,7 @@ public:
 		SingleQuotedHereDocument
 	};
 
-	TQextScintillaLexerBash(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQextScintillaLexerBash(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	const char *language() const;
 	const char *lexer() const;
diff --git a/sip/tqtext/tqextscintillalexerbatch.sip b/sip/tqtext/tqextscintillalexerbatch.sip
index fa660f0..525ce01 100644
--- a/sip/tqtext/tqextscintillalexerbatch.sip
+++ b/sip/tqtext/tqextscintillalexerbatch.sip
@@ -44,7 +44,7 @@ public:
 		Operator
 	};
 
-	TQextScintillaLexerBatch(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQextScintillaLexerBatch(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	const char *language() const;
 	const char *lexer() const;
diff --git a/sip/tqtext/tqextscintillalexercpp.sip b/sip/tqtext/tqextscintillalexercpp.sip
index 786893d..510004a 100644
--- a/sip/tqtext/tqextscintillalexercpp.sip
+++ b/sip/tqtext/tqextscintillalexercpp.sip
@@ -59,7 +59,7 @@ public:
 %End
 	};
 
-	TQextScintillaLexerCPP(TQObject * /TransferThis/ = 0,const char * = 0,
+	TQextScintillaLexerCPP(TQObject * /TransferThis/ = nullptr,const char * = nullptr,
 			      bool = 0);
 
 	const char *language() const;
diff --git a/sip/tqtext/tqextscintillalexercsharp.sip b/sip/tqtext/tqextscintillalexercsharp.sip
index cf5aafb..e97c538 100644
--- a/sip/tqtext/tqextscintillalexercsharp.sip
+++ b/sip/tqtext/tqextscintillalexercsharp.sip
@@ -31,8 +31,8 @@ class TQextScintillaLexerCSharp : TQextScintillaLexerCPP
 %End
 
 public:
-	TQextScintillaLexerCSharp(TQObject * /TransferThis/ = 0,
-				 const char * = 0);
+	TQextScintillaLexerCSharp(TQObject * /TransferThis/ = nullptr,
+				 const char * = nullptr);
 
 	const char *language() const;
 	TQColor color(int) const;
diff --git a/sip/tqtext/tqextscintillalexercss.sip b/sip/tqtext/tqextscintillalexercss.sip
index adc5672..6b4e24d 100644
--- a/sip/tqtext/tqextscintillalexercss.sip
+++ b/sip/tqtext/tqextscintillalexercss.sip
@@ -53,7 +53,7 @@ public:
 		Attribute
 	};
 
-	TQextScintillaLexerCSS(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQextScintillaLexerCSS(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	const char *language() const;
 	const char *lexer() const;
diff --git a/sip/tqtext/tqextscintillalexerdiff.sip b/sip/tqtext/tqextscintillalexerdiff.sip
index 576c826..e1a605b 100644
--- a/sip/tqtext/tqextscintillalexerdiff.sip
+++ b/sip/tqtext/tqextscintillalexerdiff.sip
@@ -43,7 +43,7 @@ public:
 		LineAdded
 	};
 
-	TQextScintillaLexerDiff(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQextScintillaLexerDiff(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	const char *language() const;
 	const char *lexer() const;
diff --git a/sip/tqtext/tqextscintillalexerhtml.sip b/sip/tqtext/tqextscintillalexerhtml.sip
index 6133b98..3d7be7d 100644
--- a/sip/tqtext/tqextscintillalexerhtml.sip
+++ b/sip/tqtext/tqextscintillalexerhtml.sip
@@ -146,7 +146,7 @@ public:
 		PHPOperator
 	};
 
-	TQextScintillaLexerHTML(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQextScintillaLexerHTML(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	const char *language() const;
 	const char *lexer() const;
diff --git a/sip/tqtext/tqextscintillalexeridl.sip b/sip/tqtext/tqextscintillalexeridl.sip
index 8ae2a83..f5d3122 100644
--- a/sip/tqtext/tqextscintillalexeridl.sip
+++ b/sip/tqtext/tqextscintillalexeridl.sip
@@ -31,7 +31,7 @@ class TQextScintillaLexerIDL : TQextScintillaLexerCPP
 %End
 
 public:
-	TQextScintillaLexerIDL(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQextScintillaLexerIDL(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	const char *language() const;
 	TQColor color(int) const;
diff --git a/sip/tqtext/tqextscintillalexerjava.sip b/sip/tqtext/tqextscintillalexerjava.sip
index 7ffb790..139605a 100644
--- a/sip/tqtext/tqextscintillalexerjava.sip
+++ b/sip/tqtext/tqextscintillalexerjava.sip
@@ -31,7 +31,7 @@ class TQextScintillaLexerJava : TQextScintillaLexerCPP
 %End
 
 public:
-	TQextScintillaLexerJava(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQextScintillaLexerJava(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	const char *language() const;
 	const char *keywords(int) const;
diff --git a/sip/tqtext/tqextscintillalexerjavascript.sip b/sip/tqtext/tqextscintillalexerjavascript.sip
index 0624788..34589d7 100644
--- a/sip/tqtext/tqextscintillalexerjavascript.sip
+++ b/sip/tqtext/tqextscintillalexerjavascript.sip
@@ -31,8 +31,8 @@ class TQextScintillaLexerJavaScript : TQextScintillaLexerCPP
 %End
 
 public:
-	TQextScintillaLexerJavaScript(TQObject * /TransferThis/ = 0,
-				     const char * = 0);
+	TQextScintillaLexerJavaScript(TQObject * /TransferThis/ = nullptr,
+				     const char * = nullptr);
 
 	const char *language() const;
 	TQColor color(int) const;
diff --git a/sip/tqtext/tqextscintillalexerlua.sip b/sip/tqtext/tqextscintillalexerlua.sip
index 3a70a01..450b0d0 100644
--- a/sip/tqtext/tqextscintillalexerlua.sip
+++ b/sip/tqtext/tqextscintillalexerlua.sip
@@ -51,7 +51,7 @@ public:
 		CoroutinesIOSystemFacilities
 	};
 
-	TQextScintillaLexerLua(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQextScintillaLexerLua(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	const char *language() const;
 	const char *lexer() const;
diff --git a/sip/tqtext/tqextscintillalexermakefile.sip b/sip/tqtext/tqextscintillalexermakefile.sip
index d15259e..0035449 100644
--- a/sip/tqtext/tqextscintillalexermakefile.sip
+++ b/sip/tqtext/tqextscintillalexermakefile.sip
@@ -43,7 +43,7 @@ public:
 		Error
 	};
 
-	TQextScintillaLexerMakefile(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQextScintillaLexerMakefile(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	const char *language() const;
 	const char *lexer() const;
diff --git a/sip/tqtext/tqextscintillalexerperl.sip b/sip/tqtext/tqextscintillalexerperl.sip
index e63e71b..0793bcc 100644
--- a/sip/tqtext/tqextscintillalexerperl.sip
+++ b/sip/tqtext/tqextscintillalexerperl.sip
@@ -66,7 +66,7 @@ public:
 %End
 	};
 
-	TQextScintillaLexerPerl(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQextScintillaLexerPerl(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	const char *language() const;
 	const char *lexer() const;
diff --git a/sip/tqtext/tqextscintillalexerpov.sip b/sip/tqtext/tqextscintillalexerpov.sip
index f4f87ad..433c9db 100644
--- a/sip/tqtext/tqextscintillalexerpov.sip
+++ b/sip/tqtext/tqextscintillalexerpov.sip
@@ -53,7 +53,7 @@ public:
 		KeywordSet8
 	};
 
-	TQextScintillaLexerPOV(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQextScintillaLexerPOV(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	const char *language() const;
 	const char *lexer() const;
diff --git a/sip/tqtext/tqextscintillalexerproperties.sip b/sip/tqtext/tqextscintillalexerproperties.sip
index b3be195..e28c854 100644
--- a/sip/tqtext/tqextscintillalexerproperties.sip
+++ b/sip/tqtext/tqextscintillalexerproperties.sip
@@ -41,7 +41,7 @@ public:
 		DefaultValue
 	};
 
-	TQextScintillaLexerProperties(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQextScintillaLexerProperties(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	const char *language() const;
 	const char *lexer() const;
diff --git a/sip/tqtext/tqextscintillalexerpython.sip b/sip/tqtext/tqextscintillalexerpython.sip
index d14a51d..6526080 100644
--- a/sip/tqtext/tqextscintillalexerpython.sip
+++ b/sip/tqtext/tqextscintillalexerpython.sip
@@ -63,8 +63,8 @@ public:
 		Tabs
 	};
 
-	TQextScintillaLexerPython(TQObject * /TransferThis/ = 0,
-				 const char * = 0);
+	TQextScintillaLexerPython(TQObject * /TransferThis/ = nullptr,
+				 const char * = nullptr);
 
 	const char *language() const;
 	const char *lexer() const;
diff --git a/sip/tqtext/tqextscintillalexerruby.sip b/sip/tqtext/tqextscintillalexerruby.sip
index 257aad2..a4cf01b 100644
--- a/sip/tqtext/tqextscintillalexerruby.sip
+++ b/sip/tqtext/tqextscintillalexerruby.sip
@@ -94,7 +94,7 @@ public:
 	};
 %End
 
-	TQextScintillaLexerRuby(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQextScintillaLexerRuby(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	const char *language() const;
 	const char *lexer() const;
diff --git a/sip/tqtext/tqextscintillalexersql.sip b/sip/tqtext/tqextscintillalexersql.sip
index 418351f..3225ec5 100644
--- a/sip/tqtext/tqextscintillalexersql.sip
+++ b/sip/tqtext/tqextscintillalexersql.sip
@@ -65,7 +65,7 @@ public:
 %End
 	};
 
-	TQextScintillaLexerSQL(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQextScintillaLexerSQL(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	const char *language() const;
 	const char *lexer() const;
diff --git a/sip/tqtext/tqextscintillalexertex.sip b/sip/tqtext/tqextscintillalexertex.sip
index 24f42fe..3c7ff47 100644
--- a/sip/tqtext/tqextscintillalexertex.sip
+++ b/sip/tqtext/tqextscintillalexertex.sip
@@ -42,7 +42,7 @@ public:
 		Text
 	};
 
-	TQextScintillaLexerTeX(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQextScintillaLexerTeX(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	const char *language() const;
 	const char *lexer() const;
diff --git a/sip/tqtext/tqextscintillamacro.sip b/sip/tqtext/tqextscintillamacro.sip
index e29ab1f..f7ede64 100644
--- a/sip/tqtext/tqextscintillamacro.sip
+++ b/sip/tqtext/tqextscintillamacro.sip
@@ -31,9 +31,9 @@ class TQextScintillaMacro : TQObject
 %End
 
 public:
-	TQextScintillaMacro(TQextScintilla * /TransferThis/,const char * = 0);
+	TQextScintillaMacro(TQextScintilla * /TransferThis/,const char * = nullptr);
 	TQextScintillaMacro(const TQCString &,TQextScintilla * /TransferThis/,
-			   const char * = 0);
+			   const char * = nullptr);
 
 	void clear();
 	bool load(const TQCString &);
diff --git a/sip/tqtgl/tqgl.sip b/sip/tqtgl/tqgl.sip
index 64deff7..e7d66b4 100644
--- a/sip/tqtgl/tqgl.sip
+++ b/sip/tqtgl/tqgl.sip
@@ -140,7 +140,7 @@ public:
 	TQGLContext(const TQGLFormat &,TQPaintDevice *);
 	TQGLContext(const TQGLFormat &);
 
-	virtual bool create(const TQGLContext * = 0);
+	virtual bool create(const TQGLContext * = nullptr);
 	bool isValid() const;
 	bool isSharing() const;
 	virtual void reset();
@@ -159,7 +159,7 @@ public:
 	static const TQGLContext *currentContext();
 
 protected:
-	virtual bool chooseContext(const TQGLContext * = 0);
+	virtual bool chooseContext(const TQGLContext * = nullptr);
 	virtual void doneCurrent();
     
 %If (WS_X11)
@@ -191,12 +191,12 @@ class TQGLWidget : TQWidget, TQGL
 %End
 
 public:
-	TQGLWidget(TQWidget * /TransferThis/ = 0,const char * = 0,
-		  const TQGLWidget * = 0,WFlags = 0);
-	TQGLWidget(TQGLContext * /Transfer/,TQWidget * /TransferThis/ = 0,const char * = 0,
-		  const TQGLWidget * = 0,WFlags = 0);
-	TQGLWidget(const TQGLFormat &,TQWidget * /TransferThis/ = 0,
-		  const char * = 0,const TQGLWidget * = 0,WFlags = 0);
+	TQGLWidget(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,
+		  const TQGLWidget * = nullptr,WFlags = 0);
+	TQGLWidget(TQGLContext * /Transfer/,TQWidget * /TransferThis/ = nullptr,const char * = nullptr,
+		  const TQGLWidget * = nullptr,WFlags = 0);
+	TQGLWidget(const TQGLFormat &,TQWidget * /TransferThis/ = nullptr,
+		  const char * = nullptr,const TQGLWidget * = nullptr,WFlags = 0);
 
 %ConvertToSubClassCode
 	sipClass = (sipCpp->inherits(sipName_TQGLWidget) ? sipClass_TQGLWidget : nullptr);
diff --git a/sip/tqtnetwork/tqftp.sip b/sip/tqtnetwork/tqftp.sip
index febdc80..2c50628 100644
--- a/sip/tqtnetwork/tqftp.sip
+++ b/sip/tqtnetwork/tqftp.sip
@@ -46,7 +46,7 @@ class TQFtp : TQNetworkProtocol
 
 public:
 	TQFtp();
-	TQFtp(TQObject * /TransferThis/,const char * = 0);
+	TQFtp(TQObject * /TransferThis/,const char * = nullptr);
 	virtual ~TQFtp();
 
 	int supportedOperations() const;
@@ -90,7 +90,7 @@ public:
 	int close() /ReleaseGIL/;
 	int list(const TQString & = TQString::null) /ReleaseGIL/;
 	int cd(const TQString &) /ReleaseGIL/;
-	int get(const TQString &,TQIODevice * = 0) /ReleaseGIL/;
+	int get(const TQString &,TQIODevice * = nullptr) /ReleaseGIL/;
 	int put(const TQByteArray &,const TQString &) /ReleaseGIL/;
 	int put(TQIODevice *,const TQString &) /ReleaseGIL/;
 	int remove(const TQString &) /ReleaseGIL/;
diff --git a/sip/tqtnetwork/tqhttp.sip b/sip/tqtnetwork/tqhttp.sip
index 56dc69f..da963fc 100644
--- a/sip/tqtnetwork/tqhttp.sip
+++ b/sip/tqtnetwork/tqhttp.sip
@@ -155,9 +155,9 @@ class TQHttp : TQNetworkProtocol
 
 public:
 	TQHttp();
-	TQHttp(TQObject * /TransferThis/,const char * = 0);
-	TQHttp(const TQString &,TQ_UINT16 = 80,TQObject * /TransferThis/ = 0,
-	      const char * = 0);
+	TQHttp(TQObject * /TransferThis/,const char * = nullptr);
+	TQHttp(const TQString &,TQ_UINT16 = 80,TQObject * /TransferThis/ = nullptr,
+	      const char * = nullptr);
 	virtual ~TQHttp();
 
 	int supportedOperations() const;
@@ -185,15 +185,15 @@ public:
 
 	int setHost(const TQString &,TQ_UINT16 = 80);
 
-	int get(const TQString &,TQIODevice * = 0) /ReleaseGIL/;
-	int post(const TQString &,TQIODevice *,TQIODevice * = 0) /ReleaseGIL/;
+	int get(const TQString &,TQIODevice * = nullptr) /ReleaseGIL/;
+	int post(const TQString &,TQIODevice *,TQIODevice * = nullptr) /ReleaseGIL/;
 	int post(const TQString &,const TQByteArray &,
-		 TQIODevice * = 0) /ReleaseGIL/;
+		 TQIODevice * = nullptr) /ReleaseGIL/;
 	int head(const TQString &) /ReleaseGIL/;
-	int request(const TQHttpRequestHeader &,TQIODevice * = 0,
-		    TQIODevice * = 0) /ReleaseGIL/;
+	int request(const TQHttpRequestHeader &,TQIODevice * = nullptr,
+		    TQIODevice * = nullptr) /ReleaseGIL/;
 	int request(const TQHttpRequestHeader &,const TQByteArray &,
-		    TQIODevice * = 0) /ReleaseGIL/;
+		    TQIODevice * = nullptr) /ReleaseGIL/;
 
 	int closeConnection();
 
diff --git a/sip/tqtnetwork/tqserversocket.sip b/sip/tqtnetwork/tqserversocket.sip
index 4cbcdce..ba52fd1 100644
--- a/sip/tqtnetwork/tqserversocket.sip
+++ b/sip/tqtnetwork/tqserversocket.sip
@@ -36,11 +36,11 @@ class TQServerSocket : TQObject
 %End
 
 public:
-	TQServerSocket(TQ_UINT16,int = 1,TQObject * /TransferThis/ = 0,
-		      const char * = 0);
+	TQServerSocket(TQ_UINT16,int = 1,TQObject * /TransferThis/ = nullptr,
+		      const char * = nullptr);
 	TQServerSocket(const TQHostAddress &,TQ_UINT16,int = 1,
-		      TQObject * /TransferThis/ = 0,const char * = 0);
-	TQServerSocket(TQObject * /TransferThis/ = 0,const char * = 0);
+		      TQObject * /TransferThis/ = nullptr,const char * = nullptr);
+	TQServerSocket(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	bool ok() const;
 
diff --git a/sip/tqtnetwork/tqsocket.sip b/sip/tqtnetwork/tqsocket.sip
index da31e34..54f9f9c 100644
--- a/sip/tqtnetwork/tqsocket.sip
+++ b/sip/tqtnetwork/tqsocket.sip
@@ -70,7 +70,7 @@ public:
 		ErrSocketRead
 	};
 
-	TQSocket(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQSocket(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	enum State {
 		Idle,
diff --git a/sip/tqtpe/tqpeapplication.sip b/sip/tqtpe/tqpeapplication.sip
index 97ca1fa..41cab52 100644
--- a/sip/tqtpe/tqpeapplication.sip
+++ b/sip/tqtpe/tqpeapplication.sip
@@ -72,7 +72,7 @@ public:
 		{
 			PyObject *sw;
 
-			if ((sw = sipGetWrapper(w,sipClass_TQWidget)))
+			if ((sw = sipGetWrapper(w,sipClass_TQWidget)) != nullptr)
 				sipTransferTo(sw,nullptr);
 
 			++it;
diff --git a/sip/tqtpe/tqpemenubar.sip b/sip/tqtpe/tqpemenubar.sip
index d572cef..502545d 100644
--- a/sip/tqtpe/tqpemenubar.sip
+++ b/sip/tqtpe/tqpemenubar.sip
@@ -33,7 +33,7 @@ class TQPEMenuBar : TQMenuBar
 %End
 
 public:
-	TQPEMenuBar(TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQPEMenuBar(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 protected:
 	virtual void keyPressEvent(TQKeyEvent *);
diff --git a/sip/tqtpe/tqpemenubutton.sip b/sip/tqtpe/tqpemenubutton.sip
index 7d5da05..efbef3f 100644
--- a/sip/tqtpe/tqpemenubutton.sip
+++ b/sip/tqtpe/tqpemenubutton.sip
@@ -33,9 +33,9 @@ class MenuButton : TQPushButton
 %End
 
 public:
-	MenuButton(TQWidget * /TransferThis/,const char * = 0);
+	MenuButton(TQWidget * /TransferThis/,const char * = nullptr);
 	MenuButton(const TQStringList &,TQWidget * /TransferThis/,
-		   const char * = 0);
+		   const char * = nullptr);
 
 	void clear();
 
diff --git a/sip/tqtpe/tqpetoolbar.sip b/sip/tqtpe/tqpetoolbar.sip
index 10fd387..c670d35 100644
--- a/sip/tqtpe/tqpetoolbar.sip
+++ b/sip/tqtpe/tqpetoolbar.sip
@@ -33,7 +33,7 @@ class TQPEToolBar : TQToolBar
 %End
 
 public:
-	TQPEToolBar(TQMainWindow * /TransferThis/ = 0,const char * = 0);
+	TQPEToolBar(TQMainWindow * /TransferThis/ = nullptr,const char * = nullptr);
 
 protected:
 	virtual void childEvent(TQChildEvent *);
diff --git a/sip/tqtsql/tqdatabrowser.sip b/sip/tqtsql/tqdatabrowser.sip
index 4aa7281..0540007 100644
--- a/sip/tqtsql/tqdatabrowser.sip
+++ b/sip/tqtsql/tqdatabrowser.sip
@@ -40,7 +40,7 @@ class TQDataBrowser : TQWidget
 %End
 
 public:
-	TQDataBrowser(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+	TQDataBrowser(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,WFlags = 0);
 
 	enum Boundary {
 		Unknown,
diff --git a/sip/tqtsql/tqdatatable.sip b/sip/tqtsql/tqdatatable.sip
index 5840f3e..91b655d 100644
--- a/sip/tqtsql/tqdatatable.sip
+++ b/sip/tqtsql/tqdatatable.sip
@@ -36,9 +36,9 @@ class TQDataTable : TQTable
 %End
 
 public:
-	TQDataTable(TQWidget* /TransferThis/ = 0,const char * = 0);
-	TQDataTable(TQSqlCursor *,bool = 0,TQWidget * /TransferThis/ = 0,
-		   const char * = 0);
+	TQDataTable(TQWidget* /TransferThis/ = nullptr,const char * = nullptr);
+	TQDataTable(TQSqlCursor *,bool = 0,TQWidget * /TransferThis/ = nullptr,
+		   const char * = nullptr);
 
 	virtual void addColumn(const TQString &,const TQString & = TQString::null,
 			       int = -1,const TQIconSet & = TQIconSet());
@@ -61,7 +61,7 @@ public:
 	TQString filter() const;
 	TQStringList sort() const;
 
-	virtual void setSqlCursor(TQSqlCursor * /GetWrapper/ = 0,bool = 0,bool = 0);
+	virtual void setSqlCursor(TQSqlCursor * /GetWrapper/ = nullptr,bool = 0,bool = 0);
 %MethodCode
 		Py_BEGIN_ALLOW_THREADS
 		sipSelfWasArg ? sipCpp->TQDataTable::setSqlCursor(a0, a1, a2) : sipCpp->setSqlCursor(a0, a1, a2);
diff --git a/sip/tqtsql/tqdataview.sip b/sip/tqtsql/tqdataview.sip
index cfa3c98..484a63a 100644
--- a/sip/tqtsql/tqdataview.sip
+++ b/sip/tqtsql/tqdataview.sip
@@ -36,7 +36,7 @@ class TQDataView : TQWidget
 %End
 
 public:
-	TQDataView(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+	TQDataView(TQWidget * /TransferThis/ = nullptr,const char * = nullptr,WFlags = 0);
 
 	virtual void setForm(TQSqlForm *);
 	TQSqlForm *form();
diff --git a/sip/tqtsql/tqeditorfactory.sip b/sip/tqtsql/tqeditorfactory.sip
index 4208d90..56e3e03 100644
--- a/sip/tqtsql/tqeditorfactory.sip
+++ b/sip/tqtsql/tqeditorfactory.sip
@@ -36,7 +36,7 @@ class TQEditorFactory : TQObject
 %End
 
 public:
-	TQEditorFactory(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQEditorFactory(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
     
 	virtual TQWidget *createEditor(TQWidget * /TransferThis/,
 				      const TQVariant &) /Factory/;
diff --git a/sip/tqtsql/tqsqlcursor.sip b/sip/tqtsql/tqsqlcursor.sip
index 4d85be9..f8269b9 100644
--- a/sip/tqtsql/tqsqlcursor.sip
+++ b/sip/tqtsql/tqsqlcursor.sip
@@ -57,7 +57,7 @@ class TQSqlCursor : TQSqlRecord, TQSqlQuery
 %End
 
 public:
-	TQSqlCursor(const TQString & = TQString::null,bool = 1,TQSqlDatabase * = 0);
+	TQSqlCursor(const TQString & = TQString::null,bool = 1,TQSqlDatabase * = nullptr);
 	TQSqlCursor(const TQSqlCursor &);
 
 	enum Mode {
diff --git a/sip/tqtsql/tqsqldatabase.sip b/sip/tqtsql/tqsqldatabase.sip
index 0f28421..1463251 100644
--- a/sip/tqtsql/tqsqldatabase.sip
+++ b/sip/tqtsql/tqsqldatabase.sip
@@ -126,9 +126,9 @@ public:
 
 protected:
 	TQSqlDatabase(const TQString &,const TQString &,
-		     TQObject * /TransferThis/ = 0,const char * = 0);
-	TQSqlDatabase(TQSqlDriver *,TQObject * /TransferThis/ = 0,
-		     const char * = 0);
+		     TQObject * /TransferThis/ = nullptr,const char * = nullptr);
+	TQSqlDatabase(TQSqlDriver *,TQObject * /TransferThis/ = nullptr,
+		     const char * = nullptr);
 
 private:
 	TQSqlDatabase(const TQSqlDatabase &);
diff --git a/sip/tqtsql/tqsqldriver.sip b/sip/tqtsql/tqsqldriver.sip
index 74aede8..c0f7944 100644
--- a/sip/tqtsql/tqsqldriver.sip
+++ b/sip/tqtsql/tqsqldriver.sip
@@ -46,7 +46,7 @@ public:
 		PositionalPlaceholders
 	};
 
-	TQSqlDriver(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQSqlDriver(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	bool isOpen() const;
 	bool isOpenError() const;
diff --git a/sip/tqtsql/tqsqleditorfactory.sip b/sip/tqtsql/tqsqleditorfactory.sip
index cf0d361..cd058c9 100644
--- a/sip/tqtsql/tqsqleditorfactory.sip
+++ b/sip/tqtsql/tqsqleditorfactory.sip
@@ -36,7 +36,7 @@ class TQSqlEditorFactory : TQEditorFactory
 %End
 
 public:
-	TQSqlEditorFactory(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQSqlEditorFactory(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	virtual TQWidget *createEditor(TQWidget * /TransferThis/,
 				      const TQVariant &) /Factory/;
diff --git a/sip/tqtsql/tqsqlform.sip b/sip/tqtsql/tqsqlform.sip
index 9a03610..6c129f1 100644
--- a/sip/tqtsql/tqsqlform.sip
+++ b/sip/tqtsql/tqsqlform.sip
@@ -36,7 +36,7 @@ class TQSqlForm : TQObject
 %End
 
 public:
-	TQSqlForm(TQObject * /TransferThis/ = 0,const char * = 0);
+	TQSqlForm(TQObject * /TransferThis/ = nullptr,const char * = nullptr);
 
 	virtual void insert(TQWidget *,const TQString &);
 	virtual void remove(const TQString &);
diff --git a/sip/tqtsql/tqsqlquery.sip b/sip/tqtsql/tqsqlquery.sip
index 8212391..2030a44 100644
--- a/sip/tqtsql/tqsqlquery.sip
+++ b/sip/tqtsql/tqsqlquery.sip
@@ -57,7 +57,7 @@ class TQSqlQuery
 
 public:
 	TQSqlQuery(TQSqlResult *);
-	TQSqlQuery(const TQString & = TQString::null,TQSqlDatabase * = 0);
+	TQSqlQuery(const TQString & = TQString::null,TQSqlDatabase * = nullptr);
 	TQSqlQuery(TQSqlDatabase *);
 	TQSqlQuery(const TQSqlQuery &);
 
diff --git a/sip/tqtsql/tqsqlselectcursor.sip b/sip/tqtsql/tqsqlselectcursor.sip
index 147c38c..3df0aea 100644
--- a/sip/tqtsql/tqsqlselectcursor.sip
+++ b/sip/tqtsql/tqsqlselectcursor.sip
@@ -48,7 +48,7 @@ class TQSqlSelectCursor : TQSqlCursor
 %End
 
 public:
-	TQSqlSelectCursor(const TQString & = TQString::null,TQSqlDatabase * = 0);
+	TQSqlSelectCursor(const TQString & = TQString::null,TQSqlDatabase * = nullptr);
 	TQSqlSelectCursor(const TQSqlSelectCursor &);
 	~TQSqlSelectCursor();
 
diff --git a/sip/tqttable/tqtable.sip b/sip/tqttable/tqtable.sip
index 3bbb5fb..2ac9635 100644
--- a/sip/tqttable/tqtable.sip
+++ b/sip/tqttable/tqtable.sip
@@ -218,8 +218,8 @@ class TQTable : TQScrollView
 %End
 
 public:
-	TQTable(TQWidget * /TransferThis/ = 0,const char * = 0);
-	TQTable(int,int,TQWidget * /TransferThis/ = 0,const char * = 0);
+	TQTable(TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
+	TQTable(int,int,TQWidget * /TransferThis/ = nullptr,const char * = nullptr);
 
 %ConvertToSubClassCode
 	sipClass = (sipCpp->inherits(sipName_TQTable) ? sipClass_TQTable : nullptr);
diff --git a/sip/tqtui/tqwidgetfactory.sip b/sip/tqtui/tqwidgetfactory.sip
index c58c477..5cc82ff 100644
--- a/sip/tqtui/tqwidgetfactory.sip
+++ b/sip/tqtui/tqwidgetfactory.sip
@@ -40,12 +40,12 @@ public:
 	TQWidgetFactory();
     virtual ~TQWidgetFactory();
 
-	static TQWidget *create(const TQString &,TQObject * = 0,
-			       TQWidget * /TransferThis/ = 0,
-			       const char * = 0) /Factory/;
-	static TQWidget *create(TQIODevice *,TQObject * = 0,
-			       TQWidget * /TransferThis/ = 0,
-			       const char * = 0) /Factory/;
+	static TQWidget *create(const TQString &,TQObject * = nullptr,
+			       TQWidget * /TransferThis/ = nullptr,
+			       const char * = nullptr) /Factory/;
+	static TQWidget *create(TQIODevice *,TQObject * = nullptr,
+			       TQWidget * /TransferThis/ = nullptr,
+			       const char * = nullptr) /Factory/;
 	static void addWidgetFactory(TQWidgetFactory * /Transfer/);
 	static void loadImages(const TQString &);
 
diff --git a/sip/tqtxml/tqdom.sip b/sip/tqtxml/tqdom.sip
index 2dc3a9d..b581f13 100644
--- a/sip/tqtxml/tqdom.sip
+++ b/sip/tqtxml/tqdom.sip
@@ -45,9 +45,9 @@
 	<FuncDef>bool <Function>setContent</Function></FuncDef>
 	<ParamDef>const TQCString &amp;<Parameter>buffer</Parameter></ParamDef>
 	<ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef>
-	<ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
-	<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
-	<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
+	<ParamDef>TQString *<Parameter>errorMsg</Parameter> = nullptr</ParamDef>
+	<ParamDef>int *<Parameter>errorLine</Parameter> = nullptr</ParamDef>
+	<ParamDef>int *<Parameter>errorColumn</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This takes the <Literal>buffer</Literal> and
@@ -61,9 +61,9 @@ containing the <Literal>bool</Literal> result and the
 	<FuncDef>bool <Function>setContent</Function></FuncDef>
 	<ParamDef>const TQByteArray &amp;<Parameter>buffer</Parameter></ParamDef>
 	<ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef>
-	<ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
-	<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
-	<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
+	<ParamDef>TQString *<Parameter>errorMsg</Parameter> = nullptr</ParamDef>
+	<ParamDef>int *<Parameter>errorLine</Parameter> = nullptr</ParamDef>
+	<ParamDef>int *<Parameter>errorColumn</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This takes the <Literal>buffer</Literal> and
@@ -77,9 +77,9 @@ containing the <Literal>bool</Literal> result and the
 	<FuncDef>bool <Function>setContent</Function></FuncDef>
 	<ParamDef>const TQString &amp;<Parameter>text</Parameter></ParamDef>
 	<ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef>
-	<ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
-	<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
-	<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
+	<ParamDef>TQString *<Parameter>errorMsg</Parameter> = nullptr</ParamDef>
+	<ParamDef>int *<Parameter>errorLine</Parameter> = nullptr</ParamDef>
+	<ParamDef>int *<Parameter>errorColumn</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This takes the <Literal>text</Literal> and
@@ -93,9 +93,9 @@ containing the <Literal>bool</Literal> result and the
 	<FuncDef>bool <Function>setContent</Function></FuncDef>
 	<ParamDef>const TQIODevice *<Parameter>dev</Parameter></ParamDef>
 	<ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef>
-	<ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
-	<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
-	<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
+	<ParamDef>TQString *<Parameter>errorMsg</Parameter> = nullptr</ParamDef>
+	<ParamDef>int *<Parameter>errorLine</Parameter> = nullptr</ParamDef>
+	<ParamDef>int *<Parameter>errorColumn</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This takes the <Literal>dev</Literal> and
@@ -108,9 +108,9 @@ containing the <Literal>bool</Literal> result and the
 <FuncSynopsis>
 	<FuncDef>bool <Function>setContent</Function></FuncDef>
 	<ParamDef>const TQCString &amp;<Parameter>buffer</Parameter></ParamDef>
-	<ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
-	<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
-	<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
+	<ParamDef>TQString *<Parameter>errorMsg</Parameter> = nullptr</ParamDef>
+	<ParamDef>int *<Parameter>errorLine</Parameter> = nullptr</ParamDef>
+	<ParamDef>int *<Parameter>errorColumn</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This takes the <Literal>buffer</Literal> parameter only and returns a tuple
@@ -122,9 +122,9 @@ containing the <Literal>bool</Literal> result and the
 <FuncSynopsis>
 	<FuncDef>bool <Function>setContent</Function></FuncDef>
 	<ParamDef>const TQByteArray &amp;<Parameter>buffer</Parameter></ParamDef>
-	<ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
-	<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
-	<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
+	<ParamDef>TQString *<Parameter>errorMsg</Parameter> = nullptr</ParamDef>
+	<ParamDef>int *<Parameter>errorLine</Parameter> = nullptr</ParamDef>
+	<ParamDef>int *<Parameter>errorColumn</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This takes the <Literal>buffer</Literal> parameter only and returns a tuple
@@ -136,9 +136,9 @@ containing the <Literal>bool</Literal> result and the
 <FuncSynopsis>
 	<FuncDef>bool <Function>setContent</Function></FuncDef>
 	<ParamDef>const TQString &amp;<Parameter>text</Parameter></ParamDef>
-	<ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
-	<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
-	<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
+	<ParamDef>TQString *<Parameter>errorMsg</Parameter> = nullptr</ParamDef>
+	<ParamDef>int *<Parameter>errorLine</Parameter> = nullptr</ParamDef>
+	<ParamDef>int *<Parameter>errorColumn</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This takes the <Literal>text</Literal> parameter only and returns a tuple
@@ -150,9 +150,9 @@ containing the <Literal>bool</Literal> result and the
 <FuncSynopsis>
 	<FuncDef>bool <Function>setContent</Function></FuncDef>
 	<ParamDef>const TQIODevice *<Parameter>dev</Parameter></ParamDef>
-	<ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
-	<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
-	<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
+	<ParamDef>TQString *<Parameter>errorMsg</Parameter> = nullptr</ParamDef>
+	<ParamDef>int *<Parameter>errorLine</Parameter> = nullptr</ParamDef>
+	<ParamDef>int *<Parameter>errorColumn</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 This takes the <Literal>dev</Literal> parameter only and returns a tuple
@@ -165,9 +165,9 @@ containing the <Literal>bool</Literal> result and the
 	<FuncDef>bool <Function>setContent</Function></FuncDef>
 	<ParamDef>TQXmlInputSource *<Parameter>source</Parameter></ParamDef>
 	<ParamDef>TQXmlReader *<Parameter>reader</Parameter></ParamDef>
-	<ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
-	<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
-	<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
+	<ParamDef>TQString *<Parameter>errorMsg</Parameter> = nullptr</ParamDef>
+	<ParamDef>int *<Parameter>errorLine</Parameter> = nullptr</ParamDef>
+	<ParamDef>int *<Parameter>errorColumn</Parameter> = nullptr</ParamDef>
 </FuncSynopsis>
 <Para>
 Not yet implemented.  (TQt v3.2.0+)
@@ -553,8 +553,8 @@ public:
                 sipType_TQString, (PyObject *)0, eline, ecol);
 %End
 
-//	bool setContent(TQXmlInputSource *,TQXmlReader *,TQString * = 0,int * = 0,
-//			int * = 0);
+//	bool setContent(TQXmlInputSource *,TQXmlReader *,TQString * = nullptr,int * = nullptr,
+//			int * = nullptr);
 
 	TQDomNode::NodeType nodeType() const;
 	bool isDocument() const;
-- 
cgit v1.2.3

