"What's this" doesn't work on mouse click.
-
I need a what's this tips in my application.
code:
@
QPushButton *btn = new QPushButton("Button", 0);
btn->setWindowFlags(Qt::Dialog);
btn->setWhatsThis("QPushButton");
btn->show();
@when i click on "?" button and click on my button nothing happens. At the same time Shift+F1 works properly.
Why "?" doesn't work?
Thanks.P.S. "?" button works in Qt 4.8.1 with mingw, but doesn't in Qt 5.0.1 and 5.0.2 with mingw 4.7 and MSVC 2012 compiliers. Is it Qt 5 bug?
-
Connect a signal (for example: released) from your button to a slot which will handle it. Btw we have a "wiki article about QPushButton":http://qt-project.org/wiki/How_to_Use_QPushButton
-
[quote author="fAg1r" date="1371125586"]handle what? I wanna use "What's this" technology without QWhatsThis class. It should work but it doesn't[/quote]
OK, I see. May be you should report it as a bug at "JIRA":https://bugreports.qt-project.org/. Btw you are using Windows, right? Have you tried the same source on other platforms?