[Development] ActiveQt Events
neel patel
neel5481 at gmail.com
Tue Jun 27 10:54:03 CEST 2017
Hi All,
As I am using "QAxWidget". I took the "webbrowser" example as reference.
As I am using "QTabWidget" as mainwindow widget and adding "QAxWidget" as
tab widget. Below is the code for reference.
m_tabWidget = new QTabWidget(mainwindow);
m_mainGridLayout = new QGridLayout(m_tabWidget);
m_mainGridLayout->setContentsMargins(0, 0, 0, 0);
m_MainTab = new QWidget(m_tabWidget);
m_tabGridLayout = new QGridLayout(m_MainTab);
m_tabGridLayout->setContentsMargins(0, 0, 0, 0);
m_activeX = new WebAxWidget(m_MainTab);
m_activeX->setControl(QStringLiteral("{8856F961-340A-11D0-A96B-00C04FD705A2}"));
m_activeX->setObjectName(QStringLiteral("WebBrowser"));
m_activeX->setFocusPolicy(Qt::StrongFocus);
m_tabGridLayout->addWidget(m_activeX, 0, 0, 1, 1);
m_tabWidget->addTab(m_MainTab, QString());
mainwindow->setCentralWidget(m_tabWidget);
class WebAxWidget : public QAxWidget
{
public:
WebAxWidget(QWidget* parent = 0, Qt::WindowFlags f = 0)
: QAxWidget(parent, f)
{
}
}
I want to receive events like NewWindow3, NewWindow2, BeforeNavigate2 with
Qt. As such there is no signal available in "QAxWidget". How can we receive
those signals from windows COM interface ?
Let me know reference or pointers so that i can implement and suggest in
above code.
Thanks in Advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20170627/36f65079/attachment.html>
More information about the Development
mailing list