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. QFrame border has differend line width but frameShadow is plain
QtWS25 Last Chance

QFrame border has differend line width but frameShadow is plain

Scheduled Pinned Locked Moved Unsolved General and Desktop
ui designborderbug
2 Posts 2 Posters 430 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.
  • V Offline
    V Offline
    Vasiliy Isaikin
    wrote on last edited by
    #1

    Every QFrame has next parameters:

    • frameShadow = Plain
    • frameShape = Box
    • lineWidth = 1
    • midLineWidth = 0

    enter image description here

    When I run app line width is different from each other.

    enter image description here

    Let's look at left line of bottom frame. Line is exist but real width = 0 pixels (lineWidth = 1). Other lines has 1 pixel width. This is easy to verify if increase lineWidth to 2.

    enter image description here

    Left line has width one pixel smaller then others.

    Why?

    jsulmJ 1 Reply Last reply
    0
    • V Vasiliy Isaikin

      Every QFrame has next parameters:

      • frameShadow = Plain
      • frameShape = Box
      • lineWidth = 1
      • midLineWidth = 0

      enter image description here

      When I run app line width is different from each other.

      enter image description here

      Let's look at left line of bottom frame. Line is exist but real width = 0 pixels (lineWidth = 1). Other lines has 1 pixel width. This is easy to verify if increase lineWidth to 2.

      enter image description here

      Left line has width one pixel smaller then others.

      Why?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Vasiliy-Isaikin said in QFrame border has differend line width but frameShadow is plain:

      Why?

      It looks like you're not using layouts?
      You should arrange your widgets in layouts, so they get sized and positioned properly.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

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