Sandbox: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 19: Line 19:




Code Blocks Formatting
==Code Blocks Formatting==
==CPP==
===CPP===
<code lang="cpp">
<code lang="cpp">
#include <test.h>
#include <test.h>
Line 42: Line 42:
</code>
</code>


==CPP-QT==
===CPP-QT===
<code lang="cpp-qt">
<code lang="cpp-qt">
#include <test.h>
#include <test.h>
Line 63: Line 63:
}
}
</code>
</code>
==None==
 
===None===
<code>
<code>
#include <test.h>
#include <test.h>
Line 85: Line 86:
</code>
</code>


==Unknown==
===Error===
<code lang="unknown">
<code lang="unknown">
#include <test.h>
#include <test.h>

Revision as of 13:34, 7 July 2015

Welcome to the Sandbox

Here you can try out the MediaWiki Markup and our Qt Wiki Templates.

Info about this Wiki:

Site Name: Qt Wiki
Server Name: wiki.qt.io

Info about this page:

Page Name: Sandbox

Localisation Test: Sandbox/de


Code Blocks Formatting

CPP

#include <test.h>
#define CONSTANTVALUE 9
if(x==true)
{
  callSomeOtherFunction();
  switch(someVar)
  {
    default:
    case CONSTANTVALUE:
    {
      for(int i=0;i<CONSTANTVALUE;i++)
      {
        qDebug()<<"Text: "<< i;
      }
    }
      break;
  }
}

CPP-QT

#include <test.h>
#define CONSTANTVALUE 9
if(x==true)
{
  callSomeOtherFunction();
  switch(someVar)
  {
    default:
    case CONSTANTVALUE:
    {
      for(int i=0;i<CONSTANTVALUE;i++)
      {
        qDebug()<<"Text: "<< i;
      }
    }
      break;
  }
}

None

#include <test.h>
#define CONSTANTVALUE 9
if(x==true)
{
  callSomeOtherFunction();
  switch(someVar)
  {
    default:
    case CONSTANTVALUE:
    {
      for(int i=0;i<CONSTANTVALUE;i++)
      {
        qDebug()<<"Text: "<< i;
      }
    }
      break;
  }
}

Error

#include <test.h>
#define CONSTANTVALUE 9
if(x==true)
{
  callSomeOtherFunction();
  switch(someVar)
  {
    default:
    case CONSTANTVALUE:
    {
      for(int i=0;i<CONSTANTVALUE;i++)
      {
        qDebug()<<"Text: "<< i;
      }
    }
      break;
  }
}