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. Why is my `HLine` `QFrame` invisible (inside my `QDockWidget`)?
Forum Updated to NodeBB v4.3 + New Features

Why is my `HLine` `QFrame` invisible (inside my `QDockWidget`)?

Scheduled Pinned Locked Moved Solved Qt for Python
2 Posts 1 Posters 178 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.
  • RokeJulianLockhartR Offline
    RokeJulianLockhartR Offline
    RokeJulianLockhart
    wrote on last edited by RokeJulianLockhart
    #1

    As aforestated at post/820286:

    From what I see, the vertical line is a QFrame element with VLine settings.

    Using stackoverflow.com/review/suggested-edits/36711790, that:

    separator_line = PyQt6.QtWidgets.QFrame()
    separator_line.setFrameShape(PyQt6.QtWidgets.QFrame.Shape.HLine)
    separator_line.setFrameShadow(PyQt6.QtWidgets.QFrame.Shadow.Sunken)
    

    ...seems to render in the correct orientation for me:

    1. Before

      0dd1b2f4-2c92-4fd0-8f95-d070c0a84640-Screenshot_20250209_190842.png

    2. Afterward

      ...albeit invisibly (it should be between "Modify" and "Overflow"):

      62ba634c-b9d0-4bb7-9169-c8332fa1aa65-Screenshot_20250209_193706.png

    Any idea why it's invisible? I ask because although I expected that it would be a deficiency in Breeze (as improbable as that is for such a basic control in such a popular QStyle), it was invisible in Fusion too:

    b291d0a7-9eae-4de4-bbf4-5f7c6792295d-Screenshot_20250209_194953.png


    If you need more code, I'll try to provide it. However, I can't provide all of it, because Akismet becomes angry.

    When using a forum, remember to tag the person you are responding to, in case they are not subscribed to the thread.

    1 Reply Last reply
    0
    • RokeJulianLockhartR Offline
      RokeJulianLockhartR Offline
      RokeJulianLockhart
      wrote on last edited by
      #2

      I'm stupid. It's because it was a 0-width HLine. Changed to VLine; worked.

      When using a forum, remember to tag the person you are responding to, in case they are not subscribed to the thread.

      1 Reply Last reply
      0
      • RokeJulianLockhartR RokeJulianLockhart has marked this topic as solved on

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved