Re: [Development] List all components within a QML package

2017-11-02 Thread Ben Lau
On 3 November 2017 at 00:14, Aleix Pol wrote: > On Thu, Nov 2, 2017 at 5:12 PM, Ben Lau wrote: > > Hi, > > > > Is there any API available (include private) to list all the components > > within a QML package? I am developing a testing tool and need the > > inf

[Development] List all components within a QML package

2017-11-02 Thread Ben Lau
Hi, Is there any API available (include private) to list all the components within a QML package? I am developing a testing tool and need the information (only the name is needed). Thanks for any advise. ___ Development mailing list Development@qt-proje

Re: [Development] Future of QBS

2017-10-15 Thread Ben Lau
On 14 October 2017 at 00:55, Denis Shienkov wrote: > Hi all, my 5-cents: > > QBS is better (best best) than CMake, IMHO, as CMake is too complicated. > :) > > I am still new to QBS, but I think it is better than CMake too. However, I think it has missed a critical feature - A simple way to run cu

Re: [Development] New Qt 5.8 rc snapshot for testing

2017-01-13 Thread Ben Lau
On 13 January 2017 at 14:15, Tim Blechmann wrote: > > All known blockers should be fixed in these packages and we are > > targeting to release Qt 5.8.0 Tue 17^th January if nothing really > > serious found during testing. So please inform me immediately if there > > is some new blocker in the pac

Re: [Development] Load debug symbol from Qt library in lldb

2016-12-19 Thread Ben Lau
On 19 December 2016 at 16:07, Eike Ziller wrote: > > > On Dec 19, 2016, at 4:10 AM, Ben Lau wrote: > > > > Hi, > > > > I am tracking a crash problem in Qt library on Mac. First of all, I > build a Qt 5.7.1 library from git with : > > > >

[Development] Load debug symbol from Qt library in lldb

2016-12-18 Thread Ben Lau
Hi, I am tracking a crash problem in Qt library on Mac. First of all, I build a Qt 5.7.1 library from git with : $ ./configure -confirm-license -developer-build -opensource -nomake examples -nomake tests Then build an example program via the the qmake built $ qmake CONFIG+=debug Run it via ll

Re: [Development] Image and PreserveAspectCrop

2016-08-02 Thread Ben Lau
On 2 August 2016 at 19:56, Gunnar Sletta wrote: > Hi, > > I think the most sensible solution is to handle this inside the image > provder. When I've seen this problem previously, it has was solved using a > custom image provider for local files, but as you say, when the resources > are scattered

Re: [Development] The behaviour of Image / image provider are different from 5.5.1 to 5.6 in iOS

2016-04-12 Thread Ben Lau
On 12 April 2016 at 21:02, Sorvig Morten wrote: > > > On 11 Apr 2016, at 12:38, Ben Lau wrote: > > > > Hi, > > > > I am writing an image provider that read all the images to memory at > startup. And I found that the behaviour is different from 5.5

Re: [Development] The behaviour of Image / image provider are different from 5.5.1 to 5.6 in iOS

2016-04-11 Thread Ben Lau
xelRatio(). That should be 3 on iPhone 6 and should provide > the correct result. > I'm not sure if that's a bug or it is intended behaviour and I actually > didn't investigate the issue a lot since I was just testing stuff. > > Hope someone else can confirm it's a

Re: [Development] The behaviour of Image / image provider are different from 5.5.1 to 5.6 in iOS

2016-04-11 Thread Ben Lau
On 11 April 2016 at 20:19, ekke wrote: > Am 11.04.16 um 14:07 schrieb Ben Lau: > > > On 11 April 2016 at 19:59, ekke wrote: > >> Am 11.04.16 um 12:38 schrieb Ben Lau: >> >> Hi, >> >> I am writing an image provider that read all the images to memory

Re: [Development] The behaviour of Image / image provider are different from 5.5.1 to 5.6 in iOS

2016-04-11 Thread Ben Lau
On 11 April 2016 at 19:59, ekke wrote: > Am 11.04.16 um 12:38 schrieb Ben Lau: > > Hi, > > I am writing an image provider that read all the images to memory at > startup. And I found that the behaviour is different from 5.5.1 to 5.6 in > iOS. Seems that it is undocument

[Development] The behaviour of Image / image provider are different from 5.5.1 to 5.6 in iOS

2016-04-11 Thread Ben Lau
Hi, I am writing an image provider that read all the images to memory at startup. And I found that the behaviour is different from 5.5.1 to 5.6 in iOS. Seems that it is undocumented. I wonder is it an expected behaviour or a bug? That is the example project: https://github.com/benlau/quickcross/t

Re: [Development] Setup CI service

2016-01-27 Thread Ben Lau
On 27 January 2016 at 18:09, Koehne Kai wrote: > > > > -Original Message- > > From: Ben Lau [mailto:xben...@gmail.com] > > Sent: Wednesday, January 27, 2016 10:57 AM > > To: Koehne Kai > > Cc: development@qt-project.org > > Subject: Re: [Develo

Re: [Development] Setup CI service

2016-01-27 Thread Ben Lau
On 27 January 2016 at 16:12, Koehne Kai wrote: > > > > -Original Message- > > From: Ben Lau [mailto:xben...@gmail.com] > >[...] > > Hi Kai, > > > > I mean the official Qt offline installer (Linux) downloaded from > > https://download.qt.io

Re: [Development] Setup CI service

2016-01-26 Thread Ben Lau
On 27 January 2016 at 15:30, Koehne Kai wrote: > > > > -Original Message- > > From: Development [mailto:development-boun...@qt-project.org] On > > Behalf Of Ben Lau > > Sent: Tuesday, January 26, 2016 4:37 PM > > To: development@qt-project.org > &g

[Development] Setup CI service

2016-01-26 Thread Ben Lau
Hi, Since Qt 5.5, the command line installer has been broken. Therefore, it can not use Qt 5.5 in CI service like travis / drone.io etc. Is there has any alternative solution developing and will available in Qt 5.6? Thanks. ___ Development mailing list

Re: [Development] QVariantMap <-> QML

2015-06-14 Thread Ben Lau
On 15 June 2015 at 01:43, Gerhard Scheikl wrote: > Hi > > I recently discovered some unexpected behavior when exchanging a > QVariantMap > with QML code: > > Here's what I'm doing on the C++ side: > my_map = json_document.toVariant(); > engine.rootContext()->setContextProperty("myMap", my_map); >

Re: [Development] Your actions needed, Qt5.5.0 RC & Final is nearing!

2015-06-03 Thread Ben Lau
On 3 June 2015 at 14:45, Heikkinen Jani wrote: > Hi all, > > > We are quite close to Qt 5.5.0 RC & final releases. Plan is to put RC > out Thu 11.6.2015 & Final Tue 23.6.2015. To be able to keep the schedule we > need to make sure all real blockers are fixed in RC so that it will be > really RC

Re: [Development] Qt high-dpi support update

2014-11-23 Thread Ben Lau
On 21 November 2014 at 21:45, Tor Arne Vestbø wrote: > On 19/11/14 09:55, Morten Johan Sørvig wrote: > > Meeting summary: > > > > * Qt Quick will operate in device pixels and get one or more “device > > independent” units (pt, cm, mm, inches, …) > > After chatting with the involved parties, this

Re: [Development] New Qt5.4.0 snapshot available

2014-11-13 Thread Ben Lau
Is it possible to keep those snapshot for longer period of time? There are some mirror site which is too slow. It may spend more than 15hr to get 600MB and since I am using Notebook and I may not be able to download before I leave office. Sometimes when I go back to home, the snapshot was removed a

[Development] TextField's Text Select Handle for Android

2014-11-11 Thread Ben Lau
hi , I just tried the Qt 5.4 for Android (not the latest snapshot on today) . I have run the quick controls example on the device. The text select handle in TextField works pretty well for text selection. However, do it has a text select handle for cursor movement? I can not trigger this feature.

Re: [Development] New Qt5.4 snapshot available

2014-11-01 Thread Ben Lau
Hi , I would like to evaluate the iOS version of 5.4 beta snapshot but it is already removed from the download site , but new version is not ready yet. Is there something wrong with the build script? On 27 October 2014 18:41, Heikkinen Jani wrote: > Hi all, > > New Qt5.4 snapshot available > >

Re: [Development] www.qt.io/download-open-source is broken

2014-09-18 Thread Ben Lau
On 18 September 2014 07:32, Simon Sasburg wrote: > > Well, most sites out there I know start a download automatically if you > > click on a download button (which you probably did from qt.io/download > to > > get to the page you mentioned). > Well the problem is from qt.io/download there is no ch

[Development] Quick Android - QML Component Library for Android

2014-09-09 Thread Ben Lau
Hi , I would like to share my latest open source project here. It is called as Quick Android, a QML component library for Android. Project site: https://github.com/benlau/quickandroid Main Features: 1. Provides “DP” unit 2. Page transition management 3. Multiple type “Drawable” compone

[Development] Suggested method to distribute QML library

2014-09-06 Thread Ben Lau
hi all, I am developing a library with set of QML components . It will be shared on Github. I would expect people use it via `git submodule` instead of coping those QML files to their source tree and install to QML module path. As now the default project created by QT Creator uses resource file t

Re: [Development] New Qt5.3.1 snapshot available

2014-06-28 Thread Ben Lau
On 20 June 2014 15:24, Koehne Kai wrote: > > > > -Original Message- > > From: development-bounces+kai.koehne=digia@qt-project.org > > [mailto:development-bounces+kai.koehne=digia@qt-project.org] On > > Behalf Of Heikkinen Jani > > Sent: Tuesday, June 17, 2014 8:04 AM > > To: devel

Re: [Development] [Android] QML Qt.inputMethod.keyboardRectangle.height always equal to 0

2014-06-07 Thread Ben Lau
I think it is not implemented yet. There are few reported issues about using virtual keyboard in Android. *[#QTBUG-33713] Not possible to get boundaries of virtual keyboard on android in order to align other stuff on it - Qt Bug Tracker* *[#QTBUG-34089] Android: user input items filling the screen

Re: [Development] quick-qtsvg project status

2014-06-02 Thread Ben Lau
? On 3 June 2014 00:15, Thiago Macieira wrote: > Em seg 02 jun 2014, às 23:51:07, Ben Lau escreveu: > > Hi all, > > > > I would like to convert a QML scene into SVG but the QtSvg only support > > painter but not scene graph. Then I search from the Internet a

[Development] quick-qtsvg project status

2014-06-02 Thread Ben Lau
Hi all, I would like to convert a QML scene into SVG but the QtSvg only support painter but not scene graph. Then I search from the Internet and found this library https://qt.gitorious.org/qt/qquick-qtsvg/ However, the last commit is on Feb 2012. Is it usable to use now? Moreover, anybody know t

Re: [Development] The rowsAboutToBeRemoved signal in ListModel

2014-05-26 Thread Ben Lau
n May 16, 2014, at 3:33 AM, Jędrzej Nowacki > wrote: > > > On Friday 16 of May 2014 12:33:49 Ben Lau wrote: > >> Why? Is there any special reason to implement in this order? or it is a > bug? > > > > It look like a bug. >

[Development] The rowsAboutToBeRemoved signal in ListModel

2014-05-15 Thread Ben Lau
Hi all, If I understand correctly , the rowsAboutToBeRemoved signal of QAbstactItemModel should be emitted before the rows are actually removed. So the row should be still accessible when you got the signal. However, I found that implementation of ListModel (QQmlListModel) does not follow the rul

Re: [Development] QML DropArea documentation unhelpful

2014-05-14 Thread Ben Lau
well , I also think that the document about Drag and Drop is not clear enough.. Reading from example code is more easy to understand. Anyway , the solution to your problem: You should call drag.accept() within the onEntered slot. Then it will enable the onDropped slot to be executed. http://qt-pr

Re: [Development] [QML] ListModel discards item's method

2014-05-04 Thread Ben Lau
On 4 May 2014 03:30, Nurmi J-P wrote: > On 03 May 2014, at 16:04, Ben Lau wrote: > > > Hi, > > > > I have few questions about the implementation of ListModel and the > design principle about using models with object in QML application. > > > > I would like

[Development] [QML] ListModel discards item's method

2014-05-03 Thread Ben Lau
Hi, I have few questions about the implementation of ListModel and the design principle about using models with object in QML application. I would like to use a model class to hold a list of item (or C++ QObject ) with custom methods / slot functions. However, I found that after the item/QObject

Re: [Development] QML Singleton

2014-03-09 Thread Ben Lau
On 10 March 2014 04:59, Steve Gold wrote: > 1. Can a QML singleton contain signals and functions that are accessed > by other QML types or just properties? > > no. However, you may declare enum type by making C++ QML component. [#QTBUG-14861] Allow enum types to be defined from QML side - Qt

[Development] Feature Request : Export QML file as an image

2014-02-16 Thread Ben Lau
Hi, I would like to propose a feature for Qt Quick Designer to allow to export QML file into an image. For example, when you are editing a QML in graphical mode , you may press right click on a specific "state" then it will show a popup menu. Then you may choose to export the "state" into an image

Re: [Development] Qt 5.2 Beta - is it really much slower to parse qml/javascript on android?

2014-01-19 Thread Ben Lau
Seem that loading from asset storage is really slow.. I am writing a QML application with around 15 QML files. The loading time is 20 sec. I have tried to run profiler and take out many component to speed up. Finally , I found that just take out the statement "import ./widgets" can reduce 10sec l

Re: [Development] [Interest] Digia to acquire Qt from Nokia

2012-08-09 Thread Ben Lau
Yeah!! The best news for Qt in this year! On Thu, Aug 9, 2012 at 2:31 PM, Eric Landuyt wrote: > Hello , > > seems like a very good news: > > http://www.digia.com/en/Home/Company/News/Digia-to-acquire-Qt-from-Nokia/ > > -- > Eric Landuyt, Developer - mailto:e...@datarescue.be > DataRescue sa/

Re: [Development] Json support for QtCore

2011-12-11 Thread Ben Lau
On Sun, Dec 11, 2011 at 8:31 AM, Robin Burchell wrote: > hi, > > On Sat, Dec 10, 2011 at 10:32 PM, wrote: > > I've benchmarked parsing speed and compared to the qjson > > (http://qjson.sourceforge.net/). It's around 7 times faster for the > > test.json file included in the project (the test case