Sohag Developer PostgreSQL Database Applications

Build Powerful Robust Database Applications

Qt Project generated files

Wed, 07/05/2017 - 00:33 - amr

In this topic we will explore the generated Qt project files.
Sohag Developer generates all the required files to create complete Qt project some of them are dependant on the selected template and some are not.
Here we will explore the independent files that they will have the same data across all templates.

1- Qt Projrct FILE (.pro File)
This file contain all the information required by qmake to build your application, library, or plugin.

2- Main Function FILE (main.cpp File)

The generated Qt project file .pro is

Qt Projrct FILE (.pro File)

# Project created by Sohag Developer
# Sohag Developer Project
# This Project Aims To Create A PostgreSQL Tools
# To Help Using PostgreSQL Database
# At That Stage The Sohag Developer Is Generating Qt/C++ Files
# But Sohag Developer's Goal Is To Create A Compelete IDE For PostgreSQL
# Also The Project Will Be Extended To Include Other Databases As Long AS Possible

QT       += core gui sql

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = sohag

SOURCES += main.cpp\
HEADERS  += employees.h

FORMS    += employees.ui

The generated Main Function file main.cpp contains the following code

Main Function main.cpp

#include "employees.h"

int main(int argc, char *argv[])
    QApplication sohag(argc, argv);
    Employees sohagDev;;

    return sohag.exec();

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.