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. Qt Qframe Stylesheet
QtWS25 Last Chance

Qt Qframe Stylesheet

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

    After changing the background color to red on a qframe, I want to give different styles to the controls in the frame, but the styles applied within the qframe are applied to all the controls in the frame. Is there a way to apply styles to frames and apply different styles to each control?

    CP71C 1 Reply Last reply
    0
    • I IknowQT

      After changing the background color to red on a qframe, I want to give different styles to the controls in the frame, but the styles applied within the qframe are applied to all the controls in the frame. Is there a way to apply styles to frames and apply different styles to each control?

      CP71C Offline
      CP71C Offline
      CP71
      wrote on last edited by
      #2

      @IknowQT
      Hi,
      it depends on how you write the StyleSheet.
      Try to read https://forum.qt.io/topic/127918/how-to-apply-a-button-stylesheet/3 and check if you are in the same situation

      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