QScript is the language for Google's QC Playground quantum computer simulator. It has support for multiple quantum gates and classical programming constructs, and runs entirely in-browser (requires WebGL).
Questions tagged [qscript]
7 questions
7
votes
2 answers
Disable native Next button in Qt installer framework
I have to disable standard next button, on my custom page via installscript.qs file.
I can disable my own button (that I created in .ui file) via .qs script like this: widget.myButton.setEnabled(false);
This man shows that native buttons represented…

Grigory
- 119
- 1
- 10
5
votes
1 answer
Can the difference between qubit and bit be explained with a simple code example?
The only places I know that you can play with quantum computing are the google quantum playground and the ibm's quantum experience. While the first one uses qscript and the second qasm languages (which are easy to learn) their usage still do not…

npocmaka
- 55,367
- 18
- 148
- 187
1
vote
0 answers
Exposing Qt C++ QObject to Python
I have a software component (Qt/C++ GUI-less library) that performs some data-intensive manipulation.
What is the best way to expose it's functionality as a Python native extension? Wrapping it by hand in Boost::Python? Anything QObject/QMetaObject…

qdot
- 6,195
- 5
- 44
- 95
0
votes
0 answers
How to capture admin permission in .qs
I ask the system to call the maintenancetool and it asks for admin permission, how to know if the user allowed it or not in a .qs?
0
votes
1 answer
How to return QList from QObject-based class method for use in Qt Script
I am developing an application in Qt that uses the QScript module. The class I am working on is derived from QObject so that it will be "scriptable". One of the methods should return a list of double values (QList). When I create a global script…

lopippo
- 43
- 5
0
votes
1 answer
How to use a QVector inside a QScriptEngine
First: Qt 4.7
I would like to access a QVector inside a script, which is the return value of an object member function. I.e. I've passed the object to the script, and it has property set and get functions which have QVector as…

mike
- 1,192
- 9
- 32
0
votes
1 answer
Qt: How are arrays or dictionaries passed from qscriptengine?
I've created a QScriptEngine and exposed an object's function I can call from js script.
engine->globalObject().setProperty("obj", myObj);
myObj is a QObject that has a function like...
void MyObject::doSomething(int w, int h) {
...
}
and in…

voodoogiant
- 2,118
- 6
- 29
- 49