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
Forum Updated to NodeBB v4.3 + New Features

Qt Qframe Stylesheet

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 270 Views 1 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.
  • I Offline
    I Offline
    IknowQT
    wrote on 8 Jul 2021, 23:28 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?

    C 1 Reply Last reply 9 Jul 2021, 04:02
    0
    • I IknowQT
      8 Jul 2021, 23:28

      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?

      C Offline
      C Offline
      CP71
      wrote on 9 Jul 2021, 04:02 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

      1/2

      8 Jul 2021, 23:28

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved