[Qt-creator] copy&paste in QtDesigner changes widget order/visibility
Jakob Lettenbichler
jakob.lettenbichler at artech.at
Fri Apr 9 11:00:49 CEST 2021
Hiho,
I am having fun with an interesting detail that is happening when copying a set of widgets in the QtDesigner and paste it there.
If the widget names do not match the widget order by happenstance (i.e adding a button named zButton, then add another widget that partially obscures the zButton with name fancyWidget, then copy&paste will trigger that fancyWidget will be below zButton), pasting them will destroy the z-order by sorting the copies by name.
This effect is not visible when putting all the widgets in a parent widget and copying that one (including all children) instead.
I tried to tackle this by writing a plugin that intersects copy&paste (our users complain about that and do not accept the inconvenience of using a parent widget), but I seem to be not competent enough to handle it myself (i.e. QClipboard does not help there, since it solely reacts to the copy call, but not to the paste step).
Are there any ideas on your side, or even the interest of “fixing” (so not sorting by name, if not as standard behavior, but at least as an option) this in the actual QtDesigner?
We are using QtCreator 4.4.1 at the moment (we have over 20 Plugins and changing interfaces prevent us from upgrading to newer QtCreatorversions frequently) using qt5.9 (newest QtCreator version supporting qt5.9 is QtCreator 4.9 I think), so if that happens to be something that has been tackled already, please tell me so, so I can argue for a newer QtCreator version when talking with my superiors.
Many thanks in advance,
Cheers,
Jakob
FN 181686 k. HG Wien, UID-Nr. ATU 47056901, zertifiziert nach ISO 9001:2015 Nr. 04036/0
Der Inhalt dieser E-Mail ist vertraulich und ausschließlich für den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form der Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des Inhaltes dieser E-Mail unzulässig ist. Wir bitten Sie, sich in diesem Fall mit dem Absender der E-Mail in Verbindung zu setzen und die E-Mail zu vernichten. Für Übermittlungsfehler oder sonstige Irrtümer bei der Übermittlung besteht keine Haftung.
This e-mail is intended solely for the person to whom it is addressed and may contain confidential or legally privileged information. Access to this e-mail by anyone else is unauthorized. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail and destroy this e-mail and any attachments. E-mail may be susceptible to data corruption, interception, unauthorized amendment, viruses and delays or the consequences thereof. If you are not the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20210409/dacd2fef/attachment.html>
More information about the Qt-creator
mailing list