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
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
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:
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
* 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
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:
---
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?
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
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
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
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
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
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
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
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
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
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
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
18 matches
Mail list logo