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. Changing font color of QStandardItem?
Forum Updated to NodeBB v4.3 + New Features

Changing font color of QStandardItem?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 6.2k Views 2 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.
  • S Offline
    S Offline
    ShinSat
    wrote on last edited by
    #1

    Hi,

    A quick question.
    How can I change the font color (or background color) of QStandardItem in pyQt5?

    Thanks,
    Sat

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! See QStandardItem Class.

      • void QStandardItem::setBackground(const QBrush &brush) for the background color
      • void QStandardItem::setForeground(const QBrush &brush) for the foreground (=text) color
      S 1 Reply Last reply
      4
      • ? A Former User

        Hi! See QStandardItem Class.

        • void QStandardItem::setBackground(const QBrush &brush) for the background color
        • void QStandardItem::setForeground(const QBrush &brush) for the foreground (=text) color
        S Offline
        S Offline
        ShinSat
        wrote on last edited by
        #3

        @Wieland Ooops,, yes, I'll check that. Thanks for your help!

        Sat

        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