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. QTWidgets Stylesheet

QTWidgets Stylesheet

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 202 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.
  • O Offline
    O Offline
    obelisk79
    wrote on last edited by
    #1

    I've created a stylesheet for a QTWidgets application. I have a problem where QToolBarExtension is being clipped and none of the stylesheet controls I've attempted to apply seem able to move it into full view on the toolbar, the closest I've been able to get is by adding undesirable amounts of margin to the toolbar itself.

    What is happening: 74416197-c6c0-4637-aa9a-bef6afe04378-image.png

    What I would like to happen (without the extra margins): fba9994d-e49a-4048-a50d-103c10cd107f-image.png

    I tried just defining margin:

    margin: 0px 5px 0px 5px;
    

    but it only allows the full button to show with a full 5px margin all around.

    Axel SpoerlA 1 Reply Last reply
    0
    • O obelisk79

      I've created a stylesheet for a QTWidgets application. I have a problem where QToolBarExtension is being clipped and none of the stylesheet controls I've attempted to apply seem able to move it into full view on the toolbar, the closest I've been able to get is by adding undesirable amounts of margin to the toolbar itself.

      What is happening: 74416197-c6c0-4637-aa9a-bef6afe04378-image.png

      What I would like to happen (without the extra margins): fba9994d-e49a-4048-a50d-103c10cd107f-image.png

      I tried just defining margin:

      margin: 0px 5px 0px 5px;
      

      but it only allows the full button to show with a full 5px margin all around.

      Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      @obelisk79
      Difficult to make guesses in the dark:
      Which Qt Version & platform is used here?
      How are the icons populated? Anything special about their size?
      Can you show the relevant code?

      Software Engineer
      The Qt Company, Oslo

      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