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

QScrollArea problem with stylesheet

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 991 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.
  • C Offline
    C Offline
    ChanchoCiego
    wrote on last edited by
    #1

    Hello, good day,

    I'm struggling with the ScrollArea and going very badly,

    I have a QScrollArea, and inside a QFrame, I would like to put a fixed background image to the scrollarea but I can't,

    the style of the QFrame is this:
    @
    QFrame#frmCentral
    {
    background-color: rgba (255, 255, 255, 0); / * background-color: transparent; Neither walked * /
    border-top: 0px solid rgb (255, 255, 255);
    border-bottom: 0px solid rgb(255, 255, 255);
    }
    @

    and the QScrollArea has this style:

    @
    QScrollArea
    {
    background-color: white;
    border: transparent rgb(255, 255, 255) 0px;
    background-image: url(:/imagenes/fondo_central.png);
    background-attachment: fixed;
    }
    @

    in the mainWindow.cpp I have this:
    @
    ui->frmCentral->setAttribute(Qt::WA_TranslucentBackground);
    @

    but the background is not visible, what am I doing wrong?

    Thanks a lot

    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