Qt Forum

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

    Solved QToolButton border style?

    General and Desktop
    2
    3
    777
    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.
    • D
      davecotter last edited by

      how do I make a QToolButton have no border and a transparent background? ie: so only the button picture is drawn, with transparency?

      Mine looks like this:

      0_1567998668650_Screen Shot 2019-09-08 at 8.11.01 PM.png

      and i'd prefer it look like this:

      0_1567998816589_Screen Shot 2019-09-08 at 8.11.01 PM.png

      Any ideas? it should look the same on mac and windows. thanks

      1 Reply Last reply Reply Quote 0
      • D
        davecotter last edited by

        stylesheet: "border: none" worked!!

        wow style sheets. wow. just... wow. that is amazing.

        1 Reply Last reply Reply Quote 1
        • mrjj
          mrjj Lifetime Qt Champion last edited by

          Hi
          You could use a stylesheet with
          border:none
          alt text

          1 Reply Last reply Reply Quote 3
          • D
            davecotter last edited by

            stylesheet: "border: none" worked!!

            wow style sheets. wow. just... wow. that is amazing.

            1 Reply Last reply Reply Quote 1
            • First post
              Last post