Re: [Interest] OTE label
On Friday 09 October 2015 20:59:27 Jason H wrote: > Anyone know what OTE label means in the issue tracker? Labels are arbitrary strings that anyone can add. I don't know what OTE is. I'll guess "Over The Ether" (compare to OTA - Over The Air). -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Qml Tooltips
For people who may get interested into making tootips too without accessing the Qml private API: Here's what I end up doing (a simplified version of one that does load the item into a Loader container), I can now display any Items no more Z fighting, have a single timer. Hope this help some peoples ;-) // ToolTipArea.qml (I place those inside the Item I want to make a tooltips for MouseArea { id: component property string text property Item content: Text { parent = null; text: component.text; } property int interval: 750 anchors.fill: parent hoverEnabled: true propagateComposedEvents: true preventStealing: true acceptedButtons: Qt.NoButton onExited: hide() onCanceled: hide() function hide() { if(ToolTipTimer.content == component.content) ToolTipTimer.hide(); } function show() { if(ToolTipTimer.content != component.content) { ToolTipTimer.interval = component.interval; ToolTipTimer.content = component.content; } else ToolTipTimer.start(); } onContainsMouseChanged: { if(containsMouse) show(); else hide(); } onPositionChanged: { hide(); if(containsMouse) show(); } } // Make this ToolTipTimer as singleton into qmldir, use a single timer for all tooltips pragma Singleton import QtQuick 2.3 import QtQuick.Controls 1.2 MouseArea { id: component parent: Application.rootItem // Expose the root Item for the QQuickView into c++ Application singleton anchors.fill: parent visible: false z: 100 acceptedButtons: Qt.AllButtons property Item content property alias interval: timer_.interval property alias running: timer_.running onContentChanged: { if(content == null) hide(); else start(); } onPressed : { hide(); mouse.accepted = false; } function hide() { timer_.stop(); visible = false; if(content) content.parent = null; content = null; } function start() { timer_.restart(); } function display() { if(!content) return; content.parent = component; var pos = Application.cursorPosition(); // Expose Q_INVOKABLE into Application singleton that do the following: return qquick_view-> mapFromGlobal(QCursor::pos()); content.x = pos.x; content.y = pos.y; visible = true; } Timer { id: timer_ running: component.content interval: 750 onTriggered: component.display() } } On Thu, Oct 8, 2015 at 10:17 AM, Jérôme Godboutwrote: > Thanks you very much, it work very well. > > let's hope this Private API make it public some day with possible style > customization. I can now remove the ugly z ordering of many component now, > make the scripts way more clean. > > regards, > Jerome > > On Thu, Oct 8, 2015 at 7:31 AM, Nicolas Kniebihler < > nicolas.kniebih...@dualo.org> wrote: > >> Hi Jerome, >> >> I don't know if that answers your question, but I personally use the way >> QML shows tooltips above Buttons: >> >> MyTooltip.qml: >> >> import QtQuick 2.3 >> >> import QtQuick.Controls 1.2 >> >> import QtQuick.Controls.Private 1.0 >> >> MouseArea { >> >> id: behavior >> >> property string tooltip >> >> hoverEnabled: true >> >> propagateComposedEvents: true >> >> onExited: Tooltip.hideText() >> >> onCanceled: Tooltip.hideText() >> >> Timer { >> >> interval: 1000 >> >> running: behavior.containsMouse && !behavior.pressed && >> tooltip.length >> >> onTriggered: Tooltip.showText(behavior, Qt.point(behavior.mouseX, >> behavior.mouseY), tooltip) >> >> } >> >> } >> >> >> Example: >> >> Label { >> >> text: "My label" >> >> MyTooltip { >> >> anchors.fill: parent >> >> tooltip: qsTr("My tooltip") >> >> } >> >> } >> >> >> This way I can show a tooltip above any component (not just Buttons). >> >> Nicolas >> >> >> ___ >> Interest mailing list >> Interest@qt-project.org >> http://lists.qt-project.org/mailman/listinfo/interest >> >> > ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] QML/C++ tidbit
Hello List: For those who are using Loader in QML but triggering that loader from C++, I came across a usage pattern technique that may have utility for some. During the execution of the C++, loading "componentSource" is NOT a synchronous operation if your loader is set to Async == true In the Loader::onLoaded() function, call an INVOKABLE back into C++ to inform C++ that the loader is finished by setting some visible C++ flag Then inside your C++, execute QGuiApplication::processEvents() immediately after setting "componentSource" and wait for the flag to be set and then you may proceed to interact with the freshly loaded QML objects inside C++ knowing the loader has finished its job. This allows what is largely an asynchronous process to be made more "synchronous" inside your C++, thus allowing you to continue in C++ with your GUI logic close to where you loaded the QML to begin with. I use a timeout to guard against QML errors should my loader stumble into poorly formed QML. You can always try to handle the QMLEngine::warnings() signal, but that is a work in progress. I never set my Loader to be synchronous so that I never block the Gui Thread with QML loading operations. Hope the idea resonates with someone in the list. Cheers, md -- No spell checkers were harmed during the creation of this message. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] OTE label
Anyone know what OTE label means in the issue tracker? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Qt 5.5 DEB (or other install package) for Ubuntu 14.04 out there?
Basic question. I have a Qt 5.5 application that I want to install and run on Ubuntu 14.04. However, the most recent Qt libs are not available in the standard repos. Anyone know where I can obtain such things? My little application is to be distributed as a DEB file but fails on installation due to the Qt lib version. Am I out of luck here and have to build my own or does such a repo exist somewhere that would obviously not only include the Qt 5.5 but their dependencies as well? -Jason //--// Jason R. Kretzer Lead Application Developer ja...@gocodigo.com //-// ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Qt 5.5 DEB (or other install package) for Ubuntu 14.04 out there?
Hi Jason, I faced the issue with Qt 5.1 on Ubuntu 12.04. At that time packaged version of Qt was Qt 4.8. I had to build my own package for Qt 5.1. Then I switch to a greater version of Ubuntu to get a more up-to-date version of Qt. Maybe Ubuntu 15.10 does the trick. On 09/10/2015 16:48, Jason Kretzer wrote: > Basic question. I have a Qt 5.5 application that I want to install and run > on Ubuntu 14.04. However, the most recent Qt libs are not available in the > standard repos. Anyone know where I can obtain such things? My little > application is to be distributed as a DEB file but fails on installation due > to the Qt lib version. > > Am I out of luck here and have to build my own or does such a repo exist > somewhere that would obviously not only include the Qt 5.5 but their > dependencies as well? > > -Jason > > //--// > Jason R. Kretzer > Lead Application Developer > ja...@gocodigo.com > //-// > > ___ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest -- Cédric CARRÉE Développeur Logiciel - BeSpoon Tel: +33 4 57 12 96 35 web: www.bespoon.com ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Qt 5.5 DEB (or other install package) for Ubuntu 14.04 out there?
Qt5 libraries do exist on Ubuntu 14.04. If you have built your deb on 14.04, then the debhelper should have put in the correct dependency information. If you build on a version > 14.04 and try to run on 14.04 then your debianization scripts need to be explicit about versions. I used to do this by using a 14.04 VM. Now I use a 14.04 Docker image. -Uv On Fri, Oct 9, 2015 at 7:48 AM, Jason Kretzerwrote: > Basic question. I have a Qt 5.5 application that I want to install and run > on Ubuntu 14.04. However, the most recent Qt libs are not available in the > standard repos. Anyone know where I can obtain such things? My little > application is to be distributed as a DEB file but fails on installation due > to the Qt lib version. > > Am I out of luck here and have to build my own or does such a repo exist > somewhere that would obviously not only include the Qt 5.5 but their > dependencies as well? > > -Jason > > //--// >Jason R. Kretzer >Lead Application Developer >ja...@gocodigo.com >//-// > > ___ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest