Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

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

    General and Desktop
    2
    5
    1928
    Loading More Posts
    • 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
      fAg1r last edited by

      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 Reply Quote 0
      • L
        leon.anavi last edited by

        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 Reply Quote 0
        • F
          fAg1r last edited by

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

          1 Reply Last reply Reply Quote 0
          • L
            leon.anavi last edited by

            [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 Reply Quote 0
            • F
              fAg1r last edited by

              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 Reply Quote 0
              • First post
                Last post