Sandbox: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 26: Line 26:
if(x==true)
if(x==true)
{
{
  QList< QList< QStringList > > multiStringList;
   callSomeOtherFunction();
   callSomeOtherFunction();
   switch(someVar)
   switch(someVar)
Line 48: Line 49:
if(x==true)
if(x==true)
{
{
  QList< QList< QStringList > > multiStringList;
   callSomeOtherFunction();
   callSomeOtherFunction();
   switch(someVar)
   switch(someVar)
Line 70: Line 72:
if(x==true)
if(x==true)
{
{
  QList< QList< QStringList > > multiStringList;
   callSomeOtherFunction();
   callSomeOtherFunction();
   switch(someVar)
   switch(someVar)
Line 92: Line 95:
if(x==true)
if(x==true)
{
{
  QList< QList< QStringList > > multiStringList;
   callSomeOtherFunction();
   callSomeOtherFunction();
   switch(someVar)
   switch(someVar)

Revision as of 13:37, 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)
{
  QList< QList< QStringList > > multiStringList;
  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)
{
  QList< QList< QStringList > > multiStringList;
  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)
{
  QList< QList< QStringList > > multiStringList;
  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)
{
  QList< QList< QStringList > > multiStringList;
  callSomeOtherFunction();
  switch(someVar)
  {
    default:
    case CONSTANTVALUE:
    {
      for(int i=0;i<CONSTANTVALUE;i++)
      {
        qDebug()<<"Text: "<< i;
      }
    }
      break;
  }
}