0

Well I can't make qt recognize axcontainer, I need to use a QAxWidget to display a .doc but I'm struggling with this. Here is my .pro

QT += core gui
QT += axcontainer

QMAKE_CXXFLAGS += -std=c++11

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = Archivador
TEMPLATE = app


SOURCES += main.cpp\
    InterfazArchivador.cpp

HEADERS  += InterfazArchivador.h

FORMS    += InterfazArchivador.ui

and here where I need the QAxWidget

#include "InterfazArchivador.h"
#include "ui_InterfazArchivador.h"
#include <QAxWidget>

InterfazArchivador::InterfazArchivador(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::InterfazArchivador)
{
    ui->setupUi(this);
    QAxWidget* Document= new QAxWidget ("Word", this-> ui-> textEdit);
    Document-> setGeometry (QRect (10, 10, 612, 481));
    Document->setControl ("D:\\Qt\\Project\\SinceThen.doc");
    Document-> show ()
}

I'm using QT version 5.4 and I've tried with CONFIG += axcontainer but the same, did I have to install something

Sandlord
  • 89
  • 3
  • 9

0 Answers0