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. Can I see QScrollArea content outside the QScrollArea frame on the background of other widgets?

Can I see QScrollArea content outside the QScrollArea frame on the background of other widgets?

Scheduled Pinned Locked Moved Unsolved Qt for Python
pythonpyside
1 Posts 1 Posters 188 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.
  • A Offline
    A Offline
    Alex Shin
    wrote on last edited by Alex Shin
    #1

    I have messenger-like QMainWindow class with 4 widgets on QVBoxLayout. First,second and fourth - have transparent backgrounds. Third widget is QScrollArea with dialog. And it works well, but I want to see dialog continuation over this QScrollArea, to see dialog on the background of other widgets (1,2,4) (on top and bottom).

    I'm asking about other ideas how I could see QScrollArea content on the background of other widgets. Maybe someone encounter with it.

    I tried to solve this and nothing works for me besides one variant: is to bring other widgets to the front using .raise_() function and QScrollArea remains the same (and fills all window background). But other problems appear:

    • Need to add padding at the top and bottom of dialog (because I can't scroll to first and last messages to see it not only on other widgets background). Also every time change these paddings if 1,2,4 widgets change their height.
    • I need to see scrolls of QScrollArea only in third widget place, not on the whole window. And I don't know how to do it.

    Actually, I don't like this variant. Would be grateful for any help.

    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