View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0034880 | Lazarus | Widgetset | public | 2019-01-16 09:42 | 2019-01-31 08:27 |
Reporter | Cyril LAMY | Assigned To | Zeljan Rikalo | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | x64 | OS | MacOS X | ||
Product Version | 2.1 (SVN) | ||||
Summary | 0034880: With QT5, Widgets are at wrong positions the second time the form is shown | ||||
Description | Open a form from a menu with showmodal. The widget are at their places. Close the form and open it a second time. Widget are now at wrong positions. (See screen captures) | ||||
Tags | No tags attached. | ||||
Fixed in Revision | 60232,60249 | ||||
LazTarget | - | ||||
Widgetset | QT5 | ||||
Attached Files |
|
related to | 0034698 | closed | Zeljan Rikalo | Wrong Form position if set to poMainFormCenter |
|
|
|
|
|
It seems that not all widgets are affected by this issue but at least stringgrid, drawgrid, valuelisteditor were tested and affected. |
|
|
|
I can confirm this behavior. This also affect the startup position of the form. Anything else than poDesigned gives errors. In my code (FormCreate) I have to use: {$if defined(LCLQT) OR defined(LCLQT5)} Self.Position:=poDesigned; {$endif} |
|
I reported few weeks ago a problem with the startup position of a form using QT5 (issue 0034698). Maybe there is a link between this issue and what you wrote ? |
|
Problem is reproducable only on macos, linux and win32 works fine (qt5lcl) |
|
Please test and close if ok. |
|
For me, its working perfect now ! Thanks. |
|
It's ok for me too ! Thanks |
|
Resolved |
|
Reopen : the same behavior still continue with the Tcombobox widget |
|
Please attach example, but before that please test with r60248 |
|
issue34880_2.diff (546 bytes)
Index: lcl/interfaces/qt5/qtwidgets.pas =================================================================== --- lcl/interfaces/qt5/qtwidgets.pas (revision 60248) +++ lcl/interfaces/qt5/qtwidgets.pas (working copy) @@ -9705,6 +9705,9 @@ CachedSelectionLen := -1; end; + if (ChildOfComplexWidget = ccwComboBox) and (QEvent_type(Event) = QEventMove) then + exit; + if (ChildOfComplexWidget = ccwComboBox) and ((QEvent_type(Event) = QEventPaint) or (QEvent_type(Event) = QEventResize)) and (LCLObject.HandleAllocated) then |
|
Also, you can test with attached patch for qt5 and give some feedback. |
|
Please test and close if ok. I've just tested on Mac and it's ok now |
|
It's Ok now Thank you |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-01-16 09:42 | Cyril LAMY | New Issue | |
2019-01-16 09:42 | Cyril LAMY | File Added: First Showmodal.png | |
2019-01-16 09:42 | Cyril LAMY | File Added: second showmodal.png | |
2019-01-16 09:47 | Cyril LAMY | Note Added: 0113436 | |
2019-01-16 09:49 | Cyril LAMY | File Added: Bug Widgetpositions.zip | |
2019-01-16 22:18 | Zeljan Rikalo | Assigned To | => Zeljan Rikalo |
2019-01-16 22:18 | Zeljan Rikalo | Status | new => assigned |
2019-01-17 11:20 | Alfred | Note Added: 0113448 | |
2019-01-18 09:31 | Cyril LAMY | Note Added: 0113459 | |
2019-01-18 16:52 | Zeljan Rikalo | Relationship added | related to 0034698 |
2019-01-27 13:53 | Zeljan Rikalo | LazTarget | => - |
2019-01-27 13:53 | Zeljan Rikalo | Note Added: 0113663 | |
2019-01-27 13:53 | Zeljan Rikalo | Status | assigned => confirmed |
2019-01-27 14:24 | Zeljan Rikalo | Fixed in Revision | => 60232 |
2019-01-27 14:24 | Zeljan Rikalo | Note Added: 0113666 | |
2019-01-27 14:24 | Zeljan Rikalo | Status | confirmed => resolved |
2019-01-27 14:24 | Zeljan Rikalo | Resolution | open => fixed |
2019-01-28 13:07 | Alfred | Note Added: 0113694 | |
2019-01-28 15:28 | Cyril LAMY | Note Added: 0113695 | |
2019-01-28 15:29 | Cyril LAMY | Note Added: 0113696 | |
2019-01-28 15:29 | Cyril LAMY | Status | resolved => closed |
2019-01-30 16:42 | Cyril LAMY | Note Added: 0113733 | |
2019-01-30 16:42 | Cyril LAMY | Status | closed => assigned |
2019-01-30 16:42 | Cyril LAMY | Resolution | fixed => reopened |
2019-01-30 18:56 | Zeljan Rikalo | Note Added: 0113739 | |
2019-01-30 18:56 | Zeljan Rikalo | Status | assigned => feedback |
2019-01-30 19:02 | Zeljan Rikalo | File Added: issue34880_2.diff | |
2019-01-30 19:02 | Zeljan Rikalo | Note Added: 0113740 | |
2019-01-30 19:27 | Zeljan Rikalo | Fixed in Revision | 60232 => 60232,60249 |
2019-01-30 19:27 | Zeljan Rikalo | Note Added: 0113741 | |
2019-01-30 19:27 | Zeljan Rikalo | Status | feedback => resolved |
2019-01-30 19:27 | Zeljan Rikalo | Resolution | reopened => fixed |
2019-01-31 08:27 | Cyril LAMY | Note Added: 0113752 | |
2019-01-31 08:27 | Cyril LAMY | Status | resolved => closed |