Re: [Interest] Is there any way to find QML object by id?

2014-05-22 Thread Tomasz Siekierda
On 22 May 2014 00:07, Alexander Ivash elder...@gmail.com wrote: Use-case: Let's say I want to customize ComboBox's TextInput control which is not exposed via ComboBox API. There is some private API for that, but (unless something changed recently) no official way to search by IDs. What I do in

Re: [Interest] Qt Plugin Low Level API

2014-05-22 Thread Samuel Stirtzel
2014-05-22 9:37 GMT+02:00 Etienne Sandré-Chardonnal etienne.san...@m4x.org: Dear all, I'm reading the doc in order to implement plugins into my Qt 4.8 application. The manual says that I need first to define the plugin interface as a pure virtual class. In the example it does not inherit

Re: [Interest] Qt Plugin Low Level API

2014-05-22 Thread Tony Rietwyk
Hi Etienne, The 4.8.5 doco for QObject.qobject_cast links to the Plug Paint example for use of qobject_cast with interfaces. Mind you, it incorrectly shows the return type as QWidget. Hopefully that doco has been rewritten in v5! Hope that helps, Tony From:

Re: [Interest] Qt Plugin Low Level API

2014-05-22 Thread Roland Winklmeier
Hi Etienne, there are two requirements: 1. The interface must be pure virtual (so it cannot derive from QObject) 2. qobject_cast requires a QObject subclass Hence, your plugin implementation must inherit from both. The implementation itself can derive from QObject but the interface cannot. The

[Interest] Is there any way to find QML object by id?

2014-05-22 Thread Alexander Ivash
* Thats exactly what I would also do if it would be my component, but ** unfortunately I don't have an access to TextInput { id: input } which is ** inside the ComboBox. * But you are able to assign the ID or is it built-in? I don't get the problem, although I have not used the ComboBox, so

[Interest] QML function super call

2014-05-22 Thread Wolfgang Baron
How can I call the function implementation in a base class, if the class overrides the definition? Here is an example: Base.qml: --- import QtQuick 2.2 Item { function myFunc() { console.log( Base myFunc called ); } } --- Derived.qml: ---

[Interest] QML Editor is incompatible with QT_NO_CAST_FROM_ASCII

2014-05-22 Thread Wolfgang Baron
If you use QT_NO_CAST_FROM_ASCII in your project, you will have to surround your names with QStringLiteral() in calls to QQmlContext::setContextProperty(). Then, however, the QML Editor will not recognize your names and overlay your code with a warning. How can I get around that?

Re: [Interest] Is there any way to find QML object by id?

2014-05-22 Thread Tony Rietwyk
Thats exactly what I would also do if it would be my component, but unfortunately I don't have an access to TextInput { id: input } which is inside the ComboBox. But you are able to assign the ID or is it built-in? I don't get the problem, although I have not used the ComboBox, so maybe

Re: [Interest] Is there any way to find QML object by id?

2014-05-22 Thread Tomasz Siekierda
On 22 May 2014 12:01, Tony Rietwyk t...@rightsoft.com.au wrote: Thats exactly what I would also do if it would be my component, but unfortunately I don't have an access to TextInput { id: input } which is inside the ComboBox. But you are able to assign the ID or is it built-in? I don't

Re: [Interest] Qt Plugin Low Level API

2014-05-22 Thread Etienne Sandré-Chardonnal
Thanks for your explanations! Let's start working on the plugin system... Etienne 2014-05-22 10:01 GMT+02:00 Roland Winklmeier roland.m.winklme...@gmail.com : Hi Etienne, there are two requirements: 1. The interface must be pure virtual (so it cannot derive from QObject) 2. qobject_cast

[Interest] Is there any way to find QML object by id?

2014-05-22 Thread Alexander Ivash
Alexander, do you have another use case in mind? It might clarify your requirement. (I haven't played with QML yet but I thought all QObject info is exposed to javascript and the components anyway - isn't that how the linkage is achieved?) The only use-case I have in mind is extending

[Interest] Problem applying a graphical effect to a button control.

2014-05-22 Thread rgomez
Hi, am trying to apply a graphical effect to a button control. The first problem is that initially the effect is not shown, then when I click the button it show the effect covering the entire area of the button, indeed I have tried with DropShadow effect and the shadow covers the button. Could

Re: [Interest] QML function super call

2014-05-22 Thread Michael Brasser
Hi, For reference, this issue is logged as https://bugreports.qt-project.org/browse/QTBUG-25942. Regards,Michael From: wolfgang.ba...@gmx.net To: interest@qt-project.org Date: Thu, 22 May 2014 11:42:07 +0200 Subject: [Interest] QML function super call How can I call the function

Re: [Interest] QtQuickCompiler alternative

2014-05-22 Thread Torgeir Lilleskog
I would guess there is something you are doing in the qml file which is a slow operation. Can you tell us a bit more about what you are doing and which components you are using? One thing which helps is to only load the items initially visible and stick optional items into Loader elements. These

[Interest] Shadow effect for QPushButton label.

2014-05-22 Thread rgomez
Hi, how do I set shadow effect to the text of a QPushButton? VII Escuela Internacional de Verano en la UCI del 30 de junio al 11 de julio de 2014. Ver www.uci.cu ___ Interest mailing list Interest@qt-project.org

Re: [Interest] QtQuickCompiler alternative

2014-05-22 Thread Damian Ivanov
Hello Torgeir, Do be a bit more specific a ~1sec startup is for anything. Just a Window { Text{text: Hello world}} will have that kind of startup time. I would really need an onCLick show up of the window itself, the content doesn't need to be instantly there. I am writing a desktop environment

Re: [Interest] QtQuickCompiler alternative

2014-05-22 Thread Thiago Macieira
Em qui 22 maio 2014, às 18:09:03, Damian Ivanov escreveu: Do be a bit more specific a ~1sec startup is for anything. Just a Window { Text{text: Hello world}} will have that kind of startup time. Profile that. What is the time spent on? -- Thiago Macieira - thiago.macieira (AT) intel.com

Re: [Interest] Drag and Drop in QtQuick

2014-05-22 Thread manish sharma
I hope you have set the MouseArea::drag.target correctly? Make sure that your drag target is either Image or it's parent. Also make sure that your drag.target does not have anchors set for drag.axis direction, for example a drag target anchored left and right can not be moved in x direction. On