Re: [Interest] [Development] Modifying QQmlFileSelector selector at runtime without Loader or Component

2014-12-15 Thread Alan Alpert
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

Re: [Interest] Project structure for multi-platform mobile devices

2014-04-23 Thread Alan Alpert
//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

Re: [Interest] Accessing a QML object, via constructed id in JavaScript

2014-04-16 Thread Alan Alpert
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

Re: [Interest] QML GridView scrolling

2014-02-22 Thread Alan Alpert
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

Re: [Interest] QML performance on iOS?

2014-01-29 Thread Alan Alpert
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

Re: [Interest] QML performance on iOS?

2014-01-29 Thread Alan Alpert
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

Re: [Interest] QML QList as modelData

2014-01-29 Thread Alan Alpert
registering-singleton-objects-with-a-singleton-type . -- Alan Alpert ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Caching of compiled/initialized qml code to disk possible?

2014-01-15 Thread Alan Alpert
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 __

Re: [Interest] Unexplained offset in QML

2014-01-10 Thread 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 _

Re: [Interest] Unexplained offset in QML

2014-01-06 Thread 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

Re: [Interest] Is this working for anyone, making a QML extension.

2013-12-03 Thread Alan Alpert
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

Re: [Interest] QML Web Development

2013-11-26 Thread Alan Alpert
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

Re: [Interest] Replicate QML Listview in QtCpp and widgets

2013-11-11 Thread Alan Alpert
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

Re: [Interest] Wrapping a .qml file into a Qt plugin?

2013-10-31 Thread Alan Alpert
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

Re: [Interest] Using Qml canvas object (name conflict with Image?)

2013-09-11 Thread Alan Alpert
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

Re: [Interest] QML Presentation System, detailed docs & roadmap?

2013-09-09 Thread Alan Alpert
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

Re: [Interest] QML Presentation System, detailed docs & roadmap?

2013-09-06 Thread Alan Alpert
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/

Re: [Interest] QML-plugins problems, pragmatic development questions

2013-09-06 Thread Alan Alpert
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

Re: [Interest] QQmlPropertyList x QList in hybrid C++/QML APIs

2013-06-17 Thread Alan Alpert
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

Re: [Interest] QQmlPropertyList x QList in hybrid C++/QML APIs

2013-06-14 Thread Alan Alpert
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

Re: [Interest] QQmlPropertyList x QList in hybrid C++/QML APIs

2013-06-14 Thread Alan Alpert
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

Re: [Interest] QQmlPropertyList x QList in hybrid C++/QML APIs

2013-06-14 Thread Alan Alpert
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

Re: [Interest] Qml bindings with javascript library functions in them

2013-06-13 Thread Alan Alpert
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 &

Re: [Interest] QML blocking popup menu

2013-06-11 Thread Alan Alpert
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

Re: [Interest] List of 3rd party Qt/QML plug-ins?

2013-05-28 Thread Alan Alpert
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

Re: [Interest] QML Window handling focus events

2013-05-20 Thread Alan Alpert
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

Re: [Interest] How can i dissolve/appear a picture using particles in QML?

2013-04-26 Thread Alan Alpert
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

Re: [Interest] How can i dissolve/appear a picture using particles in QML?

2013-04-26 Thread Alan Alpert
-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

Re: [Interest] example code for C++ plugin qml extension?

2013-04-12 Thread Alan Alpert
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.

Re: [Interest] example code for C++ plugin qml extension?

2013-04-12 Thread Alan Alpert
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

Re: [Interest] Excel-like grid of numbers in QML

2013-04-11 Thread Alan Alpert
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

Re: [Interest] Rotating objects in QML are killing performance

2013-04-11 Thread Alan Alpert
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

Re: [Interest] CSS with QML

2013-04-10 Thread Alan Alpert
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{})

Re: [Interest] Namespace on Custom C++ property in QML?

2013-02-25 Thread Alan Alpert
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

Re: [Interest] Direction of Qt [Was: Re: QML Runtime]

2013-02-01 Thread Alan Alpert
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

Re: [Interest] Direction of Qt [Was: Re: QML Runtime]

2013-02-01 Thread Alan Alpert
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

Re: [Interest] QML window icon

2013-01-30 Thread Alan Alpert
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

Re: [Interest] QML Runtime

2013-01-30 Thread Alan Alpert
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

Re: [Interest] QML window icon

2013-01-29 Thread Alan Alpert
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

Re: [Interest] QML in larger projects, and "packaging" (KDE-related)

2012-12-26 Thread Alan Alpert
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

Re: [Interest] QML QtQuick 2 (Qt5) font looks very blurry!

2012-12-20 Thread Alan Alpert
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