Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Independent Developers
  4. QToolButton Double click Implementation
Forum Updated to NodeBB v4.3 + New Features

QToolButton Double click Implementation

Scheduled Pinned Locked Moved Unsolved Independent Developers
6 Posts 3 Posters 1.5k 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.
  • A Offline
    A Offline
    Anbarasan
    wrote on 27 Feb 2020, 05:39 last edited by
    #1

    Hi,
    I would like to create doubleclick event for QToolbutton
    I am completely new to QT
    do you have any sample code IN the existing QToolbutton
    single click is identified by QAction QToolbuttons are dynamic in my case

    J 1 Reply Last reply 27 Feb 2020, 05:42
    0
    • A Anbarasan
      27 Feb 2020, 05:39

      Hi,
      I would like to create doubleclick event for QToolbutton
      I am completely new to QT
      do you have any sample code IN the existing QToolbutton
      single click is identified by QAction QToolbuttons are dynamic in my case

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 27 Feb 2020, 05:42 last edited by
      #2

      @Anbarasan http://zetcode.com/gui/qt5/eventsandsignals/
      https://doc.qt.io/qt-5/eventsandfilters.html
      Qt examples are here: https://doc.qt.io/qt-5/qtexamplesandtutorials.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • A Offline
        A Offline
        Anbarasan
        wrote on 27 Feb 2020, 06:17 last edited by Anbarasan
        #3

        Existing implementation is like QToolbuttons are dynamic and connected to QAction.
        From QAction we are using sender() method to indentifying which Button was selected and used. so in that case will the above implementation works ?

        J 1 Reply Last reply 27 Feb 2020, 06:22
        0
        • A Anbarasan
          27 Feb 2020, 06:17

          Existing implementation is like QToolbuttons are dynamic and connected to QAction.
          From QAction we are using sender() method to indentifying which Button was selected and used. so in that case will the above implementation works ?

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 27 Feb 2020, 06:22 last edited by
          #4

          @Anbarasan said in QToolButton Double click Implementation:

          so in that case will the above implementation works ?

          Why should it not work?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Anbarasan
            wrote on 27 Feb 2020, 06:38 last edited by
            #5

            Is there a way to handle double click in QAction ?

            QAction has triggered only... I want to use double click for that

            1 Reply Last reply
            0
            • C Online
              C Online
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on 27 Feb 2020, 18:47 last edited by
              #6

              @Anbarasan said in QToolButton Double click Implementation:

              I want to use double click for that

              You have to write it by your own.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              1 Reply Last reply
              0

              6/6

              27 Feb 2020, 18:47

              • Login

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