Results 1 to 5 of 5

Thread: System border color

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2025
    Posts
    1
    Qt products
    Platforms
    Unix/X11 Android

    Default Re: System border color

    Quote Originally Posted by spirit View Post
    Did you check how a button is rendered in QStyle?
    I guess you need QPalette::shadow.
    See, QWindowsStyle
    Does this differ per QStyle, like https://discuss.kde.org/t/what-colou...julianlockhart alludes to? I ask because
    Qt Code:
    1. PyQt6.QtGui.QPen().setColor(PyQt6.QtGui.QColor(PyQt6.QtWidgets.QApplication.palette().color(PyQt6.QtGui.QPalette.ColorRole.Accent)))
    To copy to clipboard, switch view to plain text mode 
    gives me #000000 with
    Qt Code:
    1. plasma-breeze-qt6-6.3.5-1.fc42
    To copy to clipboard, switch view to plain text mode 
    .


    ** Moderator note: Use "CODE" not "ICODE" when enclosing code fragments. **
    Last edited by d_stranz; Yesterday at 16:56. Reason: missing [code] tags
    When using a forum, remember to tag the person you are responding to, in case they are not subscribed to the thread.

Similar Threads

  1. Replies: 2
    Last Post: 19th July 2013, 09:34
  2. Replies: 4
    Last Post: 8th September 2011, 08:22
  3. Replies: 1
    Last Post: 28th July 2010, 17:37
  4. How to set the BORDER COLOR of QDialog?
    By ashukla in forum Qt Programming
    Replies: 6
    Last Post: 13th November 2007, 16:09
  5. Setting QGraphicsItem setSelected border color
    By forrestfsu in forum Qt Programming
    Replies: 1
    Last Post: 4th November 2006, 08:22

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.