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

QFrame border has differend line width but frameShadow is plain

Scheduled Pinned Locked Moved Unsolved General and Desktop
ui designborderbug
2 Posts 2 Posters 432 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 6 Dec 2021, 12:19 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?

    J 1 Reply Last reply 6 Dec 2021, 12:21
    0
    • V Vasiliy Isaikin
      6 Dec 2021, 12:19

      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?

      J Online
      J Online
      jsulm
      Lifetime Qt Champion
      wrote on 6 Dec 2021, 12:21 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

      2/2

      6 Dec 2021, 12:21

      • Login

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