Home > other >  Using activeqt developed ActiveX control program can't normally closed
Using activeqt developed ActiveX control program can't normally closed

Time:02-23

I use activeqt from a simple Qt widgets ActiveX control is derived, using the regsvr32 after registration, the inside himself wrote a small MFC program is normally show that this control, at the same time, the use of the above controls MFC program exit is also able to properly, but I use this control to my another Qt program, function of this control is normal, the problem is that this program will not be able to normal click the close button to close the title bar, is turned off on the run in the background, you know what causes it? Development environment: Qt 5.1.1, Windows 7, Visual Studio 2010

CodePudding user response:

O people, thank you!

CodePudding user response:

QObject: : connect (& amp; App, SIGNAL (lastWindowClosed ()), & amp; App, SLOT (the quit ())); Combined with the good, I also use qt sealing ActiveX or you put this control as a child window of the widget can solve this problem

CodePudding user response:

QObject: : connect (& amp; App, SIGNAL (lastWindowClosed ()), & amp; App, SLOT (the quit ())); - this really effective or you take the controls as a widget child window can also solve this problem - the tried, is invalid

CodePudding user response:

Problem solved?
  • Related