[Interest] Strange behavior when binding through property aliases in QtQuick2

2013-07-12 Thread Preet
Hi I'm running into some behaviour with nested property aliases in QtQuick2 that I'm having trouble understanding. I have a nested item in a component defined in a separate file (ie "CustomItem.qml": Item { Row { Nested { etc... } } }) and I want to access certain properties from the outside. So

[Interest] QML: Changing focus when clicking outside a focused Item

2013-07-12 Thread Daiwei Li
Hi everyone, I'm wondering if there is a recommended way to relinquish focus from an Item (or rather, give focus to a pre-determined item) if you click outside of it. Consider the following example: import QtQuick 2.0 Item { id: root width: 600 height: 300 Rectangle {

Re: [Interest] Qt 5.1 online installer issue: Unable to uncheck QtCreator from install options

2013-07-12 Thread Mandeep Sandhu
Thanks Sergio, I've noted my observations on the bug report. -mandeep On Fri, Jul 12, 2013 at 5:10 PM, Sergio Ahumada wrote: > Hi, > > On 07/12/2013 01:22 PM, Mandeep Sandhu wrote: > > I'm trying to install Qt5.1 on my system (Ubuntu 13.04, 32-bit). > > > > The issue is that when choosing the

[Interest] QGLView inside QQuickItem

2013-07-12 Thread Federico J . Fernández
We're in the process of moving our application UI from QWidgets to QtQuick, and the main challenge at the moment is embedding a class derived from QGLView into the QML application. We tried a workaround documented here but are having many issues, mos

[Interest] Qt 5.1 online installer issue: Unable to uncheck QtCreator from install options

2013-07-12 Thread Mandeep Sandhu
I'm trying to install Qt5.1 on my system (Ubuntu 13.04, 32-bit). The issue is that when choosing the components to install, it's not letting me uncheck the "Tools" option. I don't want to install the creator that comes bundled (it's the older 2.7.2) as I want to install the latest 2.8 one separate

Re: [Interest] Display nicely truncated text in a QLabel

2013-07-12 Thread Lucas.Betschart
Hi I would derive from QLabel, get the length of it (in pixel) with frameWidth() use QFontMetrics QWidget::fontMetrics () with int QFontMetrics::width ( const QString & text, int len = -1 ) to get the length of the text in pixels, check if it fits, and if no cut some chars and replace it with …

[Interest] Display nicely truncated text in a QLabel

2013-07-12 Thread Etienne Sandré-Chardonnal
Dear all, When maximumSize() is set on a QLabel, if the text is too long, it truncates it harshly (the rendered text pixmap is just trimmed). Is there a way to display the text nicely truncated with "..." or so at the end and no half-character? If not, this would really be something to implement

Re: [Interest] Drawing a selected icon and text

2013-07-12 Thread Etienne Sandré-Chardonnal
I found what I needed, everything is in QStylePainter. It allows drawing styled primitives. Etienne 2013/7/11 Etienne Sandré-Chardonnal > Dear all, > > I am designing a custom widget that displays mostly icons with their text > (similar to icon view in a file viewer), and which user can select