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. Stylesheet Quirks?

Stylesheet Quirks?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 118 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.
  • E Offline
    E Offline
    Ewan Green
    wrote on last edited by Ewan Green
    #1
    1. How can I center align QHeaderView's section icons?
      b201bacf-fcab-48fc-8bce-54445329fcec-image.png
      Edit: Looks like for this I have to use a QProxyStyle. Since I'm not using the verticalHeader in this table view, I can just turn it off & add horizontal padding (so the empty vertical header doesn't take up lots of unnecessary space and look bad). Still, it would be nice to see another solution to this, if there is one.

    2. In blue is the style's selection indicator (called "outline:" on some widgets). How can I remove it for QComboBox dropdowns & QListView items? In green is what I want it to look like.
      39c8c004-cac8-4446-90e0-a58383d7bb52-image.png
      The outline is also seen here.
      a4a37789-0619-489b-9cc3-7e3e212a44ee-image.png

    In the red is something I can't figure out, and it also seems to be related to the selection outline, but I can't figure out why it's different from the dropdown's selection. I also want to get rid of that.
    I did this in my stylesheet:

    * {
        outline: none;
    }
    

    But this only fixed it for QTableView/QTableWidget.

    Ewan Green

    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