Naming Guidelines
To avoid chaos and naming conflicts Trolltech recommends that you follow these naming guidelines when you create new classes based on Qt that you wish to release to the open source software community.
When you are ready to release your new fantastic classes/applications for the first time, please let us know about a web page we can reference to. We will then add your class(es)/application(s) to our list of Free Programs and Libraries that use Qt.
Global Names in Your Code
All global names in your header file, i.e. class names, global enums, global functions, preprocessing symbols, etc. should start with a 'q' (uppercase or lowercase), followed by a 1, 2 or 3 character lowercase prefix, followed by a descriptive name. We recommend the following scheme, where xxx is your prefix:
| Class Names, Global Types (enums included), global enum identifiers: QxxxDescriptiveName |
| Global Functions: qxxxDescriptiveName |
| Preprocessor Symbols: QxxxDESCRIPTIVENAME |
File Names
| classname.h(and/or ClassName) for header files |
| classname.cpp for code files |
We recommend using lowercase file names for Windows compatibility. In addition, you should put your code in a directory called qxxx, where xxx is your prefix. You should then use #include<qxxx/ClassName.h> to include header files.
Name Prefixes
As a service to the open source software community Trolltech maintains an archive of reserved name prefixes. If you register your prefix with us you will at least have a very good answer to give when somebody complains about a name crash.
Trolltech will not act as police if someone should break these rules.
Reserved Name Prefixes
If you want to reserve a prefix, please send mail to qt-prefix (at) trolltech.com, first come, first served.
Identifiers of the form: QDescriptiveName, qDescriptiveName and QDESCRIPTIVENAME are reserved by Trolltech.
To avoid a race to grab all the single letter prefixes, you'll have to have a working class :-) released at an ftp site somewhere (e.g. ftp.trolltech.com) to be allocated a single letter prefix. 2 and 3 letter prefixes can be allocated by anyone.
The following prefixes have been reserved by developers of Qt based classes.
| Single Letter Prefixes | |
| a, as in
QaClassName Reserved by Alexander Kroeller <ali-at-fb3-s7.math.TU-Berlin.DE> |
|
| b, as in
QbClassName Reserved by Daniel Brahneborg <basic-at-well.com> |
|
| B, as in
QBClassName Reserved by Biju Kunnappada <biju.thegreat-at-gmail.com> |
|
| c, as in
QcClassName Reserved by Darko Cerdic <darko-at-octodon.com> |
|
| d, as in
QdClassName Reserved by Jon DeNardis <docboy-at-tznet.com> |
|
| e, as in
QeClassName Reserved by Aron Wieck <aw-at-entropia.biz> |
|
| f, as in
QfClassName Reserved by Gabor Fleischer <flocsysoft-at-usa.net> |
|
| g, as in
QgClassName Reserved by Geri House <ge_ha-at-yahoo.com> |
|
| j, as in
QjClassName Reserved by Johan Thelin <e8johan-at-yahoo.se> |
|
| k, as in
QkClassName Reserved by Pieter van Beek <vanbeek-at-kobasoft.nl> |
|
| m, as in
QmClassName Reserved by Marius Sundbakken <marius-at-fix.no> |
|
| r, as in
QrClassName Reserved by John Dean <john-at-rygannon.com> |
|
| s, as in
QsClassName Reserved by Sven Mueller <sven-qt-at-incase.de> |
|
| t, as in
QtClassName Reserved by Trolltech <info-at-trolltech.com> |
|
| u, as in
QuClassName Reserved by kirill lepski <kirill.lepski-at-imagingtools.de> |
|
| w, as in
QwClassName Reserved by Warwick Allison <warwick-at-trolltech.com> |
|
| x, as in
QxClassName Reserved by Greger Haga <gregerhaga-at-yahoo.com> |
|
| z, as in
QzClassName Reserved by Colin Manning <colin at tenset dot co dot uk> |
|
| Double Letter Prefixes | |
| ak, as in
QakClassName Reserved by Andreas Krebs <mail-at-krebs-net.de> |
|
| aw, as in
QawClassName Reserved by Arjen Wiersma <arjen-at-wiersma.org> |
|
| ap, as in
QapClassName Reserved by Alexey Pushkin <A.Pushkin-at-mitsunari.matfys.lth.se> |
|
| az, as in
QazClassName Reserved by Paul Curtis <paul-at-32rowley.co.uk> |
|
| ba, as in
QbaClassName Reserved by G. Burc Arpat <burch-at-burcarpat.com> |
|
| bb, as in
QbbClassName Reserved by Brian Bandy <bbandy-at-bbandy.com> |
|
| bt, as in
QbtClassName Reserved by Tim Beaulen <tbscope-at-gmail.com> |
|
| ch, as in
QchClassName Reserved by Stephen Davies <Chalky-at-tpgi.com.au> |
|
| cj, as in
QcjClassName Reserved by Joe Croft <joe-at-croftj.net> |
|
| cl, as in
QclClassName Reserved by CAD&LAN Computersysteme GmbH <rgerlach-at-cid-bz.de> |
|
| cm, as in
QcmClassName Reserved by Christian Mönch <Moench-at-em.uni-frankfurt.de> |
|
| cr, as in
QcrClassName Reserved by R.Chandan <r_chandan2001-at-yahoo.com> |
|
| cs, as in
QcsClassName Reserved by Lionel Schaffhauser <lionel.schaffhauser-at-free.fr> |
|
| cw, as in
QcwClassName Reserved by Christian Wolf <chris-at-medis.de> |
|
| db, as in
QdbClassName Reserved by Wolfgang Glas <Wolfgang.Glas-at-ev-i.at> |
|
| de, as in
QdeClassName Reserved by Ernesto Garcia <ernesto_cgf-at-yahoo.com> |
|
| dk, as in
QdkClassName Reserved by Daniel Kastenholz <kada0012-at-fh-karlsruhe.de> |
|
| dm, as in
QdmClassName Reserved by Davide Manià <davidemania-at-virgilio.it> |
|
| dp, as in
QdpClassName Reserved by Durga Prasad <durgasharma_576-at-yahoo.com> |
|
| ds, as in
QdsClassName Reserved by Ulrich Berning <ulrich.berning-at-desys.de> |
|
| ed, as in
QedClassName Reserved by James Croft <james-at-ednet.co.uk> |
|
| ex, as in
QexClassName Reserved by Hussein SHAFIE <hussein-at-pixware.fr> |
|
| fk, as in
QfkClassName Reserved by Frank Kehren <f.kehren-at-fz-juelich.de> |
|
| ft, as in
QftClassName Reserved by Michael W. Dillard <Michael.Dillard-at-m.eads.net> |
|
| gb, as in
QgbClassName Reserved by Georg Bisseling <spam-at-bisseling.de> |
|
| gd, as in
QgdClassName Reserved by Scott Winder <scott.winder-at-gd-ais.com> |
|
| gm, as in
QgmClassName Reserved by Richard Stevens <richard-at-greymoon.com> |
|
| gn, as in
QgnClassName Reserved by Lionel Schaffhauser <lionel.schaffhauser-at-free.fr> |
|
| gp, as in
QgpClassName Reserved by Guillaume Prunier <guillaume.prunier-at-xpsoft.fr> |
|
| gr, as in
QgrClassName Reserved by Geraldo Luis da Silva Ribeiro <geraldo-ribeiro-at-uol.com.br> |
|
| gs, as in
QgsClassName Reserved by Gary Sherman <gsherman-at-cgi.net> |
|
| hd, as in
QhdClassName Reserved by Dirk Thamer <dirk.thamer-at-hd-systeme.de> |
|
| hv, as in
QhvClassName Reserved by Holger Vogelsang <holger.vogelsang-at-fh-karlsruhe.de> |
|
| hx, as in
QhxClassName Reserved by Alan Yeh <blowfishyeh-at-gmail.com> |
|
| if, as in
QifClassName Reserved by Mike Ivanov <mike-at-if-site.com> |
|
| ib, as in
QibClassName Reserved by Irakli Betchvaia <betschwaia-at-bigfoot.com> |
|
| ix, as in
QixClassName Reserved by Steve Schau <steve.schaub-at-identix.com> |
|
| ja, as in
QjaClassName Reserved by Jonatan Andersson <jonatan-at-jonix.org> |
|
| jb, as in
QjbClassName Reserved by Jon Brumfitt <jbrumfit-at-estsa2.estec.esa.nl> |
|
| jc, as in
QjcClassName Reserved by John Clayton <john_clayton-at-mac.com> |
|
| jf, as in
QjfClassName Reserved by Jürgen Feichtinger <juerchen-at-web.de> |
|
| jg, as in
QjgClassName Reserved by Joe Gilkey <jgilkey-at-hotmail.com> |
|
| jm, as in
QjmClassName Reserved by Juergen Merkel <merkel-at-deneg.de> |
|
| jo, as in
QjoClassName Reserved by Johannes Overmann <overmann-at-i6.informatik.rwth-aachen.de> |
|
| jr, as in
QjrClassName Reserved by Johan Råde <rade-at-maths.lth.se> |
|
| js, as in
QjsClassName Reserved by Jan Soldan <soldan-at-obs.unige.ch> |
|
| km, as in
QkmClassName Reserved by Karsten Muehlmann <muehlman-at-mp-sun1.informatik.uni-mannheim.de> |
|
| ks, as in
QksClassName Reserved by Mike Vivash <deadcode42-at-yahoo.ca> |
|
| lc, as in
QlcClassName Reserved by Luca Ciancetta <luca.ciancetta-at-tiscali.it> |
|
| lg, as in
QlgClassName Reserved by Chris Piker <cwp-at-space.physics.uiowa.edu> |
|
| lm, as in
QlmClassName Reserved by Leos Mervart <mervart-at-aiub.unibe.ch> |
|
| ls, as in
QlsClassName Reserved by Emmanuel Charruau <info-at-lifecycle-software.com> |
|
| ma, as in
QmaClassName Reserved by Neil Durant <neil-at-octrix.com> |
|
| mb, as in
QmbClassName Reserved by Melih Birim<melihbirim-at-gmail.com> |
|
| mc, as in
QmcClassName Reserved by Michael van der Westhuizen <michael-at-mudpuppies.co.za> |
|
| mg, as in
QmgClassName Reserved by Thierry Lauthelier <mamouth-at-macguff.fr> |
|
| mj, as in
QmjClassName Reserved by Majid Shaafie <majid-at-linux.net> |
|
| mm, as in
QmmClassName Reserved by Matthias Mohr <Matthias-at-mohrenclan.de> |
|
| mp, as in
QmpClassName Reserved by Martin Persson <marpe581-at-student.liu.se> |
|
| ms, as in
QmsClassName Reserved by Marco Siciliano <Marco.Siciliano-at-dfs.de> |
|
| mt, as in
QmtClassName Reserved by Mats Tjäder <mattj452-at-student.liu.se> |
|
| mw, as in
QmwClassName Reserved by Michael Wiedmann <mw-at-miwie.in-berlin.de> |
|
| NI, as in QNIClassName Reserved by Dr. Andreas Pyttlik <andreas.pyttlik-at-basf-it-services.com> |
|
| nb, as in
QnbClassName Reserved by Nathan Briggs <vigo-at-blueyonder.co.uk> |
|
| oc, as in
QocClassName Reserved by Michele Ricciardi <michelericciardi-at-tiscalinet.it> |
|
| oo, as in
QooClassName Reserved by Oleg Khoruzhiy <coololeg-at-rambler.ru> |
|
| op, as in
QopClassName Reserved by Torsten Senz<Torsten.Senz-at-ORGAPLAN.de> |
|
| pg, as in
QpgClassName Reserved by Peter Guthseel <peter-at-guthseelgmbh.de> |
|
| pp, as in
QppClassName Reserved by Philippe Pétillon <ppetillon-at-free.fr> |
|
| py, as in
QpyClassName Reserved by Phil Thompson <phil-at-riverbankcomputing.co.uk> |
|
| qc, as in
QqcClassName Reserved by Karl Wallner <karl-qtdev-at-weps.de> |
|
| rb, as in
QrbClassName Reserved by Rumith Barinov <dperry.cham-at-gmail.com> |
|
| rd, as in
QrdClassName Reserved by Roy Dennington <roy-at-semichem.com> |
|
| rn, as in
QrnClassName Reserved by Ralf Niehues <quick-at-exemail.com.au> |
|
| rt, as in
QrtClassName Reserved by RT-SET (contact person: Ken Fuhrman) <kenf-at-rtset.com> |
|
| tf, as in
QtfClassName Reserved by Thorsten Fuhrmann <thorsten.fuhrmann-at-rwth-aachen.de> |
|
| ts, as in
QtsClassName Reserved by Tair Sabirgaliev < tair.s-at-sdu.edu.kz> |
|
| tu, as in
QtuClassName Reserved by Thomas Stinner <thomas.stinner-at-schuechen.de> |
|
| tt, as in
QttClassName Reserved by Transtechnik Lichtsysteme <hleiter-at-ttlicht.com> |
|
| sc, as in
QscClassName Reserved by Sandro Sigala <ssigala-at-globalnet.it> |
|
| sd, as in
QsdClassName Reserved by Matthias Mohr <MMohr-at-sysdesign-edv.de> |
|
| sp, as in
QspClassName Reserved by Oliver Sprenger <oliver-at-sprengeronline.de> |
|
| sk, as in
QskClassName Reserved by Stephan Kanthak <kanthak-at-i6.informatik.rwth-aachen.de> |
|
| tb, as in
QtbClassName Reserved by Marc Wathelet <mwathelet-at-wanadoo.fr> |
|
| te, as in
QteClassName Reserved by Tryggvi Edwald <Tryggvi.Edwald-at-CTBTO.ORG> |
|
| tk, as in
QtkClassName Reserved by Thomas Kindler <thomas.kindler-at-gmx.de> |
|
| ts, as in
QtsClassName Reserved by Thomas Schneider <thomas.b.schneider-at-web.de> |
|
| tp, as in
QtpClassName Reserved by Trond Hagesæter (Teleplan) <teh-at-teleplan.no> |
|
| tq, as in
QtqClassName Reserved by Paul Curtis <paul-at-32rowley.co.uk> |
|
| ua, as in
QuaClassName Reserved by Sergey Tachenov <laerel-at-yandex.ru> |
|
| ut, as in
QutClassName Reserved by Udo Tremel <udo.tremel-at-m.eads.net> |
|
| vs, as in
QvsClassName Reserved by Vladi Shabanski <cade-at-biscom.net> |
|
| wb, as in
QwbClassName Reserved by Frederic CORNU <deufrai-at-noos.fr> |
|
| zn, as in
QznClassName Reserved by Zdravko Nezic <Zdravko.Nezic-at-ieee.org> |
|
| xt, as in
QxtClassName Reserved by Gregor Anich <blight at blight dot eu dot org> |
|
| xx, as in QxxnClassName Reserved by Jörg Leuschke <joerg.leuschke-at-web.de> |
|
| Triple Letter Prefixes | ||
| abk, as in
QabkClassName Reserved by bugra koku <bugra-at-bugra.net> |
||
| ake, as in
QakeClassName Reserved by Biju Kunnappada <biju.thegreat-at-gmail.com> |
||
| akk, as in
QakkClassName Reserved by Ari Kautonen <akk-at-sci.fi> |
||
| asc, as in
QascClassName Reserved by ascolab GmbH <info-at-ascolab.com> |
||
| bal, as in
QbalClassName Reserved by Paul Kramer <qbal-at-pacbell.net> |
||
| bot, as in
QbotClassName Reserved by G. Burc Arpat <burch-at-burcarpat.com> |
||
| chi , as in
Qchi ClassName Reserved by Federico Russo <chiccorusso-at-libero.it> |
||
| cis, as in
QcisClassName Reserved by David Alex Lamb <dalamb-at-qucis.queensu.ca> |
||
| cjs, as in
QcjsClassName Reserved by Chris Smith <cjs94-at-zepler.org.uk> |
||
| cls, as in
QclsClassName Reserved by Adrian Bennetton <adrian-at-arkcls.com> |
||
| cmh, as in
QcmhClassName Reserved by Cory M Hicks <cmhicks-at-acm.org> |
||
| csc, as in
QcscClassName Reserved by Clifford Johnstun <cjohnstun-at-csc.com> |
||
| csd, as in
QcsdClassName Reserved by Claus Schmid <csschmid-at-web.de> |
||
| css, as in
QcssClassName Reserved by Brock Williams <brock-at-cotcomsol.com> |
||
| daa, as in
QdaaClassName Reserved by Bernd Minet <bm-at-daa.de> |
||
| dtc, as in
QdtcClassName Reserved by Eric Liao <eric-at-mail.dialogue.com.tw> |
||
| dti, as in
QdtiClassName Reserved by Davis Tool Inc. <JAMESH-at-davistl.com> |
||
| dsy, as in
QdsyClassName Reserved by Dinu Scheppelmann <dinu-at-adakta.de> |
||
| dwk, as in
QdwkClassName Reserved by Kletzli Jr, David W <david.kletzli-at-gd-ais.com> |
||
| eiv, as in
QeivClassName Reserved by Patrick BURNAND <pburnand-at-yahoo.com> |
||
| ekg, as in
QekgClassName Reserved by Michael J. Welch, Ph.D. <mjwelchphd-at-adelphia.net> |
||
| emo, as in
QemoClassName Reserved by Emil Simeonov <mu_to-at-abv.bg> |
||
| ggz, as in
QggzClassName Reserved by Onno van Eijk <onno-at-gorgoz.org> |
||
| hle, as in
QhleClassName Reserved by Ricardo Vaz Mannrich <mannrich-at-hotmail.com> |
||
| jan, as in QjanClassName Reserved by Jan Budde <qjanqtatgooglemaildotcom> |
||
| jpp, as in QjppClassName Reserved by Peter Botha <peterb-at-goldcircle.co.za> |
||
| isr, as in
QisrClassName Reserved by Joseph Davis <Joseph.Davis-at-isarinc.com> |
||
| ico, as in
QicoClassName Reserved by iCodsi (Inteligencia Computacional para el Desarrollo Seguro en Internet) <jose.maria-at-icodsi.biz> |
||
| ics, as in
QicsClassName Reserved by Mark Hatch < mhatch at ics dot com> |
||
| ion, as in
QionClassName Reserved by Erik Rehrmann <rehrmann-at-ion.ag> |
||
| jfm, as in
QjfmClassName Reserved by John F. Meinel Jr. <jfmeinel-at-ct.radiology.uiowa.edu> |
||
| jgv, as in
QjgvClassName Reserved by Jose María Gómez Vergara <jose.maria-at-icodsi.biz> |
||
| jvf, as in
QjvfClassName Reserved by Jiri Fiser <FiserJiri-at-seznam.cz> |
||
| key, as in
QkeyClassName Reserved by cjkware.com inc. <risingsun-at-cjkware.com> |
||
| kts, as in
QktsClassName Reserved by Keith Brown <ksbrown-at-ix.netcom.com> |
||
| lab, as in
QlabClassName Reserved by LAB Project <labproject-at-free.fr> |
||
| log, as in
QlogClassName Reserved by Kevin Fisk <KFisk-at-linkpoint.com> |
||
| mag, as in
QmagClassName Reserved by Magic Touch Ltd <info-at-magic.fi> |
||
| map, as in
QmapClassName Reserved by Alexis Peuch <alexis.peuch-at-free.fr> |
||
| mar, as in
QmarClassName Reserved by Ralph-Diether Marzusch <rdm-at-marzusch.com> |
||
| mat, as in
QmatClassName Reserved by Mark Thomas <mark-at-m-a-t.com> |
||
| maj, as in
QmajClassName Reserved by Mark Jones <markalanj-at-yahoo.no> |
||
| mcm, as in
QmcmClassName Reserved by Steven Clark <mcmustard-at-mcmustard.com> |
||
| mdl, as in
QmdlClassName Reserved by Matthew David Langston <langston-at-SLAC.Stanford.EDU> |
||
| mge, as in
QmgeClassName Reserved by Matthias G. Eckermann <mge-at-arcor.de> |
||
| mms, as in
QmmsClassName Reserved by Max Strumia <cromalloy-at-yahoo.com> |
||
| mud, as in
QmudClassName Reserved by Fontani Marco <emc2-at-luda.it> |
||
| mvd, as in
QmvdClassName Reserved by Mark van Dijk <mark.van.dijk-at-nz.dialogic.com> |
||
| nab, as in
QnabClassName Reserved by Nick Bastin <nbastin-at-rbbsystems.com> |
||
| nan, as in
QnanClassName Reserved by Andreas Nicolai <anicolai-at-syr.edu> |
||
| ool, as in
QoolClassName Reserved by Alexey V. Samsonoff <asamsonoff-at-mail.ru> |
||
| ons, as in
QonsClassName Reserved by Nick Charsley <nick-at-oldnicksoftware.co.uk> |
||
| opc, as in
QopcClassName Reserved by ascolab GmbH <info-at-ascolab.com> |
||
| omg, as in
QomgClassName Reserved by Tim Sutton <tim-at-linfiniti.com> |
||
| pag, as in
QpagClassName Reserved by Paul Gearon <pag-at-tams.com.au> |
||
| pkf, as in
QpkfClassName Reserved by Paul Fossey <plfossey-at-comcast.net> |
||
| pro, as in
QproClassName Reserved by João Teixeira Soares <teixeira-at-produsys.de> |
||
| red, as in
QredClassName Reserved by Alex Makarenko <a.makarenko-at-acfr.usyd.edu.au> |
||
| rjp, as in
QrjpClassName Reserved by Richard J. Pontefrac <richard.pontefract-at-auth-sol.co.uk> |
||
| qte, as in
QqteClassName Reserved by Harry Voorhees <hlv-at-stellarscience.com> |
||
| ryk, as in
QrykClassName Reserved by Krystian Bate <blackstaff-at-i-star.com> |
||
| sci, as in
QsciClassName Reserved by Phil Thompson <phil-at-riverbankcomputing.co.uk> |
||
|
||
| sdu, as in
QsduClassName Reserved by Tair Sabirgaliev <tair.s-at-sdu.edu.kz> |
||
| sim, as in
QsimClassName Reserved by Nathan Briggs <vigo-at-blueyonder.co.uk> |
||
| sks, as in
QsksClassName Reserved by Sean Kendall Schneyer <Sean.Schneyer-at-hks.se> |
||
| smh, as in
QsmhClassName Reserved by Sascha M. Hagner <ravens-at-dssg.de> |
||
| spa, as in
QspaClassName Reserved by Allen Shockley <ceimis-at-earthlink.net> |
||
| taj, as in
QtajClassName Reserved by Sirtaj Singh Kang <ssk-at-physics.unimelb.EDU.AU> |
||
| tam, as in
QtamClassName Reserved by Paul Gearon <pag-at-tams.com.au> |
||
| tcs, as in
QtcsClassName Reserved by Horst Tellioglu <horst.tellioglu-at-3rd-case.com> |
||
| tec, as in
QtecClassName Reserved by HEITEC Datentechnik GmbH, Stefan Hundhammer <Stefan.Hundhammer-at-datech.heitec.de> |
||
| tfb, as in
QtfbClassName Reserved by Chris Smith, TFB Plc. <chris.smith-at-tfbplc.co.uk> |
||
| tkl, as in
QtklClassName Reserved by Douglas Lenz <douglas.lenz-at-tklabs.com> |
||
| thy, as in
QthyClassName Reserved by Kristian Thy <thy-at-42.dk> |
||
| tna, as in
QtnaClassName Reserved by TNA Australia Pty Ltd <song.zhao-at-tnarobag.com> |
||
| tpi, as in
QtpiClassName Reserved by Rory Jackson <libqtpi-at-gmail.com> |
||
| uad, as in
QuadClassName Reserved by Halvor Kise jr. <halvor-at-cybercomm.no> |
||
| ube, as in
QubeClassName Reserved by Reinhard Lackner <mares25-at-uboot.com> |
||
| uik, as in
QuikClassName Reserved by Mike Perik <mikep-at-crt.com> |
||
| uiz, as in
QuizClassName Reserved by Richard D. Jackson <rjackson-at-bga.com> |
||
| ute, as in
QuteClassName Reserved by Biju Kunnappada <biju.thegreat-at-gmail.com> |
||
| uux, as in
QuuxClassName Reserved by Paul Foley <mycroft-at-actrix.gen.nz> |
||
| vld, as in
QvldClassName Reserved by Vincent Damewood <vincentdamewood-at-yahoo.com> |
||
| viz, as in
QvizClassName Reserved by Bjørn Ullevoldsæter <BUllevoldsaeter-at-vizrt.com> |
||
| wav, as in
QwavClassName Reserved by Peter Eschle <peschler-at-t-online.de> |
||
| wbr, as in
QwbrClassName Reserved by Dmitry Krasnykch <weber-at-softwarium.net> |
||
| wgt, as in
QwgtClassName Reserved by Bennett Smith <idvlpsw-at-gmail.com> |
||
| xxx, as in
QxxxClassName Reserved by Robin Pedersen <robinped-at-netcom.no> |
||
| Quadruple Letter Prefixes | |
| dkzm, as in
QdkzmClassName Reserved by Dmitriy Kazimirow <dmitriy-at-kazimirow.pp.ru> |
|
| biju, as in
QbijuClassName Reserved by Biju Kunnappada <biju.thegreat-at-gmail.com> |
|
| luxx, as in QluxxClassName Reserved by Lucky Hawton <the-luxx-at-hotmail.com> |
|
| cgal, as in QcgalClassName Reserved by Andreas Fabri <andreas.fabri at geometryfactory.com> |
|
| Quintuple(!) Letter Prefixes | |
| ctbto, as in
QctbtoClassName Reserved by International Comprehensive Nuclear-Test-Ban <Tryggvi.Edwald-at-CTBTO.ORG> |
|
| Frank, as in
QFrankClassName Reserved by Frank Büttner <frank-buettner-at-gmx.net> |
|
Header File Example
You have reserved the prefix "ute" and want to release a class called Mountain, You put the code in the directory "qute", the header file qutemountain.h looks like this:
/*******************************************************
**
** Definition of QuteMountain
**
** Copyright (C) 1996 Harald Acker.
**
** QuteMountain is free software; you can redistribute
** it and/or modify it under the terms of the GNU
** Library General Public License as published by the
** Free Software Foundation; either version 2, or (at
** your option) any later version.
**
********************************************************/
#ifndef QuteMOUNTAIN_H
#define QuteMOUNTAIN_H
#include <QFrame>
enum QuteWeather { QuteSunshine, QuteOvercast,
QuteCloudy, QuteRain,
QuteThunderstorm, QuteSnow };
QuteWeather qutePollWeatherStation();
class QuteMountain : public QFrame
{
Q_OBJECT
public:
QuteMountain(QWidget *parent = 0);
QuteMountain(QuteWeather weather, QWidget *parent = 0);
~QuteMountain();
bool hasNiceWeather() const;
public slots:
void climbIt();
signals:
void weatherChanged();
protected:
void resizeEvent(QResizeEvent *event);
void paintEvent(QPaintEvent *event);
private:
// disable copy constructor and assignment operator
QuteMountain(const QuteMountain &) {}
QuteMountain &operator=(const QuteMountain &) { return *this; }
QuteWeather weather;
};
#endif // QuteMOUNTAIN_H