FramelessWindowHint freezes form with QAxWidget
-
Lifetime Qt Championwrote on 4 May 2016, 13:10 last edited by mrjj 5 Apr 2016, 13:11
well my "theory" is that
if QAxWidget is assigned to a parent before FramelessWindowHint
then bug comes. -
well my "theory" is that
if QAxWidget is assigned to a parent before FramelessWindowHint
then bug comes. -
Lifetime Qt Championwrote on 4 May 2016, 13:22 last edited by mrjj 5 Apr 2016, 13:24
Well I assume u tested that ?
Create it after setupUI and FramelessWindowHint does not make it work ?If no, you can try with the showEvent
void maiwinxx::showEvent( QShowEvent* event ) {
QMainwindxx::showEvent( event );// create it here.
}
-
Well I assume u tested that ?
Create it after setupUI and FramelessWindowHint does not make it work ?If no, you can try with the showEvent
void maiwinxx::showEvent( QShowEvent* event ) {
QMainwindxx::showEvent( event );// create it here.
}
wrote on 4 May 2016, 13:34 last edited by@mrjj i create:
void MainWindow::showEvent( QShowEvent* event ) { QAxWidget *Test = new QAxWidget(this); Test->setControl("{8856f961-340a-11d0-a96b-00c04fd705a2}"); Test->dynamicCall("Navigate(const QString&)","http://vk.com/"); Test->show(); }
Not help...
Excuse me, I find it hard to understand you, because I'm Russian ... -
@mrjj i create:
void MainWindow::showEvent( QShowEvent* event ) { QAxWidget *Test = new QAxWidget(this); Test->setControl("{8856f961-340a-11d0-a96b-00c04fd705a2}"); Test->dynamicCall("Navigate(const QString&)","http://vk.com/"); Test->show(); }
Not help...
Excuse me, I find it hard to understand you, because I'm Russian ...@Tikitko
Hi, np. That was what i wanted to test.So if we create it before windows is fully shown we get bug?
But if you create in button_click , it works?
-
@Tikitko
Hi, np. That was what i wanted to test.So if we create it before windows is fully shown we get bug?
But if you create in button_click , it works?
-
@Tikitko
very strange!
I though showEvent would been same as clicked.
Try timer so that we first create after window fully shown.// in constructor
QTimer *timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(nowcreate()));
timer->start(4000);
}void MainWindow::nowcreate() << add this to .h also
{
qDebug() << "nowcreate";
// create here
QAxWidget *Test = new QAxWidget(this);
..
} -
@Tikitko
very strange!
I though showEvent would been same as clicked.
Try timer so that we first create after window fully shown.// in constructor
QTimer *timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(nowcreate()));
timer->start(4000);
}void MainWindow::nowcreate() << add this to .h also
{
qDebug() << "nowcreate";
// create here
QAxWidget *Test = new QAxWidget(this);
..
} -
@Tikitko
ok
so window must be fully shown to make it happy.
Good testing :) -
wrote on 4 May 2016, 13:52 last edited by Tikitko 5 Apr 2016, 13:53
@mrjj Thank you very much for your help! So show window, and then create a widget ... So still the question, it is a bug Qt or something else? The problem can be considered solved only in the bug tracker you need to add ...
-
@mrjj Thank you very much for your help! So show window, and then create a widget ... So still the question, it is a bug Qt or something else? The problem can be considered solved only in the bug tracker you need to add ...
@Tikitko
You are most welcome.
well I think its a bug but not sure.
When bug comes, it seems to me it hangs. That seems like bug.Oh I forgot to ask.
What is {8856f961-340a-11d0-a96b-00c04fd705a2} ? -
@Tikitko
You are most welcome.
well I think its a bug but not sure.
When bug comes, it seems to me it hangs. That seems like bug.Oh I forgot to ask.
What is {8856f961-340a-11d0-a96b-00c04fd705a2} ? -
@Tikitko
You are most welcome.
well I think its a bug but not sure.
When bug comes, it seems to me it hangs. That seems like bug.Oh I forgot to ask.
What is {8856f961-340a-11d0-a96b-00c04fd705a2} ? -
@mrjj Hello, another mament noticed everything was decided widget loading after displaying the window, but if you minimize the window and deploy the freeze button again ...
@Tikitko
Ehh. not sure I read that correctly.You say that if made with button, then bug dont show, but if you minimize and maxi window again, bug comes back?
-
@Tikitko
Ehh. not sure I read that correctly.You say that if made with button, then bug dont show, but if you minimize and maxi window again, bug comes back?
-
Ok
Have you tried with Qt 5.5 ?
Maybe QAxWidget has bug in 5.6 -
wrote on 25 Jan 2017, 17:57 last edited by
Hello!
I faced a similar problem, tried hacks with single QTimer and showEvent: timer was a solution, and showEvent -- wasn't. I also use Win10, but Qt5.5.1. Have you succeeded?