![]() Its only purpose is to print a line in a window with the title ' My first Qt program'. In the blank file, just copy the following code. Inside the directory that we just created, we are going to execute the following command to create a. In the terminal (Ctrl + Alt + T) we write: We will start by creating a working directory for host our Qt project. The steps to follow are: Create a project directory ![]() Writing and compiling Qt programs from the Ubuntu command line is pretty straightforward. Write and compile your first Qt program from the terminalĮverything that is going to be read below can also be done from a graphical environment, but in this case we will do it via the terminal. qtbase5-examples contains the Qt Base 5 examples and qtbase5-doc-html Contains the HTML documentation for the Qt 5 base libraries. The package qt5-doc Contains the Qt 5 API documentation. This can be done by typing in the terminal: sudo apt-get install qt5-doc qtbase5-examples qtbase5-doc-html To implement more complex projects, you will have to install Qt documentation and samples. If you want Qt 5 to be used as the default version of Qt Creator, run the following command: If you don't have the Qt Creator package installed that contains the UI and command line tools for creating and running the Qt project, write in the same terminal: Sudo apt update sudo apt install build-essential To proceed with the installation, we open a terminal (Ctrl + Alt + T) and first we will update the available software and then install the package by typing: This is a package that will allow users to install and use c ++ tools in Ubuntu. ![]() To start we will install Build Essential, if you don't already have it installed. Qt 5.9.1, (with Qt Creator 4.3.1 included) installation on Ubuntu ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |