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. QFormLayout, background colour
Qt 6.11 is out! See what's new in the release blog

QFormLayout, background colour

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 762 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.
  • SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by SPlatten
    #1

    I have finally got a scrolling form layout working properly and scrolling, thanks to @mpergand on this forum:
    f1ac834b-e5aa-41a0-be6f-a5545db66eb3-image.png
    I now want to fill the background between the date/time stamp and the text label also in red, there is no setStyleSheet option on the form, how can I do this?

    Kind Regards,
    Sy

    SPlattenS 1 Reply Last reply
    0
    • SPlattenS SPlatten

      I have finally got a scrolling form layout working properly and scrolling, thanks to @mpergand on this forum:
      f1ac834b-e5aa-41a0-be6f-a5545db66eb3-image.png
      I now want to fill the background between the date/time stamp and the text label also in red, there is no setStyleSheet option on the form, how can I do this?

      SPlattenS Offline
      SPlattenS Offline
      SPlatten
      wrote on last edited by
      #2

      @SPlatten , solved, the layout was contained in a widget:

      mpobjErrors->setStyleSheet("background-colour:#ff0000;");
      

      Kind Regards,
      Sy

      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