Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. "What's this" doesn't work on mouse click.
QtWS25 Last Chance

"What's this" doesn't work on mouse click.

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 2.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fAg1r
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      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

      http://anavi.org/

      1 Reply Last reply
      0
      • F Offline
        F Offline
        fAg1r
        wrote on last edited by
        #3

        handle what? I wanna use "What's this" technology without QWhatsThis class. It should work but it doesn't

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leon.anavi
          wrote on last edited by
          #4

          [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?

          http://anavi.org/

          1 Reply Last reply
          0
          • F Offline
            F Offline
            fAg1r
            wrote on last edited by
            #5

            I haven't, coz I just don't know how to use Linux, etc. I'd like someone to test "What's this" feature on other platforms with Qt 5. Yes I use Windows 7 64-bit

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved