Hello all.
I'm trying to implement find panel like another mac os x software has.
It should look like:
Attachment 7748
And active it looks like:
Attachment 7749
To do it i used following style sheet:
Qt Code:
  1. font-size: 11px;
  2. border-image: url(:/Resources/findbuttonborderimage.png) 8px 8px 8px 8px stretch stretch;
  3. border-width: 8px 8px 8px 8px;
  4. padding-top: -5px;
  5. padding-bottom: -3px;
  6. }
  7. border-image: url(:/Resources/findbuttonborderimagepressed.png) 8px 8px 8px 8px stretch stretch;
  8. }
  9. QComboBox::drop-down {
  10. subcontrol-origin: padding;
  11. subcontrol-position: center right;
  12. width: 10px;
  13. height: 10px;
  14. border: none;
  15. background: none;
  16. }
  17. QComboBox::down-arrow {
  18. image: url(:/Resources/findselectoricon.png);
  19. }
  20. {
  21. background: none;
  22. }
To copy to clipboard, switch view to plain text mode 
Closed my combo looks fine:
Attachment 7750
But open is wrong:
Attachment 7751

Then i changed style sheet a little:
Qt Code:
  1. {
  2. background: none;
  3. padding: 10px 10px 10px 10px;
  4. }
To copy to clipboard, switch view to plain text mode 
But it didn't help:
Attachment 7752

As you can to see on last image there is few problems:
1. Extra background under items
2. Rounding rects are hidden behind padding. Increasing padding draw correct rounding rects.
3. Items being selected only in extra background area

Could anybody help with it?