[Interest] QWebView: Find/Display diffs of html-text

2013-01-14 Thread Wilhelm
Hi,

I'm looking for a hint/solution to the following problem:

- I have two versions of html-text: a previous and an actual one as QString
- I would like to display to actual one with:
-- changes from previous highlighted
-- scroll the QWebView to the changes / a specific change

Actually I compute the changes between the to html-texts using Googles 
Qt-version of diff-match-patch.

Any hints to this?

-- 
Wilhelm

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Support for NSDragOperationDelete in Qt Cocoa

2013-01-14 Thread Иван Комиссаров
Guys, are there any Mac programmers who can help me?)

Иван Комиссаров

10.01.2013, в 12:44, Иван Комиссаров abba...@gmail.com написал(а):

 As i looked into qt code (both qt4 and qt5), it is not possible to enable 
 this flag for a drag and drop.
 
 This flag is needed to allow dropping to a mac trash. Is there some reasons 
 why it's not included into Qt::ActionMask and/or MoveAction enums (what i 
 mean - are there some bugs/ limitations in current code, or this can be done 
 easily?).
 
 What i suggest - keep current Qt enum, but implicitly convert Qt::MoveAction 
 into flag NSDragOperationMove | NSDragOperationDelete instead of 
 NSDragOperationMove.
 
 Иван Комиссаров
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Announcing Doxyqml

2013-01-14 Thread Aurélien Gâteau
Tomasz Siekierda wrote:

 I wrote an input filter for Doxygen which makes it possible to use
 Doxygen to document QML components.
 It is being used on api.kde.org to document Plasma QML components.  You
 can view an example of the output here:
 http://api.kde.org/4.x-api/kde-runtime-
 apidocs/plasma/declarativeimports/plasmacomponents/html/index.html
 You can learn more about this tool from:
 http://agateau.com/projects/doxyqml/
 
 This is pure gold, thank you very much! I'll try it out today. Any
 possibility/ plans of pushing this upstream to Doxygen itself?

Cool, net me know how it works for you.

There are no plan as of now to push it into Doxygen. Doing so would require 
a rewrite in C++, which is not something I plan to do at the moment. Note 
that Doxyqml is now mentioned on Doxygen extension page [1].

Aurélien

[1]: http://www.stack.nl/~dimitri/doxygen/helpers.html

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] [Development] [ANN] Registration for C++Now 2013 is now open

2013-01-14 Thread Tony Van Eerd
 -Original Message-
ject.org; developm...@qt-project.org
 Subject: Re: [Development] [Interest] [ANN] Registration for C++Now
 2013 is now open
 
 On terça-feira, 11 de dezembro de 2012 13.14.00, Boris Kolpackov wrote:
  Speakers
 
  If you are interested in presenting, we are currently accepting
 proposals
  http://cppnow.org/2013-call-for-submissions/. Registration fee is
 waived
  for one speaker of every standard session presentation. Shorter
 sessions are
  prorated.
 
 Four days left if anyone wants to submit anything.
 
 I'll see what I can submit, but I doubt I can even get travel approval
 in that
 period...
 
 --
 Thiago Macieira - thiago.macieira (AT) intel.com
   Software Architect - Intel Open Source Technology Center


We are extending the submission deadline (as always - everyone is so busy this 
time of year).

I highly recommend the conference (both as an attendee for a number of years, 
and also as a speaker - I'll probably talk about lock-free programming this 
year).

Tony



-
This transmission (including any attachments) may contain confidential 
information, privileged material (including material protected by the 
solicitor-client or other applicable privileges), or constitute non-public 
information. Any use of this information by anyone other than the intended 
recipient is prohibited. If you have received this transmission in error, 
please immediately reply to the sender and delete this information from your 
system. Use, dissemination, distribution, or reproduction of this transmission 
by unintended recipients is not authorized and may be unlawful.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] [gnutls-help] ANNOUNCE: Qt Certificate Addon

2013-01-14 Thread Nikos Mavrogiannopoulos
On Sun, Dec 16, 2012 at 10:18 PM, Richard Moore r...@kde.org wrote:

 What is it?
 ===
 Qt Certificate Addon is a framework for creating X.509 certificates using
 Qt. Unlike the read-only support for certificates that's included in the SSL
 module this API allows new certificates, keys and signing requests to be
 created.

Hello Richard,
 The API looks reasonable. I don't know where this is intended to be
used, but it may be useful to have some examples of common usage in
the documentation (e.g. how to generate a certificate for a web
server).

I'd also miss key generation on smart card, but this may not be a
popular use-case for a first release. As I see the API it can easily
accommodate that in the future.

   * Key usage
   * Extended key usage

These two proved to be hard to use in the internet. On a survey of
certificates in web servers those values seem to be randomly selected
based on each admin's understanding of the meaning of the values.

 The code is capable of creating certificates, keys and signing requests with
 support for the most common types of certificate extension. The documentation
 is at a reasonable level, there are examples and a moderate level of unit
 tests. I've only tested the code on Linux, but apart from the RandomGenerator
 class it should work fine on all platforms.

Why not use gnutls' gnutls_rnd()?

regards,
Nikos
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt 5 Help system and online doc suggestions

2013-01-14 Thread Aaron J. Seigo
On Thursday, December 20, 2012 13:14:27 Thiago Macieira wrote:
  3. Also, it would be nice if you could put Aaron Seigo's slides online. 
  He
  wasn't at the Berlin QtDD12, only at Santa Clara, so his content is not
  otherwise already online, from what I can tell.  His talk about QML in
  large projects was great, and I don't see equivalent content in the QtDD12
  videos posted for the Berlin conference.
 
 Aaron, did you give your slides to the conference organisation?

yes; put them on a usb key i was handed at the conference :) if they've been 
lost, i can easily send them to someone for posting.

-- 
Aaron J. Seigo

signature.asc
Description: This is a digitally signed message part.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] [gnutls-help] ANNOUNCE: Qt Certificate Addon

2013-01-14 Thread Nikos Mavrogiannopoulos
On Sat, Dec 22, 2012 at 12:49 PM, Richard Moore r...@kde.org wrote:
 Yes, it's totally feasible to add this in the future. At the moment I
 have no access to the relevant hardware so I'm not really in a
 position to look at it. I know at least one developer who's
 contributed to Qt recently has an interest in this area, so it might
 well be something that gets worked on.
 Thinking some more about this, is there any hardware you could
 recommend for testing this kind of thing? It seems that some of the
 smart card devkits are actually quite cheap such as
 http://www.smartcardfocus.com/shop/ilp/id~85/ACR38_SDK/p/index.shtml -
 are they enough to try this with gnutls?

Everything that works with opensc should be ok with gnutls. I test RSA
with http://www.gooze.eu/feitian-epass-pki-token or smart card-hsm
http://www.opensc-project.org/opensc/wiki/SmartCardHsm for ECDSA.

regards,
Nikos
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt 5 Cross compile issue

2013-01-14 Thread S. Muthaiah
Hi,



I installed XCB in sysroot directory.

And also I included sysroot in configure command like this,



./configure -v -prefix /usr/local/Qt-5.0.0 -xplatform linux-g++-mx5x 
-opensource -nomake examples -nomake demos -nomake tests -no-opengl -qt-xcb 
-qpa xcb -no-directfb -release -shared -fast -no-largefile -no-accessibility 
-no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql 
-no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -no-c++11 -no-javascript-jit 
-qml-debug -no-sse2 -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -no-avx2 
-no-neon -no-mips_dsp -no-mips_dspr2 -qt-zlib -qt-libpng -qt-libjpeg 
-no-openssl  -no-eglfs -qt-pcre -optimized-qmake -no-nis -no-cups -no-iconv 
-no-icu -no-strip -no-dbus -no-separate-debug-info -no-kms -no-glib  
-I/usr/include/freetype2 -sysroot 
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/arm-fsl-linux-gnueabi/sysroot/





When I execute above command ,I got some other erros like,



/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld:
 crt1.o: No such file: No such file or directory



/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-linux-g++
 -ffast-math -Wl,-O1 -o floatmath floatmath.o   
-L/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/arm-fsl-linux-gnueabi/sysroot/lib
 
--sysroot=/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/arm-fsl-linux-gnueabi/sysroot/

/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld:
 crt1.o: No such file: No such file or directory

collect2: ld returned 1 exit status



Please suggest me how to solve the above error.





Regards,

S.Muthaiah



-Original Message-
From: Thiago Macieira [mailto:thiago.macie...@intel.com]
Sent: Thursday, December 27, 2012 6:39 PM
To: S. Muthaiah
Subject: Re: Qt 5 Cross compile issue



On quinta-feira, 27 de dezembro de 2012, às 11.42.59, you wrote:

 /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-

 gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux

 -gnueabi/bin/ld: cannot find -lxcb collect2: ld returned 1 exit status

 make: *** [xcb] Error 1

 xcb disabled.

 The test for linking against libxcb failed!

  You might need to install dependency packages for libxcb.

  See src/plugins/platforms/xcb/README.



You need to install the XCB libraries in your sysroot.



Please use the interest@qt-project.org mailing list for such issues instead of

emailing me directly.

--

Thiago Macieira - thiago.macieira (AT) intel.com

  Software Architect - Intel Open Source Technology Center



-Original Message-
Hi thiago.macieira

I have a problem to build xcb library.
i got following error when i configure Qt 5 with -qt-xcb and -qpa xcb options.

I installed all the xcb libraries which are specified in Read me file and also 
i included xcb header file and library file location in configure path.

/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-linux-g++
 -ffast-math -Wl,-O1 -o xcb xcb.o   -L/usr/local/lib -lxcb
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld:
 skipping incompatible /usr/local/lib/libxcb.so when searching for -lxcb
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld:
 skipping incompatible /usr/local/lib/libxcb.a when searching for -lxcb
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld:
 cannot find -lxcb
collect2: ld returned 1 exit status
make: *** [xcb] Error 1
xcb disabled.
The test for linking against libxcb failed!
 You might need to install dependency packages for libxcb.
 See src/plugins/platforms/xcb/README.


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt 5 Cross compile issue in freescale IMX53 Board

2013-01-14 Thread S. Muthaiah
Hi All,

I successfully compiled Qt 5.0.0 for IMx53 Board.

I configured with -eglfs and -opengl es2 options.
My cross compilation was successful.

When I run application , i got below error message.

./hellogl_es2 -platform -eglfs

Unable to handle kernel paging request at virtual address 0505d004
pgd = 99cc
[0505d004] *pgd=
Internal error: Oops: 805 
3https://bugreports.qt-project.org/browse/QTQAINFRA-590#3 PREEMPT
last sysfs file: /sys/devices/platform/fsl-ehci.1/usb2/2-0:1.0/uevent
Modules linked in:
CPU: 0 Tainted: G D (2.6.35.3-1129-g691c08a #668)
PC is at kgsl_drawctxt_create+0x17c/0xb4c
LR is at 0x505d018
pc : [802e864c] lr : [0505d018] psr: 4013
sp : 9807ddf0 ip : 0505d01c fp : 0505d004
r10: 0505d00c r9 : 0505d008 r8 : 0505d010
r7 : 0505d014 r6 :  r5 : 807e34d8 r4 : 807e14a0
r3 : 0505d000 r2 : 0505c000 r1 : 0505d034 r0 : 0505d020
Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 10c5387d Table: 89cc0019 DAC: 0015
Process hellogl_es2 (pid: 3762, stack limit = 0x9807c2e8)
Stack: (0x9807ddf0 to 0x9807e000)
dde0: 9c18dd80 800c5984 9d4fc400 0505d024
de00: 9d516380 800c5d38 807e31f0 1d50 000e 9d4fc400 8000 0505d02c

For animatedtiles example,

I got =

olor formats don't match. Falling back to copy forward swap.
Color formats don't match. Falling back to copy forward swap.
Color formats don't match. Falling back to copy forward swap.
Color formats don't match. Falling back to copy forward swap.
Color formats don't match. Falling back to copy forward swap.
Color formats don't match. Falling back to copy forward swap.
Color formats don't match. Falling back to copy forward swap.
QOpenGLShader::link: Link was successful.

Color formats don't match. Falling back to copy forward swap.
Color formats don't match. Falling back to copy forward swap.
Color formats don't match. Falling back to copy forward swap.

Please suggest me how to solve the above problem.

Regards,
S.Muthaiah



From: S. Muthaiah
Sent: Thursday, December 27, 2012 8:17 PM
To: 'interest@qt-project.org'
Cc: 'Thiago Macieira'
Subject: RE: Qt 5 Cross compile issue


Hi,



I installed XCB in sysroot directory.

And also I included sysroot in configure command like this,



./configure -v -prefix /usr/local/Qt-5.0.0 -xplatform linux-g++-mx5x 
-opensource -nomake examples -nomake demos -nomake tests -no-opengl -qt-xcb 
-qpa xcb -no-directfb -release -shared -fast -no-largefile -no-accessibility 
-no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql 
-no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -no-c++11 -no-javascript-jit 
-qml-debug -no-sse2 -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -no-avx2 
-no-neon -no-mips_dsp -no-mips_dspr2 -qt-zlib -qt-libpng -qt-libjpeg 
-no-openssl  -no-eglfs -qt-pcre -optimized-qmake -no-nis -no-cups -no-iconv 
-no-icu -no-strip -no-dbus -no-separate-debug-info -no-kms -no-glib  
-I/usr/include/freetype2 -sysroot 
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/arm-fsl-linux-gnueabi/sysroot/





When I execute above command ,I got some other erros like,



/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld:
 crt1.o: No such file: No such file or directory



/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-linux-g++
 -ffast-math -Wl,-O1 -o floatmath floatmath.o   
-L/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/arm-fsl-linux-gnueabi/sysroot/lib
 
--sysroot=/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/arm-fsl-linux-gnueabi/sysroot/

/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld:
 crt1.o: No such file: No such file or directory

collect2: ld returned 1 exit status



Please suggest me how to solve the above error.





Regards,

S.Muthaiah



-Original Message-
From: Thiago Macieira [mailto:thiago.macie...@intel.com]
Sent: Thursday, December 27, 2012 6:39 PM
To: S. Muthaiah
Subject: Re: Qt 5 Cross compile issue



On quinta-feira, 27 de dezembro de 2012, às 11.42.59, you wrote:

 /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-

 gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux

 -gnueabi/bin/ld: cannot find -lxcb collect2: ld returned 1 exit status

 make: *** [xcb] Error 1

 xcb disabled.

 The test for linking against libxcb failed!

  You might need to install dependency packages for libxcb.

  See src/plugins/platforms/xcb/README.



You need to install the XCB libraries in your sysroot.



Please use the interest@qt-project.org mailing list for such issues instead of

emailing me directly.

--

Thiago Macieira - thiago.macieira (AT) intel.com

  

[Interest] Problems porting to Qt5

2013-01-14 Thread Marcelo Estanislau Geyer
I have an application that is compiled to Qt4.8.3 and I am interested in 
porting to Qt5. The problem is that I need to run this system and depend on 
Kubuntu 11.10/12.04/12.10 of the KDE libraries, particularly KFileDialog. When 
trying to compile I have the problem of Can not mix incompatible Qt library. 
I believe you can not compile for Qt5 if KDE is not recompiled for Qt5, correct?

Marcelo Estanislau Geyer
SNET Tecnologia
  ___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Problems porting to Qt5

2013-01-14 Thread Till Oliver Knoll
Am 04.01.2013 um 20:44 schrieb Marcelo Estanislau Geyer esta...@outlook.com:

 I have an application that is compiled to Qt4.8.3 and I am interested in 
 porting to Qt5. The problem is that I need to run this system and depend on 
 Kubuntu 11.10/12.04/12.10 of the KDE libraries, particularly KFileDialog. 
 When trying to compile I have the problem of Can not mix incompatible Qt 
 library. I believe you can not compile for Qt5 if KDE is not recompiled for 
 Qt5, correct?

Correct. Unless you compile a bleeding edge version of KDE yourself with Qt 5 
you have to wait until KDE is properly ported to Qt 5.

Also check the mailing list archive. The exact same question had been asked a 
couple of days ago.

Cheers,
  Oliver___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] animation on font.pixelSize

2013-01-14 Thread Thomas Senyk
On Fri, January 11, 2013 10:21:11 Jason H wrote:
 Try scale, not pixelSize.
 http://blog.qt.digia.com/blog/2011/07/15/text-rendering-in-the-qml-scene-gra
 ph/ scalable, sub-pixel positioned and sub-pixel antialiased… and at almost
 no cost.
 

Sure, I can use scale.
Problem is, scale doesn't behave as nicely as pixelSize in terms of position 
and size (x,y, anchors,...)

From an feature/behavior point of view their isn't much to gain from having 
different implementations for pixel-size and scale 
... both end up with a glyph being painted with a specific GLsize to a 
specific position using the same glyph-texture-atlas
 ... or not? :)


I'm just trying to understand :)

Greets
Thomas
 

 

 
 
 
  From: Thomas Senyk thomas.se...@pelagicore.com
 To: interest@qt-project.org
 Sent: Friday, January 11, 2013 10:59 AM
 Subject: [Interest] animation on font.pixelSize
 
 Hi,
 
 as with Quick2.0 we got the very nice DistanceField-font-rendering.
 So in theory animations on Text{ font.pixelSize } should be fairly cheap,
 right?
 
 With the following code snipped I got performance problems never the less:
 
 import QtQuick 2.0
 Text {
 id: text
 width: 500
 height: 100
 text: Test font.pixelSize animation
 NumberAnimation {
 running: true
 loops: Animation.Infinite
 duration: 2000
 target: text
 property: font.pixelSize
 from: 10
 to: 90
 }
 }
 
 
 The strange thing is, on my desktop he has 100% cpu load for the first 2-4
 loops.
 ... I wild guess: It looks like it needs to render the font-glyphs for
 each(?) size and after a few cycles it got all of them rendered and
 cached...? (it can't render all of them in the first loop as he jumps due
 to bad performance)
 
 On embedded (raspberry pi) I get 20% load all the time.
 
 On desktop I got:
 - intel xeon 3ghz
 - nvidia 8600gts
 - Qt5 checkout from this week, branch: stable
 - xcb as platform backend (using freetype and fontconfig)
 
 On the raspberry  I got:
   - BCM 2835 (slow ARM11 cpu, fast VideoCore IV GPU)
   - eglfs as platform backend
   - no fontconfig - QBasicFontDatabase
 (If it helps I can do a fontconfig build)
 
 Is this know? Can anyone verify?
 And possible explanation? .. maybe my Qt5 build on desktop is flawed?
 
 
 (If this belongs to developm...@qt-project.org, feel free to move)
 
 Greets
 Thomas
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] animation on font.pixelSize

2013-01-14 Thread Samuel Rødal
On 01/11/2013 04:59 PM, Thomas Senyk wrote:
 Hi,

 as with Quick2.0 we got the very nice DistanceField-font-rendering.
 So in theory animations on Text{ font.pixelSize } should be fairly cheap,
 right?

 With the following code snipped I got performance problems never the less:

 import QtQuick 2.0
 Text {
  id: text
  width: 500
  height: 100
  text: Test font.pixelSize animation
  NumberAnimation {
  running: true
  loops: Animation.Infinite
  duration: 2000
  target: text
  property: font.pixelSize
  from: 10
  to: 90
  }
 }


 The strange thing is, on my desktop he has 100% cpu load for the first 2-4
 loops.
 ... I wild guess: It looks like it needs to render the font-glyphs for each(?)
 size and after a few cycles it got all of them rendered and cached...?
 (it can't render all of them in the first loop as he jumps due to bad
 performance)

 On embedded (raspberry pi) I get 20% load all the time.

 On desktop I got:
   - intel xeon 3ghz
   - nvidia 8600gts
   - Qt5 checkout from this week, branch: stable
   - xcb as platform backend (using freetype and fontconfig)

 On the raspberry  I got:
- BCM 2835 (slow ARM11 cpu, fast VideoCore IV GPU)
- eglfs as platform backend
- no fontconfig - QBasicFontDatabase
 (If it helps I can do a fontconfig build)

 Is this know? Can anyone verify?
 And possible explanation? .. maybe my Qt5 build on desktop is flawed?

Try adding renderType: Text.QtRendering in the Text element. On 
desktop it might be that Text.NativeRendering is the default (which does 
not use distance field glyphs but texture glyphs cached based on the 
pixel size, maybe even on the scale?).

--
Samuel

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] [interest] Qt Installer Framework: How good is that?

2013-01-14 Thread Karsten Heimrich

Hi,

On 12.01.2013 19:14, Soroush Rabiei wrote:

Greetings all

I've been introduced to Qt Installer Framework today, Unfortunately 
can't find detailed descriptions about that. There is only a brief 
documentation.   I have some questions.


1. Documentation says it's cross-platform. That's great! But does it 
implement platform-specific tasks properly? Mainly registry-related 
operations on Windows and its equivalent (text-based configuration 
stuff) on Linux. Something like QSettings do.


Have you checked this: 
http://doc-snapshot.qt-project.org/qtifw-1.2/index.html


2. Is an installer based on this tool translatable? I would like to 
use native dialogs instead of system dialogs to make my installer to 
run in my native language.



The installer will be translatable, yes.

3. Inno setup has some great features (7z compression, customization, 
etc.) Is QIF worth it to be a replacement of inno?


Never heard of that one. A short look reveals it supports windows only, 
while we target all major platforms.



Regards,

--
Karsten Heimrich
Senior Software Engineer
Email: karsten.heimr...@digia.com
Tel: +49 30 63 92 32 55   Mobile: +49 17 07 87 06 78

Digia Germany GmbH
Rudower Chausse 13, 12489 D-Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Anja Wasenius
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 
144331 B,

Digia Germany is a group company of Digia Plc,
Valimotie 21, FI-00380 Helsinki Finland
Visit us at: www.digia.com
--
PRIVACY AND CONFIDENTIALITY NOTICE
This message and any attachments are intended only for use by the named 
addressee and may contain privileged and/or confidential information. If you 
are not the named addressee you should not disseminate, copy or take any action 
in reliance on it. If you have received this message in error, please contact 
the sender immediately and delete the message and any attachments accompanying 
it. Digia Germany GmbH and Digia Plc do not accept liability for any 
corruption, interception, amendment, tampering or viruses occurring to this 
message.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] [interest] Qt Installer Framework: How good is that?

2013-01-14 Thread Uwe Rathmann
Hi,

I have to admit that I completely missed the existence of the installer 
framework so far. Before starting further investigations, please let me 
ask if it is a possible solution for me:

I'm maintainer of the Qwt ( http://qwt.sf.net ) library and thought about 
offering binary packages that are compatible to the offical Qt SDKs.

These packages need to be for Windows only as on other platforms binary 
packages are offered by distributors and/or users are experienced enough 
for building and installing from source code.

Basically all what needs to be done is to copy some files ( libraries, 
headers, documentatio, prf files - but no application or parts from the 
Qt installation ) into some install directory and maybe:

- adjusting the PATH variable
- adjusting QT_PLUGIN_PATH
- configuring qmake ( setting QMAKEFEATURES )

Uwe


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt 5 Cross compile issue in freescale IMX53 Board

2013-01-14 Thread Thiago Macieira
On domingo, 30 de dezembro de 2012 12.13.58, S. Muthaiah wrote:
 Hi All,
 
 I successfully compiled Qt 5.0.0 for IMx53 Board.
 
 I configured with -eglfs and -opengl es2 options.
 My cross compilation was successful.
 
 When I run application , i got below error message.
 
 ./hellogl_es2 -platform -eglfs
 
 Unable to handle kernel paging request at virtual address 0505d004

That's a kernel bug. That is not a Qt issue. Please take it up with whoever 
provided you with that kernel.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center


signature.asc
Description: This is a digitally signed message part.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Announcing Doxyqml

2013-01-14 Thread Tomasz Siekierda
On 14 January 2013 10:43, Aurélien Gâteau agat...@kde.org wrote:
 Cool, net me know how it works for you.

 There are no plan as of now to push it into Doxygen. Doing so would require
 a rewrite in C++, which is not something I plan to do at the moment. Note
 that Doxyqml is now mentioned on Doxygen extension page [1].

 Aurélien

Nice, good to know.

I did a quick test and it seems to be working fine. I'll have to
document my QML now, but that helper is exactly what I needed. Thank
you once again (you can check out the project here:
https://github.com/sierdzio/closecombatfree).

I noticed, however, that it does not add subcomponents to the
documentation. For example:
import Blah 1.0

/*!
  This will be added to the docs.
 */
Item {
  //! This will also show up
  property string blah: Foo

  /*!
   Alas, this will not make it into the docs.
   */
  Text {
 id: bar
  }
}

Is that intended behaviour?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] [interest] Qt Installer Framework: How good is that?

2013-01-14 Thread Soroush Rabiei
On Mon, Jan 14, 2013 at 4:38 PM, Karsten Heimrich 
karsten.heimr...@digia.com wrote


 Have you checked this:
 http://doc-snapshot.qt-project.org/qtifw-1.2/index.html


Yes. In fact, that link was the only documentation I found about QIF.


 The installer will be translatable, yes.


This will make a huge advantage for QIF of over Inno. Later one also
supports i|18n, though only Windows Codepages, not UTF 8.
I'm going to port my installers from Inno to QIF if it supports registry
and PATH operations on Windows.

Note: Sorry, I did it again! Sent mail to you instead of list. That's
gmail's default  :P

Cheers
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] animation on font.pixelSize

2013-01-14 Thread Thomas Senyk
On Mon, January 14, 2013 12:54:56 Samuel Rødal wrote:
 On 01/11/2013 04:59 PM, Thomas Senyk wrote:
  Hi,
  
  as with Quick2.0 we got the very nice DistanceField-font-rendering.
  So in theory animations on Text{ font.pixelSize } should be fairly cheap,
  right?
  
  With the following code snipped I got performance problems never the less:
  
  import QtQuick 2.0
  Text {
  
   id: text
   width: 500
   height: 100
   text: Test font.pixelSize animation
   NumberAnimation {
   
   running: true
   loops: Animation.Infinite
   duration: 2000
   target: text
   property: font.pixelSize
   from: 10
   to: 90
   
   }
  
  }
  
  
  The strange thing is, on my desktop he has 100% cpu load for the first 2-4
  loops.
  ... I wild guess: It looks like it needs to render the font-glyphs for
  each(?) size and after a few cycles it got all of them rendered and
  cached...? (it can't render all of them in the first loop as he jumps due
  to bad performance)
  
  On embedded (raspberry pi) I get 20% load all the time.
  
  On desktop I got:
- intel xeon 3ghz
- nvidia 8600gts
- Qt5 checkout from this week, branch: stable
- xcb as platform backend (using freetype and fontconfig)
  
  On the raspberry  I got:
 - BCM 2835 (slow ARM11 cpu, fast VideoCore IV GPU)
 - eglfs as platform backend
 - no fontconfig - QBasicFontDatabase
  
  (If it helps I can do a fontconfig build)
  
  Is this know? Can anyone verify?
  And possible explanation? .. maybe my Qt5 build on desktop is flawed?
 
 Try adding renderType: Text.QtRendering in the Text element. On
 desktop it might be that Text.NativeRendering is the default (which does
 not use distance field glyphs but texture glyphs cached based on the
 pixel size, maybe even on the scale?).

No the default was already renderType: Text.QtRendering

Changing the property does work, as the font is rendered differently with 
renderType: Text.NativeRendering
(Especially during the animation one can see how the font is changing with 
renderType: Text.NativeRendering, e.g. line-width/boldness is jumping)


The performance behavior seams to be the same.
First 2-4 cycles it's 100% cpu then is drops to 5%




Again from the other side of this thread:
I'm not searching for a quick work-around (e.g. scale), I rather want to 
understand why this is happening, why it's different on my rpi and if this is 
a bug or a wanted/accepted behavior.


Greets
Thomas

p.s.: (a bit off-topic)
@ cached based even on scale
Scale with renderType: Text.NativeRendering is similar as with Qt4/Quick1:
He renders with the specified font size and scales it during gl-painting
 - font.pixelSize: 1; scale: 30 looks extremely unreadable.

Where renderType: Text.QtRendering produces the same output with
font.pixelSize: 1; scale: 30; and font.pixelSize: 30; scale: 1;
(not counting the 'Text' elements geometry properties)




 
 --
 Samuel
 
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt 5 Cross compile issue

2013-01-14 Thread Thomas Senyk
On Mon, January 14, 2013 07:42:30 Thiago Macieira wrote:
 On quinta-feira, 27 de dezembro de 2012 14.47.00, S. Muthaiah wrote:
  /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux
  -g
  nueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-lin
  ux- gnueabi/bin/ld: crt1.o: No such file: No such file or directory
 
 Looks like you did not pass a correct sysroot.

It's even worth ... it's ltib ... ;)

The problem originates from the fact that the ltib rootfs doesn't contain 
basic building blocks (e.g. crt1.o).

The ltib-freescale-linaro toolchain on the other hand does ... and finds them 
automatically based on the other options you give him (e.g. -mthumb, -mfloat-
abi=...)

So you can't use gcc's --sysroot, because then you'll overwrite the 
automatically-finding-my-personal-toolchain-sysroot-algorithm.

You still can use configure's -sysroot by additional using '-no-gcc-sysroot'


In the end Thiago is right anyway: wrong sysroot :)
... sysroot should point to your build-filesystem ... if you're using ltib, 
your only option is to use your rootfs.



 
 Tell us the command-line that compiles a C++ Hello World for that
 particular toolchain and sysroot.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt 5 Cross compile issue in freescale IMX53 Board

2013-01-14 Thread Thomas Senyk
On Sun, December 30, 2012 12:13:58 S. Muthaiah wrote:
 Hi All,
 
 I successfully compiled Qt 5.0.0 for IMx53 Board.
 
 I configured with -eglfs and -opengl es2 options.
 My cross compilation was successful.
 
 When I run application , i got below error message.
 
 ./hellogl_es2 -platform -eglfs
(you have a - before 'eglfs', I guess that's a copypast error?)

I hereby forbid the usage of hellogl_es2 and in combination with eglfs!!;)
It's not working, it's not supported, it's not useful!
It's just plain wrong!!

 
 Unable to handle kernel paging request at virtual address 0505d004
 pgd = 99cc
 [0505d004] *pgd=
 Internal error: Oops: 805
 3https://bugreports.qt-project.org/browse/QTQAINFRA-590#3 PREEMPT last
 sysfs file: /sys/devices/platform/fsl-ehci.1/usb2/2-0:1.0/uevent Modules
 linked in:
 CPU: 0 Tainted: G D (2.6.35.3-1129-g691c08a #668)
 PC is at kgsl_drawctxt_create+0x17c/0xb4c
 LR is at 0x505d018
 pc : [802e864c] lr : [0505d018] psr: 4013
 sp : 9807ddf0 ip : 0505d01c fp : 0505d004
 r10: 0505d00c r9 : 0505d008 r8 : 0505d010
 r7 : 0505d014 r6 :  r5 : 807e34d8 r4 : 807e14a0
 r3 : 0505d000 r2 : 0505c000 r1 : 0505d034 r0 : 0505d020
 Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
 Control: 10c5387d Table: 89cc0019 DAC: 0015
 Process hellogl_es2 (pid: 3762, stack limit = 0x9807c2e8)
 Stack: (0x9807ddf0 to 0x9807e000)
 dde0: 9c18dd80 800c5984 9d4fc400 0505d024
 de00: 9d516380 800c5d38 807e31f0 1d50 000e 9d4fc400 8000
 0505d02c
 
 For animatedtiles example,
 
 I got =
 
 olor formats don't match. Falling back to copy forward swap.
 Color formats don't match. Falling back to copy forward swap.
 Color formats don't match. Falling back to copy forward swap.
 Color formats don't match. Falling back to copy forward swap.
 Color formats don't match. Falling back to copy forward swap.
 Color formats don't match. Falling back to copy forward swap.
 Color formats don't match. Falling back to copy forward swap.
 QOpenGLShader::link: Link was successful.
 
 Color formats don't match. Falling back to copy forward swap.
 Color formats don't match. Falling back to copy forward swap.
 Color formats don't match. Falling back to copy forward swap.
 
 Please suggest me how to solve the above problem.
 
 Regards,
 S.Muthaiah

First thing you should make sure is that you're not using the opengl 
graphicssystem, but rather just a opengl viewport on the QGraphicsView... or 
go directly to scengraph!

I personal recommend qmlscene+Quick2.0 (or qmlview -opengl) to start with.
Alternatively you can alter the AnimatedTiles source-code to set a proper 
QGLWidget as viewport.



IF(!) you still got the same errors, let us know.

 
 
 
 From: S. Muthaiah
 Sent: Thursday, December 27, 2012 8:17 PM
 To: 'interest@qt-project.org'
 Cc: 'Thiago Macieira'
 Subject: RE: Qt 5 Cross compile issue
 
 
 Hi,
 
 
 
 I installed XCB in sysroot directory.
 
 And also I included sysroot in configure command like this,
 
 
 
 ./configure -v -prefix /usr/local/Qt-5.0.0 -xplatform linux-g++-mx5x
 -opensource -nomake examples -nomake demos -nomake tests -no-opengl -qt-xcb
 -qpa xcb -no-directfb -release -shared -fast -no-largefile
 -no-accessibility -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci
 -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-tds
 -no-c++11 -no-javascript-jit -qml-debug -no-sse2 -no-sse3 -no-ssse3
 -no-sse4.1 -no-sse4.2 -no-avx -no-avx2 -no-neon -no-mips_dsp -no-mips_dspr2
 -qt-zlib -qt-libpng -qt-libjpeg -no-openssl  -no-eglfs -qt-pcre
 -optimized-qmake -no-nis -no-cups -no-iconv -no-icu -no-strip -no-dbus
 -no-separate-debug-info -no-kms -no-glib  -I/usr/include/freetype2 -sysroot
 /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-
 gnueabi/arm-fsl-linux-gnueabi/sysroot/
 
 
 
 
 
 When I execute above command ,I got some other erros like,
 
 
 
 /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-g
 nueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-
 gnueabi/bin/ld: crt1.o: No such file: No such file or directory
 
 
 
 /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-g
 nueabi/bin/arm-linux-g++ -ffast-math -Wl,-O1 -o floatmath floatmath.o  
 -L/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linu
 x-gnueabi/arm-fsl-linux-gnueabi/sysroot/lib
 --sysroot=/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-
 fsl-linux-gnueabi/arm-fsl-linux-gnueabi/sysroot/
 
 /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-g
 nueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-
 gnueabi/bin/ld: crt1.o: No such file: No such file or directory
 
 collect2: ld returned 1 exit status
 
 
 
 Please suggest me how to solve the above error.
 
 
 
 
 
 Regards,
 
 S.Muthaiah
 
 
 
 -Original Message-
 From: Thiago Macieira [mailto:thiago.macie...@intel.com]
 Sent: 

Re: [Interest] Announcing Doxyqml

2013-01-14 Thread Aurélien Gâteau
Le lundi 14 janvier 2013 17:04:52 Tomasz Siekierda a écrit :
 On 14 January 2013 10:43, Aurélien Gâteau agat...@kde.org wrote:
  Cool, net me know how it works for you.
  
  There are no plan as of now to push it into Doxygen. Doing so would
  require
  a rewrite in C++, which is not something I plan to do at the moment. Note
  that Doxyqml is now mentioned on Doxygen extension page [1].
  
  Aurélien
 
 Nice, good to know.
 
 I did a quick test and it seems to be working fine. I'll have to
 document my QML now, but that helper is exactly what I needed. Thank
 you once again (you can check out the project here:
 https://github.com/sierdzio/closecombatfree).
 
 I noticed, however, that it does not add subcomponents to the
 documentation. For example:
 import Blah 1.0
 
 /*!
   This will be added to the docs.
  */
 Item {
   //! This will also show up
   property string blah: Foo
 
   /*!
Alas, this will not make it into the docs.
*/
   Text {
  id: bar
   }
 }
 
 Is that intended behaviour?

Yes, this is intended. If I am not mistaken, there is no way to use the bar 
element outside of the component, so it is an implementation detail. Or did I 
miss something obvious?

Aurélien
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] I.MX6 and QT5

2013-01-14 Thread qtnext
Hi,

is there anyone using I.MX6 and Qt5 (quick2 / OpenGL / Multimedia playback
) ? Is it easy to use ? is there any ressource to start ?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] I.MX6 and QT5

2013-01-14 Thread Eric Nelson
On 01/14/2013 02:31 PM, qtnext wrote:
 Hi,

 is there anyone using I.MX6 and Qt5 (quick2 / OpenGL / Multimedia
 playback ) ? Is it easy to use ? is there any ressource to start ?


Michael Grunditz has been working on this, but I don't know
the status.

http://mickens.blogspot.com/2012_08_01_archive.html


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] QTextEdit is too slow - hints needed

2013-01-14 Thread JM
Hi all,

I am using QTextEdit to display log text files, just like the Unix command tail 
-f. 
My current implementation just displays the last 5 lines and then follows the 
growing
log file, displaying lines as they come.
Now, I am asked to make QTextEdit display the whole file when the user opens a 
file.
A log file can be very large. I tested it with a 2mbyte file, and inserting 
data to QTextEdit
caused the GUI to freeze for almost 1 minute.
This is not acceptable, and I am looking for a solution. I have the following 
questions:

-) what is the fastest way to insert lots of text into QTextEdit?
-) should I go to the route of implementing my own QTextDisplay? If so, 
should I use QAbstractScrollArea as class base? Any pointer to how to use it?

Thanks in advance,
JM
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QTextEdit is too slow - hints needed

2013-01-14 Thread 1+1=2
Hi,

You should use QPlainTextEdit instead of QTextEdit.

Regards.


On Tue, Jan 15, 2013 at 8:16 AM, JM johnmil...@email.it wrote:

 Hi all,

 I am using QTextEdit to display log text files, just like the Unix command
 tail -f.
 My current implementation just displays the last 5 lines and then follows
 the growing
 log file, displaying lines as they come.
 Now, I am asked to make QTextEdit display the whole file when the user
 opens a file.
 A log file can be very large. I tested it with a 2mbyte file, and
 inserting data to QTextEdit
 caused the GUI to freeze for almost 1 minute.
 This is not acceptable, and I am looking for a solution. I have the
 following questions:

 -) what is the fastest way to insert lots of text into QTextEdit?
 -) should I go to the route of implementing my own QTextDisplay? If so,
 should I use QAbstractScrollArea as class base? Any pointer to how to use
 it?

 Thanks in advance,
 JM
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QTextEdit is too slow - hints needed

2013-01-14 Thread William Hallatt
I've battled with the same issue. I still haven't got a final solution, but
the following did help me speed things up a bit (using QPlainTextEdit),:

m_yourPlainTextEdit-setUpdatesEnabled( false );   // disables receipt of
paint events
m_yourPlainTextEdit-setPlainText( lotsOfText );
m_yourPlainTextEdit-setUpdatesEnabled( false );   // enables receipt of
paint events

(you can obviously refer to the API documentation for further details re
setUpdatesEnabled).

Hope that helps!

Regards,
William Hallatt


On 15 January 2013 02:19, 1+1=2 dbzhang...@gmail.com wrote:

 Hi,

 You should use QPlainTextEdit instead of QTextEdit.

 Regards.


 On Tue, Jan 15, 2013 at 8:16 AM, JM johnmil...@email.it wrote:

 Hi all,

 I am using QTextEdit to display log text files, just like the Unix
 command tail -f.
 My current implementation just displays the last 5 lines and then follows
 the growing
 log file, displaying lines as they come.
 Now, I am asked to make QTextEdit display the whole file when the user
 opens a file.
 A log file can be very large. I tested it with a 2mbyte file, and
 inserting data to QTextEdit
 caused the GUI to freeze for almost 1 minute.
 This is not acceptable, and I am looking for a solution. I have the
 following questions:

 -) what is the fastest way to insert lots of text into QTextEdit?
 -) should I go to the route of implementing my own QTextDisplay? If so,
 should I use QAbstractScrollArea as class base? Any pointer to how to use
 it?

 Thanks in advance,
 JM
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest



 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] animation on font.pixelSize

2013-01-14 Thread Samuel Rødal
On 01/14/2013 06:04 PM, Thomas Senyk wrote:
 On Mon, January 14, 2013 12:54:56 Samuel Rødal wrote:
 On 01/11/2013 04:59 PM, Thomas Senyk wrote:
 Hi,

 as with Quick2.0 we got the very nice DistanceField-font-rendering.
 So in theory animations on Text{ font.pixelSize } should be fairly cheap,
 right?

 With the following code snipped I got performance problems never the less:

 import QtQuick 2.0
 Text {

   id: text
   width: 500
   height: 100
   text: Test font.pixelSize animation
   NumberAnimation {

   running: true
   loops: Animation.Infinite
   duration: 2000
   target: text
   property: font.pixelSize
   from: 10
   to: 90

   }

 }


 The strange thing is, on my desktop he has 100% cpu load for the first 2-4
 loops.
 ... I wild guess: It looks like it needs to render the font-glyphs for
 each(?) size and after a few cycles it got all of them rendered and
 cached...? (it can't render all of them in the first loop as he jumps due
 to bad performance)

 On embedded (raspberry pi) I get 20% load all the time.

 On desktop I got:
- intel xeon 3ghz
- nvidia 8600gts
- Qt5 checkout from this week, branch: stable
- xcb as platform backend (using freetype and fontconfig)

 On the raspberry  I got:
 - BCM 2835 (slow ARM11 cpu, fast VideoCore IV GPU)
 - eglfs as platform backend
 - no fontconfig - QBasicFontDatabase

 (If it helps I can do a fontconfig build)

 Is this know? Can anyone verify?
 And possible explanation? .. maybe my Qt5 build on desktop is flawed?

 Try adding renderType: Text.QtRendering in the Text element. On
 desktop it might be that Text.NativeRendering is the default (which does
 not use distance field glyphs but texture glyphs cached based on the
 pixel size, maybe even on the scale?).

 No the default was already renderType: Text.QtRendering

 Changing the property does work, as the font is rendered differently with
 renderType: Text.NativeRendering
 (Especially during the animation one can see how the font is changing with
 renderType: Text.NativeRendering, e.g. line-width/boldness is jumping)


 The performance behavior seams to be the same.
 First 2-4 cycles it's 100% cpu then is drops to 5%


 Again from the other side of this thread:
 I'm not searching for a quick work-around (e.g. scale), I rather want to
 understand why this is happening, why it's different on my rpi and if this is
 a bug or a wanted/accepted behavior.

I don't understand it, the distance field text should not be 
re-generated based on pixelSize. Maybe there's something else going on, 
since it's on desktop you could run it through callgrind perhaps :)

 Greets
 Thomas

 p.s.: (a bit off-topic)
 @ cached based even on scale
 Scale with renderType: Text.NativeRendering is similar as with Qt4/Quick1:
 He renders with the specified font size and scales it during gl-painting
   - font.pixelSize: 1; scale: 30 looks extremely unreadable.

 Where renderType: Text.QtRendering produces the same output with
 font.pixelSize: 1; scale: 30; and font.pixelSize: 30; scale: 1;
 (not counting the 'Text' elements geometry properties)

Good to know :)

--
Samuel

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest