Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Remove gray background from QPdfView
Forum Updated to NodeBB v4.3 + New Features

Remove gray background from QPdfView

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 1 Posters 259 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.
  • S Offline
    S Offline
    somethingvague
    wrote on last edited by
    #1

    Any idea how to hide the gray background behind the PDF in QPdfView? I managed to hide the border with

    pdf_view = QPdfView()
    pdf_view.setStyleSheet('background: #FFF; border: none;')
    

    but the background parameter doesn't seem to do anything. Any ideas? Thanks.

    Background.png

    1 Reply Last reply
    0
    • S Offline
      S Offline
      somethingvague
      wrote on last edited by somethingvague
      #2

      Is it actually a QScrollArea background that I'm seeing? I don't know what makes up a QPdfView.

      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