Sandbox: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(codeblock tests)
No edit summary
Line 42: Line 42:
</code>
</code>


==CPP-QT==
<code lang="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;
  }
}
</code>
==None==
==None==
<code>
<code>

Revision as of 13:33, 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;
  }
}

Unknown

#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;
  }
}