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. Customization of the buttons

Customization of the buttons

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 5 Posters 595 Views 4 Watching
  • 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.
  • M Offline
    M Offline
    Mikeeeeee
    wrote on last edited by
    #1

    Hi!
    Can I put multiple widgets in a button?
    Or is it possible to make a widget with a lot of widgets and attach a clicked signal to it?

    Pablo J. RoginaP 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What do you mean by putting several widgets in a button ?

      For your second question, what clicked signal ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • M Mikeeeeee

        Hi!
        Can I put multiple widgets in a button?
        Or is it possible to make a widget with a lot of widgets and attach a clicked signal to it?

        Pablo J. RoginaP Offline
        Pablo J. RoginaP Offline
        Pablo J. Rogina
        wrote on last edited by
        #3

        @Mikeeeeee said in Customization of the buttons:

        Or is it possible to make a widget with a lot of widgets

        Are you looking for QGroupBox widget for instance?

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        2
        • M Offline
          M Offline
          Mikeeeeee
          wrote on last edited by
          #4

          I need an analog of MouseArea from QML. I need a clickable area with several progressbars and labels.

          S 1 Reply Last reply
          0
          • M Mikeeeeee

            I need an analog of MouseArea from QML. I need a clickable area with several progressbars and labels.

            S Offline
            S Offline
            shashikumar
            wrote on last edited by
            #5

            @Mikeeeeee can you explain clearly , what is requirement . Do you trying code using QML button ?

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Mikeeeeee
              wrote on last edited by Mikeeeeee
              #6

              No. I won't used anything yet. I need one big button where I can put a lot of labels and progress bars.

              mrjjM 1 Reply Last reply
              0
              • M Mikeeeeee

                No. I won't used anything yet. I need one big button where I can put a lot of labels and progress bars.

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Mikeeeeee
                Hi
                You can use an event filter on all Widgets you put into say a QFrame.
                Then no matter where you click you can catch it.

                You could also sublclass QFrame and add mousePress and emit signal.
                If none of the other widget you put in response to mouseclick they will go
                to parent.

                1 Reply Last reply
                2

                • Login

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