QtScript

Comments Off on QtScript

To write “Hello World!” in the QtScript programming language, you can follow these steps using either the interactive console or a script file. I’ll show both ways below.

  1. Open your Qt Script Console by navigating to the Qt Creator menu (if it’s installed) and selecting Tools > Script Editor > Interactive.
  2. Write “Hello World!” in the console. Here’s how:
    javascript
    print("Hello World!");
  3. Press Enter to execute the code, and you should see the result printed out in the console.

Alternatively, if you want to create a script file (for example, ‘helloWorldScript.js’):
1. Create a new text file with the .js extension and save it in an appropriate location.
2. Add this code to the file:
javascript
print("Hello World!");

3. Save and close the script file.
4. To run the script, open a terminal or command prompt and navigate to the folder containing your script file. Run the script using the qtc -script option followed by the path to your script:
shell
qtc -script helloWorldScript.js

5. You will see “Hello World!” printed out in the console.

Prompt
young woman, beautiful face, standing, great body, gorgeous figure, long legs, pretty eyes, long hair, learns QtScript programming language, beautiful background, magnificent scenery, Karl Bryullov style, HD, sharp focus, stunningly beautiful, hyper-detailed, detailed skin texture, (blush:0,2), (goosebumps:0,3), subsurface scattering

Negative prompt
, extra eyes, bad eyes, ugly eyes, imperfect eyes, deformed pupils, deformed iris, cross-eyed, poorly drawn face, bad face, fused face, ugly face, worst face, unrealistic skin texture, out of frame, poorly drawn hands, cloned face, double face, blurry, bad quality

Text model: neural-chat

Image model: Shuttle3Diffusion