BUG a, who is going to help to the official report.

Create a new GUI project, adding CONFIG + = qaxcontainer in the.Pro file
Put a QAxWidget control to the interface
In the window the constructor to write
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
ui->axWidget->setControl("{8856f961-340a-11d0-a96b-00c04fd705a2}");
}


Then the change in main.h, realize the no frame and support the minimize button

int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.setWindowFlags(Qt::FramelessWindowHint | Qt::WindowMinimizeButtonHint | Qt::WindowSystemMenuHint);
w.show();

return a.exec();
}


Start the program, click programs on the taskbar, the program will minimize to tray
Click again, the interface is restored to its original position, but UI no refresh yes or no!!!

Started by Linda at December 16, 2016 - 1:02 AM

Qt is the official version 5.1.1

Posted by Linda at December 26, 2016 - 1:40 AM

If no Qt:: FramelessWindowHint is not a problem
I think it might be Qt internal processing window without frame of ActiveX controls have compatibility problems

Posted by Linda at January 05, 2017 - 2:26 AM

Yesterday the one afternoon, find the reason and solve, posted solutions, but still hope the official Qt can solve the problem from the inside

Posted by Linda at January 07, 2017 - 3:18 AM