View Issue Details

IDProjectCategoryView StatusLast Update
0037576LazarusWidgetsetpublic2020-09-21 17:09
ReporterJuha Manninen Assigned ToZeljan Rikalo  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
PlatformAMD RyzenOSLinux 64-bit 
Product Version2.1 (SVN) 
Summary0037576: With QT5 anchored controls inside a GroupBox are placed wrongly when the GroupBox has no caption
DescriptionFor example in the string property editor TStringsPropEditorFrm (unit StringsPropEditDlg) StatusLabel is anchored to its container GroupBox's bottom. The label's bottom edge should be 6 pix (border space) above the GroupBox bottom edge.
It is so with GTK2 and other widgetsets.
With QT5 it goes lower, mostly outside the GroupBox. It happens both in design time and in run time. I didn't test with QT4.
I added a temporary caption to TStringsPropEditorFrm's TextGroupBox in r63750.

I attach a demo project. In the main form you can replicate the error by removing caption from the GroupBox.
There is also a stripped version of TStringsPropEditorFrm. I reduced the cause of error with it.
This form can be opened with a button on the main form.

Manjaro has recent versions or QT libs. This is from ldconfig -p :
  libQt5Core.so.5 (libc6,x86-64, OS ABI: Linux 3.17.0) => /usr/lib/libQt5Core.so.5
  libQt5Core.so (libc6,x86-64, OS ABI: Linux 3.17.0) => /usr/lib/libQt5Core.so
How to get more precise versions?
Additional InformationThere is also another problem with anchors. The anchor editor itself starts to behave wrong after using it for a while. The anchor side buttons cannot be switched, or a wrong button gets selected when you click. The problem goes away after restarting Lazarus. Something gets corrupt somewhere.
I don't remember seeing that with LCL-GTK2.
TagsNo tags attached.
Fixed in Revision
LazTarget-
WidgetsetQT5
Attached Files

Relationships

related to 0032186 assignedZeljan Rikalo Toggle buttons in anchor editor are not responding with Qt5 
related to 0032346 closedZeljan Rikalo TGroupBox clips controls at bottom when it is Autosize=TRUE 

Activities

Juha Manninen

2020-08-16 10:05

developer   ~0124914

A demo project.
project1.zip (109,300 bytes)

Zeljan Rikalo

2020-09-21 13:02

developer   ~0125708

Please: I need Qt theme info. You can test your app with eg ./myapp -style windows to check if it works with such simple theme.

Juha Manninen

2020-09-21 16:03

developer   ~0125719

Last edited: 2020-09-21 17:09

View 2 revisions

@Zeljko, the -style param has no effect for this issue.
Do you mean you cannot reproduce the bug?
You don't even need to run the demo app. Just remove the GroupBox Caption at design-time, In Lazarus IDE built with QT5, and you see the problem.

Issue History

Date Modified Username Field Change
2020-08-15 18:20 Juha Manninen New Issue
2020-08-15 18:20 Juha Manninen Status new => assigned
2020-08-15 18:20 Juha Manninen Assigned To => Zeljan Rikalo
2020-08-16 10:04 Juha Manninen Summary With QT5 anchored controls are sometimes placed wrongly => With QT5 anchored controls inside a GroupBox are placed wrongly when the GroupBox has no caption
2020-08-16 10:04 Juha Manninen Description Updated View Revisions
2020-08-16 10:04 Juha Manninen Additional Information Updated View Revisions
2020-08-16 10:04 Juha Manninen LazTarget => -
2020-08-16 10:04 Juha Manninen Widgetset QT5 => QT5
2020-08-16 10:05 Juha Manninen Note Added: 0124914
2020-08-16 10:05 Juha Manninen File Added: project1.zip
2020-08-16 10:15 Juha Manninen Relationship added related to 0032186
2020-08-16 10:15 Juha Manninen Relationship added related to 0032346
2020-08-16 10:20 Juha Manninen OS => Linux 64-bit
2020-08-16 10:20 Juha Manninen OS Version => Manjaro
2020-08-16 10:20 Juha Manninen Platform => AMD Ryzen
2020-08-16 10:20 Juha Manninen Description Updated View Revisions
2020-08-16 10:20 Juha Manninen Widgetset QT5 => QT5
2020-09-21 13:02 Zeljan Rikalo Status assigned => feedback
2020-09-21 13:02 Zeljan Rikalo Note Added: 0125708
2020-09-21 16:03 Juha Manninen Note Added: 0125719
2020-09-21 16:03 Juha Manninen Status feedback => assigned
2020-09-21 17:09 Juha Manninen Note Edited: 0125719 View Revisions