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. button on button
Forum Updated to NodeBB v4.3 + New Features

button on button

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 1.1k Views 1 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.
  • S Offline
    S Offline
    ShinSat
    wrote on last edited by
    #1

    Hi All,

    A quick question.
    Is it possible to place a QPushButton(or QToolButton) ON QPushButton(or QToolButton)?
    I would like to add delete button (eg. x) on button.

    What I don't want to do is to concatenate two buttons on QH(V)BoxLayOut on a widget.
    I'm looking for a smarter way to achieve that. :)

    Thanks for your help.
    Regards,
    Sat

    jsulmJ 1 Reply Last reply
    0
    • S ShinSat

      Hi All,

      A quick question.
      Is it possible to place a QPushButton(or QToolButton) ON QPushButton(or QToolButton)?
      I would like to add delete button (eg. x) on button.

      What I don't want to do is to concatenate two buttons on QH(V)BoxLayOut on a widget.
      I'm looking for a smarter way to achieve that. :)

      Thanks for your help.
      Regards,
      Sat

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @ShinSat QPushButton is a widget. Did you try to use the first button as parent for the second? Then the second should be on top of first. But I didn't try as it is unusual.

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

      S 1 Reply Last reply
      0
      • jsulmJ jsulm

        @ShinSat QPushButton is a widget. Did you try to use the first button as parent for the second? Then the second should be on top of first. But I didn't try as it is unusual.

        S Offline
        S Offline
        ShinSat
        wrote on last edited by ShinSat
        #3

        @jsulm Thanks for an update. I'll try it.
        I want to achieve something like this.
        0_1517983066861_20160914-16.jpg

        Sat

        J.HilkJ 1 Reply Last reply
        0
        • S ShinSat

          @jsulm Thanks for an update. I'll try it.
          I want to achieve something like this.
          0_1517983066861_20160914-16.jpg

          Sat

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @ShinSat
          yep, that's possible,

          rather easy to do in QML, a bit more footwork in QWidgets, whats your poison?


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          S 1 Reply Last reply
          1
          • J.HilkJ J.Hilk

            @ShinSat
            yep, that's possible,

            rather easy to do in QML, a bit more footwork in QWidgets, whats your poison?

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

            @J.Hilk Thanks for your help!

            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