Sandbox: Difference between revisions
Initial Edit |
WindJunkie (talk | contribs) No edit summary |
||
| (14 intermediate revisions by 4 users not shown) | |||
| Line 17: | Line 17: | ||
Localisation Test: [[Sandbox/de]] | Localisation Test: [[Sandbox/de]] | ||
Testing the wiki after update. | |||
{{Button|This is a button|https://www.qt.io/|4=development}} | |||
==Code Blocks Formatting== | |||
===CPP=== | |||
<code lang="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; | |||
}; | |||
</code> | |||
===CPP-QT=== | |||
<code lang="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; | |||
}; | |||
</code> | |||
===None=== | |||
<code> | |||
#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; | |||
}; | |||
</code> | |||
===Error=== | |||
<code lang="unknown"> | |||
#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; | |||
}; | |||
</code> | |||
This shows the date and time when this page was saved last: | |||
This page was last saved by: '''[[User:{{REVISIONUSER}}|{{REVISIONUSER}}]]''' on: '''{{#time: F j, Y | {{REVISIONTIMESTAMP}} }}''' | |||
{{#ifexpr: {{#time: U}} - {{#time: U | {{REVISIONTIMESTAMP}} }} > 604800 | |||
| <div style="background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; padding: 12px; margin-top: 10px; border-radius: 4px;"> | |||
'''Warning:''' This page has not been updated in over a week. The information may no longer be accurate. | |||
</div> | |||
}} | |||
Testing Wiki after update. Even '''more''' testing with the visual editor. | |||
Latest revision as of 12:42, 18 August 2026
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;
};This shows the date and time when this page was saved last:
This page was last saved by: WindJunkie on: August 18, 2026
Testing Wiki after update. Even more testing with the visual editor.