How To Display Text On The Screen

Table of contents:

How To Display Text On The Screen
How To Display Text On The Screen

Video: How To Display Text On The Screen

Video: How To Display Text On The Screen
Video: { How to DISPLAY TEXT on screen in Unity } - Text Canvas Component 2024, November
Anonim

The simplest program is a text display program. Basically, most students get acquainted with programming languages from it. Writing it yourself is quite simple, the main thing is to understand the compiler interface and the basics of the programming language.

How to display text on the screen
How to display text on the screen

Necessary

Qt-SDK

Instructions

Step 1

Download any compiler program to your computer. It is best to use well-known programs, such as, for example, Nokia Qt SDK, since it has the most intuitive interface and will be more convenient for novice users. Download it from the official site and in no case confuse it with Qt-Creator. Install the compiler on your computer and run it.

Step 2

Choose to create a project called Hello World. To do this, click Create Project in the lower right corner and select the type of application in the new window that appears. In programming languages, choose C ++. In the window that appears next, enter the name helloworld. Next, select a device if the program is not being developed for use on a personal computer.

Step 3

Click the Next button twice, select the desired configuration in the last window and click OK. You will have a working field, open the editor, select main on the left side of the screen, enter the words QLabel label (Hello Everyboby) under the #endif line. You can use any phrase you like. Put / at the end of the line.

Step 4

On the next line, write label.show () # and from the top menu, select Run using the Run command. In the third line from the top, write Include QLabel, as written in the top two paragraphs. In the dialog box that appears, select the Save All item.

Step 5

If you wrote a program for displaying text on a mobile device, open the simulator in the tools on the left and check the written program for operability. You can also choose any other simulator in the list below, in addition to the one you chose when creating. Next, compile using the button in the lower left corner, wait for the computer to complete all the necessary steps.

Recommended: