[Interest] FW: Need help in generating ActiveQt Libraries...

2015-04-01 Thread Kammar, Mahesh
hi Friedemann,

Thanks for the information,
adding
QT += axcontainer to my .pro solved the issue and I can use the ActiveQt
interfaces for Example: SetControl without any issues.
I was just wondering, if above trick solves the problem, then
why Qt documentation suggests to build ActiveQt static libraries manually?

Thanks for your help...

Warm Regards,
Mahesh Kammar

From: Kammar, Mahesh
Sent: Friday, March 20, 2015 5:01 PM
To: 'interest@qt-project.org'
Subject: Need help in generating ActiveQt Libraries...

Hi All,

I am new to Qt, am trying to use SetControl of QAxWidget class to host some Wpf 
control in Qt which is exported as COM.

I am getting the following linking error, understand that I need to provide 
ActiveQt library, but am not able to generate one I do not find QAxBase.lib 
file or any other ActiveQt libraries.

I really don't know how to change this QTDIR path to generate ActiveQt 
libraries, please help. It is not clear to me what to do when I refer it in
http://doc.qt.io/qt-5/activeqt-index.html#activeqt-framework


mainwindow.obj:-1: error: LNK2019: unresolved external symbol "public: bool 
__thiscall QAxBase::setControl(class QString const &)" 
(?setControl@QAxBase@@QAE_NABVQString@@@Z) referenced in function "private: 
void __thiscall MainWindow::on_pushButton_clicked(void)" 
(?on_pushButton_clicked@MainWindow@@AAEXXZ)
mainwindow.obj:-1: error: LNK2019: unresolved external symbol "public: 
__thiscall QAxWidget::QAxWidget(struct IUnknown *,class QWidget *,class 
QFlags)" 
(??0QAxWidget@@QAE@PAUIUnknown@@PAVQWidget@@V?$QFlags@W4WindowType@Qt@Z) 
referenced in function "private: void __thiscall 
MainWindow::on_pushButton_clicked(void)" 
(?on_pushButton_clicked@MainWindow@@AAEXXZ)
debug\QtWinApp32bit.exe:-1: error: LNK1120: 2 unresolved externals


Here is my simple code:

QAxWidget *axObj = new QAxWidget(0,0);
axObj->setControl(QString::fromUtf8("{BF71CE63-0A2E-419D-B7DE-41BE2CE6}"));



Thanks in Advance

Warm Regards,
Mahesh Kammar



The information contained in this message may be confidential and legally 
protected under applicable law. The message is intended solely for the 
addressee(s). If you are not the intended recipient, you are hereby notified 
that any use, forwarding, dissemination, or reproduction of this message is 
strictly prohibited and may be unlawful. If you are not the intended recipient, 
please contact the sender by return e-mail and destroy all copies of the 
original message.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Need help in generating ActiveQt Libraries...

2015-03-23 Thread Kammar, Mahesh
Hi All,

I am new to Qt, am trying to use SetControl of QAxWidget class to host some Wpf 
control in Qt which is exported as COM.

I am getting the following linking error, understand that I need to provide 
ActiveQt library, but am not able to generate one I do not find QAxBase.lib 
file or any other ActiveQt libraries.

I really don't know how to change this QTDIR path to generate ActiveQt 
libraries, please help. It is not clear to me what to do when I refer it in
http://doc.qt.io/qt-5/activeqt-index.html#activeqt-framework


mainwindow.obj:-1: error: LNK2019: unresolved external symbol "public: bool 
__thiscall QAxBase::setControl(class QString const &)" 
(?setControl@QAxBase@@QAE_NABVQString@@@Z) referenced in function "private: 
void __thiscall MainWindow::on_pushButton_clicked(void)" 
(?on_pushButton_clicked@MainWindow@@AAEXXZ)
mainwindow.obj:-1: error: LNK2019: unresolved external symbol "public: 
__thiscall QAxWidget::QAxWidget(struct IUnknown *,class QWidget *,class 
QFlags)" 
(??0QAxWidget@@QAE@PAUIUnknown@@PAVQWidget@@V?$QFlags@W4WindowType@Qt@Z) 
referenced in function "private: void __thiscall 
MainWindow::on_pushButton_clicked(void)" 
(?on_pushButton_clicked@MainWindow@@AAEXXZ)
debug\QtWinApp32bit.exe:-1: error: LNK1120: 2 unresolved externals


Here is my simple code:

QAxWidget *axObj = new QAxWidget(0,0);
axObj->setControl(QString::fromUtf8("{BF71CE63-0A2E-419D-B7DE-41BE2CE6}"));



Thanks in Advance

Warm Regards,
Mahesh Kammar



The information contained in this message may be confidential and legally 
protected under applicable law. The message is intended solely for the 
addressee(s). If you are not the intended recipient, you are hereby notified 
that any use, forwarding, dissemination, or reproduction of this message is 
strictly prohibited and may be unlawful. If you are not the intended recipient, 
please contact the sender by return e-mail and destroy all copies of the 
original message.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest