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. How to continue gradient to other Widget?
Forum Updated to NodeBB v4.3 + New Features

How to continue gradient to other Widget?

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

    Hello,

    I have 2 widgets: QScrollArea and a QWidget in this area.

    In this 2 widgets I set the same background ( gradient - for example green to yellow ). But I get something like this:

    ex1.png

    ( the red circle is QScrollArea, blue circle is QWidget; QScrollArea is bigger than QWidget )

    I would like to get:

    ex2.png

    So I would like to continue gradient from left side QScrollArea to right side of QWidget.

    Is it possible?

    EDIT I set the background using setStyleSheet

    raven-worxR 1 Reply Last reply
    0
    • T TomNow99

      Hello,

      I have 2 widgets: QScrollArea and a QWidget in this area.

      In this 2 widgets I set the same background ( gradient - for example green to yellow ). But I get something like this:

      ex1.png

      ( the red circle is QScrollArea, blue circle is QWidget; QScrollArea is bigger than QWidget )

      I would like to get:

      ex2.png

      So I would like to continue gradient from left side QScrollArea to right side of QWidget.

      Is it possible?

      EDIT I set the background using setStyleSheet

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @TomNow99
      thinking simpler, you want the gradient on the very most background widget and the widgets on top with transparent background?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      2
      • T Offline
        T Offline
        TomNow99
        wrote on last edited by
        #3

        @raven-worx Yeah, and this was the trick - set transparent background. Thank you!

        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