Sandbox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 18: | Line 18: | ||
Localisation Test: [[Sandbox/de]] | Localisation Test: [[Sandbox/de]] | ||
Testing the wiki after update. | |||
Code Blocks Formatting | ==Code Blocks Formatting== | ||
==CPP== | ===CPP=== | ||
<code lang="cpp"> | <code lang="cpp"> | ||
#include <test.h> | #include <test.h> | ||
Line 26: | Line 27: | ||
if(x==true) | if(x==true) | ||
{ | { | ||
QList< QList< QStringList > > multiStringList; | |||
callSomeOtherFunction(); | callSomeOtherFunction(); | ||
switch(someVar) | switch(someVar) | ||
Line 40: | Line 42: | ||
} | } | ||
} | } | ||
class Widget { | |||
... | |||
private: | |||
Rect m_geometry; | |||
String m_stylesheet; // NEW in WidgetLib 1.1 | |||
}; | |||
class Label : public Widget { | |||
public: | |||
... | |||
String text() const { return m_text; } | |||
private: | |||
String m_text; | |||
}; | |||
</code> | </code> | ||
==CPP-QT== | ===CPP-QT=== | ||
<code lang="cpp-qt"> | <code lang="cpp-qt"> | ||
#include <test.h> | #include <test.h> | ||
Line 48: | Line 66: | ||
if(x==true) | if(x==true) | ||
{ | { | ||
QList< QList< QStringList > > multiStringList; | |||
callSomeOtherFunction(); | callSomeOtherFunction(); | ||
switch(someVar) | switch(someVar) | ||
Line 62: | Line 81: | ||
} | } | ||
} | } | ||
class Widget { | |||
... | |||
private: | |||
Rect m_geometry; | |||
String m_stylesheet; // NEW in WidgetLib 1.1 | |||
}; | |||
class Label : public Widget { | |||
public: | |||
... | |||
String text() const { return m_text; } | |||
private: | |||
String m_text; | |||
}; | |||
</code> | </code> | ||
==None== | |||
===None=== | |||
<code> | <code> | ||
#include <test.h> | #include <test.h> | ||
Line 69: | Line 105: | ||
if(x==true) | if(x==true) | ||
{ | { | ||
QList< QList< QStringList > > multiStringList; | |||
callSomeOtherFunction(); | callSomeOtherFunction(); | ||
switch(someVar) | switch(someVar) | ||
Line 83: | Line 120: | ||
} | } | ||
} | } | ||
class Widget { | |||
... | |||
private: | |||
Rect m_geometry; | |||
String m_stylesheet; // NEW in WidgetLib 1.1 | |||
}; | |||
class Label : public Widget { | |||
public: | |||
... | |||
String text() const { return m_text; } | |||
private: | |||
String m_text; | |||
}; | |||
</code> | </code> | ||
== | ===Error=== | ||
<code lang="unknown"> | <code lang="unknown"> | ||
#include <test.h> | #include <test.h> | ||
Line 91: | Line 144: | ||
if(x==true) | if(x==true) | ||
{ | { | ||
QList< QList< QStringList > > multiStringList; | |||
callSomeOtherFunction(); | callSomeOtherFunction(); | ||
switch(someVar) | switch(someVar) | ||
Line 105: | Line 159: | ||
} | } | ||
} | } | ||
class Widget { | |||
... | |||
private: | |||
Rect m_geometry; | |||
String m_stylesheet; // NEW in WidgetLib 1.1 | |||
}; | |||
class Label : public Widget { | |||
public: | |||
... | |||
String text() const { return m_text; } | |||
private: | |||
String m_text; | |||
}; | |||
</code> | </code> | ||
Testing Wiki after update. Even '''more''' testing with the visual editor. |
Latest revision as of 09:01, 8 October 2018
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
Testing the wiki after update.
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;
}
}
class Widget {
...
private:
Rect m_geometry;
String m_stylesheet; // NEW in WidgetLib 1.1
};
class Label : public Widget {
public:
...
String text() const { return m_text; }
private:
String m_text;
};
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;
}
}
class Widget {
...
private:
Rect m_geometry;
String m_stylesheet; // NEW in WidgetLib 1.1
};
class Label : public Widget {
public:
...
String text() const { return m_text; }
private:
String m_text;
};
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;
}
}
class Widget {
...
private:
Rect m_geometry;
String m_stylesheet; // NEW in WidgetLib 1.1
};
class Label : public Widget {
public:
...
String text() const { return m_text; }
private:
String m_text;
};
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;
}
}
class Widget {
...
private:
Rect m_geometry;
String m_stylesheet; // NEW in WidgetLib 1.1
};
class Label : public Widget {
public:
...
String text() const { return m_text; }
private:
String m_text;
};
Testing Wiki after update. Even more testing with the visual editor.