Bug 411811 - QPushButton and QLineEdit have different height
Summary: QPushButton and QLineEdit have different height
Status: RESOLVED DUPLICATE of bug 407273
Alias: None
Product: Breeze
Classification: Plasma
Component: QStyle (show other bugs)
Version: 5.16.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-11 07:58 UTC by Guo Yunhe
Modified: 2021-02-16 20:48 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Left: QPushButton. Right: QLineEdit (7.33 KB, image/png)
2019-09-11 07:58 UTC, Guo Yunhe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guo Yunhe 2019-09-11 07:58:16 UTC
Created attachment 122595 [details]
Left: QPushButton. Right: QLineEdit

QButton and QLineEdit are often put in the same row. The difference of height should be avoid.

Operating System: openSUSE Tumbleweed 20190907
KDE Plasma Version: 5.16.4
KDE Frameworks Version: 5.61.0
Qt Version: 5.13.0
Kernel Version: 5.2.11-1-default
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 31.2 GiB
Comment 1 Guo Yunhe 2019-09-15 20:59:27 UTC
The following components should have same height:

* QPushButton, QComboBox
* QLineEdit, QDateEdit, QTimeEdit, etc.

Then we come into the question: should we increase QLineEdit height, or decrease QPushButton height?
Comment 2 Nate Graham 2019-09-15 21:16:51 UTC
Why are they the same height in QML/Kirigami user interfaces? Which one was changed there? We should do the same thing in QWidgets.
Comment 3 Noah Davis 2019-12-21 02:02:50 UTC
It seems like only buttons with text have this problem. If a button only has an icon, then it is the same size as a QLineEdit
Comment 4 Nate Graham 2021-02-16 20:48:41 UTC

*** This bug has been marked as a duplicate of bug 407273 ***