-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
33 lines (27 loc) · 930 Bytes
/
Copy pathmain.cpp
File metadata and controls
33 lines (27 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "login.h"
#include <QApplication>
#include <conexion.h>
#include <mainwindow.h>
#include <cargador.h>
int main(int argc, char *argv[])
{
QApplication a(argc, argv); // Recibe los argumentos de la funcion main
conexion *conn= new conexion;// Puntero a objeto
if( !conn->ConexionExitosa()){ //SI no fue exitosa la conexion
return 1;
}
//reg_paisajes regp; regp.lectura();
/* imagenes_model *imgtest= new imagenes_model;
imgtest->setModoBuscar('P'); imgtest->setFormato("JPG");
imgtest->setId("12");
QPixmap pixx= imgtest->imagen_paisaje();*/
/* MainWindow window;
window.loadImage();// window.loadImage(QStringLiteral(":/mapamundi.jpg"));
window.show();
*/
Cargador cargador; cargador.show();
//login j;// instancia de formulario jugador
//j.show();// Hacer visible el formulario
//bandera b; b.reg_banderas();
return a.exec(); //ejecutar la aplicacion
}