PDA

View Full Version : QMenu display with delay. Or not display else



stepchik
22nd March 2012, 09:35
Hello! I have a strange QMenu behavior. It's render so slow or render when i pressed twice or not render.
I have no such bug on machine(XP) where i compilling and debug programm. Only when i install program to another machine. QT 4.7+ Visual Studio 2008

QMenu* m = mname ? qFindChild<QMenu*>(wndWidget(),QtClient::setUtf8(mname)) : 0;
if (m){
// Menu try to fix bug
m->setContextMenuPolicy(Qt::CustomContextMenu);
m->popup(mapToGlobal(event->globalPos()));
//m->exec(event->globalPos())
}

dragonkame
10th September 2013, 15:06
I actually have the same problem, did you solve it ?