e state in another object
(such as in a QtObject{} on the Loader) and bind your internal state
to that so that you can use the Loader approach to recreate whole
instances.
PS: Moving to qt-interest since you didn't seem to be offering to
develop this feature as a part of Qt.
--
Alan Alper
//qt-project.org/doc/qt-5/qtquick-qmlscene.html#loading-test-data
It's a little out of date, the same functionality exists in the newer
'qml' binary.
--
Alan Alpert
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
en you can
pass it to where-ever you need it and use it like
"if (theCheckBox.checked) //do something"
--
Alan Alpert
On Mon, Apr 14, 2014 at 9:50 PM, Eric Feigenson wrote:
> Hello all...
>
> I'm writing some JavaScript code inside QML. What I'd like to do is be able
scrolling is kinda annoying.
Try "interactive: false". The property is inherited from Flickable.
--
Alan Alpert
On Sat, Feb 22, 2014 at 3:17 PM, Damian Ivanov wrote:
> Hi,
>
> Is there a proper way I can prevent GridView from scrolling?
> I have a GridView with only a few it
On Wed, Jan 29, 2014 at 12:07 PM, André Pönitz wrote:
> On Tue, Jan 28, 2014 at 11:54:21AM -0800, Alan Alpert wrote:
>> Why not tell them that QML is native?
>
> Believe it or not, some people simply dislike the idea of lying.
I dislike the idea of lying, but I don't mind c
Why not tell them that QML is native? It is just instantiating a tree
of C++ objects (if you aren't using JS bindings). If you do a C++/QML
app, with C++ for the logic instead of JS, then the only performance
cost over "100% native" will be the startup time.
--
Alan Alpert
On Mo
registering-singleton-objects-with-a-singleton-type
.
--
Alan Alpert
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
ssible, or would it be possible in some future version of Qt?
An optimization of this sort has been investigated, and while not
possible now it is possible in a future version of Qt. I just don't
know when that work will be done, so it might be a while.
--
Alan Alpert
__
rs.centerIn: parent
Item { id: head
Item { id: earL}
Item { id: earR}
Item { id: face}
}
}
}
Item { id: tail}
}
In that case, the second item is going to end up offset from the root
0,0 point of the Animal{} depending on the size of the internal items.
--
Alan Alpert
_
imal root Item, and thus
have an offset applied via their parent's x coordinate.
B) The images are on a fill mode which respects aspect or original
size, and the images are thus being centered in a manual size you've
given to the Image elements.
--
Alan Alpert
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
My guess is that "importPaths" in the .qmlproject file never got
hooked up for qmlscene. Try setting the import path and running the
file manually, i.e. "qml -I /your/long/import/path yourQmlFile.qml".
--
Alan Alpert
On Tue, Dec 3, 2013 at 2:37 PM, Mark Gaiser wrote:
> Hi
t. Maybe not quite the same approach though, it's more
client-side.
--
Alan Alpert
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
y easy, but HTML is even worse than QML
for most of the reasons that people want to ban QML.
If you really can't use QML or QtQuick, you can implement such a
widget with QtWidgets but there's no real help for that. Just do all
your own touch handling and painting and it's still easi
Add the qml files as a resource, then use
https://qt-project.org/doc/qt-5.1/qtqml/qqmlengine.html#qmlRegisterType-3
to register them into the plugin's module.
--
Alan Alpert
On Thu, Oct 31, 2013 at 9:30 AM, Guido Seifert wrote:
> Hi,
> following problem:
> I'd like to wrap
I wouldn't expect that to happen, but if that is indeed the issue then
there is a simple workaround.
import QtQuick 2.0 as QQ
QQ.Canvas {
[]
}
--
Alan Alpert
On Wed, Sep 11, 2013 at 12:42 PM, Chris Meyer wrote:
> I'm attempting to use the Canvas object in Qml. See code be
On Mon, Sep 9, 2013 at 12:23 AM, Sletta Gunnar wrote:
>
> On Sep 7, 2013, at 12:23 AM, Alan Alpert <4163654...@gmail.com> wrote:
>> *actually I still use its precedessor,
>> https://gitorious.org/qt-qml-demo-playground/qt-qml-demo-playground/source/708de53727032441efd6
lly which helps when you have a full size embedded QML
application on every page.
--
Alan Alpert
On Fri, Sep 6, 2013 at 2:33 PM, Charley Bay wrote:
> Gunnar's post on his "QML Presentation System" in 2011 was absolutely
> inspiring, IMHO:
> http://blog.qt.digia.com/blog/2011/
nstead of the
environment variable).
If you set the QML_IMPORT_TRACE environment variable then it spits out
where it's finding the modules, which might help with debugging.
--
Alan Alpert
On Fri, Sep 6, 2013 at 9:12 AM, Charley Bay wrote:
> I'm having a lot of trouble importing my
4 the change will be impractical to
implement, but it's worth checking out.
--
Alan Alpert
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
On Fri, Jun 14, 2013 at 12:43 PM, Sandro Andrade wrote:
> On Fri, Jun 14, 2013 at 3:59 PM, Alan Alpert <4163654...@gmail.com> wrote:
>> On Fri, Jun 14, 2013 at 11:49 AM, Sandro Andrade
>> wrote:
>>> On Fri, Jun 14, 2013 at 2:48 PM, Alan Alpert <4163654...@gm
On Fri, Jun 14, 2013 at 11:49 AM, Sandro Andrade wrote:
> On Fri, Jun 14, 2013 at 2:48 PM, Alan Alpert <4163654...@gmail.com> wrote:
>> To use types across QML/C++ you should use qmlRegisterType.
>> QObject-based types aren't automatically registered with QML, but
>&g
very
little more you have do to use it properly in QML.
--
Alan Alpert
On Fri, Jun 14, 2013 at 9:15 AM, Sandro Andrade wrote:
> Hi there,
>
> I've a bunch of classes which define a number of Q_PROPERTies with
> type QList. Those classes are inspected by
> a generic widgets-b
orceUpdate", rewrite your expressions to be
"forceUpdate + JS.setValue(...);", and emit the notify signal for
forceUpdate;
--
Alan Alpert
On Thu, Jun 13, 2013 at 11:29 AM, Josh Faust wrote:
> Hey all,
>
> I have a javascript library, with functions that are used in a lot of
&
t to the root
item of the scene (probably using
http://qt-project.org/doc/qt-4.8/qgraphicsscene.html#sendEvent ).
--
Alan Alpert
On Tue, Jun 11, 2013 at 5:26 AM, Martin Haker wrote:
> Hi everyone,
>
> in the process of porting an existing widget-based application to QML I
> would li
You missed http://qt-project.org/wiki/QtQuickOpenComponents (which is
nigh-impossible to find and never updated).
I think this sort of list is what we really want, just a wiki page for
collecting links to existing QML component modules scattered across
the web. But findable and updated, unlike t
tween window focusIn/Out and window
active/inactive. Leaving that out is intentional, because it's rarely
an important distinction (and when it is, you have the C++ API).
--
Alan Alpert
___
Interest mailing list
Interest@qt-project.org
http://lists.qt
On Fri, Apr 26, 2013 at 11:24 AM, Mark wrote:
> On Fri, Apr 26, 2013 at 6:05 PM, Alan Alpert <4163654...@gmail.com> wrote:
>> For the image case you can use
>> http://qt-project.org/doc/qt-5.0/qtquick/qml-qtquick-particles2-maskshape.html
>> . That should be fairly simp
-customparticle.html
, use ShaderEffectSource to get the other Item into the custom
particles shaders as a texture, and use that texture as a filter to
play only particles that end up inside that texture (or if exploding
from it, which end up inside the texture but play the particles
backwards).
--
Alan
contains qmake).
--
Alan Alpert
On Fri, Apr 12, 2013 at 1:50 PM, VStevenP wrote:
> Hi Alan,
>
> Thanks for the help! I think I almost have the example plug-in working, but
> I think I need another tip.
>
> I built examples/qml/plugins/plugins.pro using Qt Creator 2.
ative/trees/stable/examples/qml/plugins
--
Alan Alpert
On Fri, Apr 12, 2013 at 9:13 AM, Steve Pavao wrote:
> Could someone please post generic code for a working C++ plugin to extend
> QML?
>
> The following official doc and also the official help in Qt Creator are
> missing the ex
be just elements in a
Grid {} (probably generated by a Repeater).
"Spreadsheet" isn't a stock QML element, so you will have to write
your own with the characteristics that fit your own situation.
--
Alan Alpert
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
ite sheet and play it with an AnimatedImage or
AnimatedSprite. Those are likely to perform better.
--
Alan Alpert
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
On Wed, Apr 10, 2013 at 6:10 AM, Sergey wrote:
> Hi,
>
> Is it possible to add CSS file to QML in QT?
No. You'll have to style using QML features (for example, defining a
MyText{} with the properties set how you want and using that instead
of Text{})
CppType myCppType
>> ^
>> "Unexpected token '.'"
>
>
> I assume package/namespace/plugin scoping names are not allowed for defining
> properties in QML? Does this mean you can't use
is no "dominant side". C++ and QML are both viable options for
writing your UI with Qt (actually, right now QML is not a viable
option for the average desktop UI but it's getting close). It's not
even two entirely separate worlds, QML depends on C++ development and
is primarily
ime and the Window
module are more complete, small applications may become possible to do
with just QML (primarily targeting apps that are 99% UI).
--
Alan Alpert
On Fri, Feb 1, 2013 at 10:15 AM, Bob Hood wrote:
> On 2/1/2013 1:37 AM, Bo Thorsen wrote:
>> Den 01-02-2013 09:06, Ma
e's no "background" color because the Text element does not
paint a background at all - it only paints text. So the color of Text
is the color of the text, and the color of Rectangle is the color of
the rectangle.
--
Alan Alpert
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
t; Windows).
>
> I just wondered:
>
> - Is this likely to happen?
>
> - How would it cope with qsTr()?
Same as qmlscene can do currently, it automatically loads translations
from an i18n folder next to the main QML file (if su
t;view.setIcon(icon);" in your
existing C++ code, and using an Item{} as the root of myapp.qml
instead of Window{}.
> Sorry it's not straightforward yet, but I think we will need to add the QML
> window icon API as soon as we have the Icon API figured out in general.
The Window{} QML API is also really new, so there's a lot more work to
be done with controlling windows from QML. Right now, it's probably
easiest to control the main window from C++.
--
Alan Alpert
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
f builds on top of QML modules, so is worth
looking into if you need some functionality that plain QML modules
don't provide. I think the main features plasma packages add is a
bundled file format and better scope for platform independence.
--
Alan Alpert
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
a bug in the default text rendering. You can report this bug at
https://bugreports.qt-project.org/ .
> Why is it even done this odd? Just an
> readable example would be better imho,
It's because, as QML examples, the C++ entry point is not the main
focus. Often the examples are run b
41 matches
Mail list logo