Re: [Development] Qt5 missing features

2012-04-10 Thread morten.sorvig
On Apr 9, 2012, at 8:02 PM, ext BogDan wrote: - platform menu APIs. Current APIs are not enough for Android platform (same for Mac OSX?), I need a way to *manage* from platform plagin the menubar and the context menus, meaning that Qt must show/hide the menu(bar) using the platform plugin. Ther

Re: [Development] Qt5 missing features

2012-04-10 Thread jason.mcdonald
On Tuesday 10 April 2012 Christoph Feck wrote: > Instead of rushing half-baked APIs, the 5.0 release should be a solid > base from which new and well designed APIs can be launched. The less > APIs are included into 5.0, the lower the frustation will be when it > is later discovered that they are il

[Development] Adoption of virtual_hook()

2012-04-10 Thread jan-arve.saether
The "Little Manual of API Design" [1] recommends adding a virtual_hook() that can be used later on if we need to extend the class without BIC. Lots of classes does not have this hook. Isn't this something we should fix before Qt5 is out? Jan-Arve [1]: Little Manual of API Design, http://chaos

Re: [Development] Qt5 missing features

2012-04-10 Thread bradley.hughes
On Apr 11, 2012, at 1:20 AM, ext Christoph Feck wrote: > Instead of rushing half-baked APIs, the 5.0 release should be a solid > base from which new and well designed APIs can be launched. The less > APIs are included into 5.0, the lower the frustation will be when it > is later discovered that

Re: [Development] Qt5 missing features

2012-04-10 Thread Christoph Feck
On Monday 09 April 2012 20:02:49 BogDan wrote: > First and foremost congrats for Qt5 alpha release, it is great to > see Qt moving forward. > [...] > IMHO both QML and classic widgets should use a single theme manager > to draw the widgets, of course every single platform should be able > to creat

Re: [Development] Painting an image onto itself

2012-04-10 Thread Thiago Macieira
On quarta-feira, 11 de abril de 2012 01.04.10, Christoph Feck wrote: > On Wednesday 11 April 2012 00:52:33 Thiago Macieira wrote: > > The guarantees we give change how we can optimise this code. I'll > > be satisfied if we require that no single pixel is both source and > > destination. > > I have

Re: [Development] Painting an image onto itself

2012-04-10 Thread Christoph Feck
On Wednesday 11 April 2012 00:52:33 Thiago Macieira wrote: > The guarantees we give change how we can optimise this code. I'll > be satisfied if we require that no single pixel is both source and > destination. I have seen code that do tiled fills by first blitting a source image (lets say 100x10

Re: [Development] Painting an image onto itself

2012-04-10 Thread Thiago Macieira
On terça-feira, 10 de abril de 2012 23.08.26, André Pönitz wrote: > But I am not sure that kind of guarantee needs to be given. > > Would it be really needed in practice? How many occurences of such > code are there in Qt/Qt Creator? The guarantees we give change how we can optimise this code. I'l

Re: [Development] Qt5 missing features

2012-04-10 Thread Girish Ramakrishnan
Hey BogDan, On Mon, Apr 9, 2012 at 11:02 AM, BogDan wrote: > IMHO these features are too important to miss the opportunity to include them > in Qt5.0. > Kindly please consider to include these features in final Qt5.0, I don't know > if it will be a second chance to include them without any compro

Re: [Development] QPixmap::fill( const QWidget *, ... )

2012-04-10 Thread Uwe Rathmann
On 04/10/2012 09:43 PM, Andreas Aardal Hanssen wrote: > Den 21:10 10. april 2012 skrev Uwe Rathmann > følgende: > > > You want to take a screenshot of the widget from within the widget's > own paintEvent? No, I need a replacement for QPixmap::fill() - like you ca

Re: [Development] Painting an image onto itself

2012-04-10 Thread André Pönitz
On Tue, Apr 10, 2012 at 05:12:51PM -0300, Thiago Macieira wrote: > On terça-feira, 10 de abril de 2012 21.46.09, Andreas Aardal Hanssen wrote: > > You want to take a screenshot of the widget from within the widget's own > > paintEvent? That cannot possibly work. Or even if it did, the result would

[Development] Painting an image onto itself

2012-04-10 Thread Thiago Macieira
On terça-feira, 10 de abril de 2012 21.46.09, Andreas Aardal Hanssen wrote: > You want to take a screenshot of the widget from within the widget's own > paintEvent? That cannot possibly work. Or even if it did, the result would > be completely non-deterministic. The painting code required to take t

Re: [Development] QPixmap::fill( const QWidget *, ... )

2012-04-10 Thread Andreas Aardal Hanssen
Den 21:10 10. april 2012 skrev Uwe Rathmann følgende: > On 04/10/2012 08:03 PM, Uwe Rathmann wrote:Unfortunately QWidget::render > doesn't work. In my use case I'm inside of > QWidget::paintEvent and using QWidget::render leads to a recursive call > of QWidget::paintEvent. You want to take a scr

[Development] Bug workflow in QtCore

2012-04-10 Thread Thiago Macieira
Hello No one has yet posted workflows for dealing with bug reports, so I thought I'd start with QtCore. Most of the "Core: *" components are assigned directly to me, but there are a few that aren't. The default assignees are expected to do initial triaging of the bug reports (default state is Rep

Re: [Development] QPixmap::fill( const QWidget *, ... )

2012-04-10 Thread Uwe Rathmann
On 04/10/2012 08:03 PM, Uwe Rathmann wrote: > >> Maybe QWidget::render() with DrawWindowBackground >> and no DrawChildren can be used instead? > Guess this will work - I will try it. Unfortunately QWidget::render doesn't work. In my use case I'm inside of QWidget::paintEvent and using QWidget::re

Re: [Development] QPixmap::fill( const QWidget *, ... )

2012-04-10 Thread Uwe Rathmann
On 04/10/2012 06:47 PM, Samuel Rødal wrote: > What's your use case? QwtPlot is a composite widget, where one of its children is a canvas ( QWidget ) to display the data. For this special widget the Qt::WA_OpaquePaintEvent attribute is enabled and therefore I have to render the background inside

Re: [Development] QPixmap::fill( const QWidget *, ... )

2012-04-10 Thread Olivier Goffart
On Tuesday 10 April 2012 18:47:37 Samuel Rødal wrote: > On 04/10/2012 06:40 PM, ext Uwe Rathmann wrote: > > void QPixmap::fill(const QWidget *, ... ); > > > > In the documentation it is qualified as obsolete - left for > > compatibility issues only - but in fact it is not implemented at all. > >

Re: [Development] QPixmap::fill( const QWidget *, ... )

2012-04-10 Thread Samuel Rødal
On 04/10/2012 06:40 PM, ext Uwe Rathmann wrote: > void QPixmap::fill(const QWidget *, ... ); > > In the documentation it is qualified as obsolete - left for > compatibility issues only - but in fact it is not implemented at all. > > I could copy and strip down the code from Qt 4.8 ( fortunately

[Development] QPixmap::fill( const QWidget *, ... )

2012-04-10 Thread Uwe Rathmann
Hi all, I started to play with Qwt on Qt5 and one of the incompatibilities I have to solve is that the following method is gone: void QPixmap::fill(const QWidget *, ... ); In the documentation it is qualified as obsolete - left for compatibility issues only - but in fact it is not implemented

[Development] Have you been DECLINED at Qt Contributors Summit?

2012-04-10 Thread Quim Gil
Sorry for the extra emails on Qt Contributors Summit registration. The correct way to register is through the "REQUEST AN INVITATION" link at http://qt-project.org/groups/qt-contributors-summit-2012/wiki Those clicking directly on "Join group" are being declined, BUT THIS DOESN'T MEAN YOU ARE D

Re: [Development] QML and SVG = unsupported image format

2012-04-10 Thread alessandro.portale
Sorry. I was too quick, here. The svg is apparently not used directly by the example. Looks like you found a report-worthy bug. PS: And sorry for the top-quote. From: development-bounces+alessandro.portale=nokia@qt-project.org [development-bounces+ale

Re: [Development] QML and SVG = unsupported image format

2012-04-10 Thread alessandro.portale
This really looks like a bug to me. And according to the official QML examples, BorderImage should support svg images. See: http://doc.qt.nokia.com/main-snapshot/declarative-imageelements-borderimage.html Could you test whether that example works in your setup? ___

Re: [Development] QML and SVG = unsupported image format

2012-04-10 Thread Daniel Kreuter
Ok I found a solution. Instead of BorderImage I only used Image, and now he is able to load SVG Images. Maybe this is a bug? Or is it a feature??? On Tue, Apr 10, 2012 at 9:10 AM, Daniel Kreuter wrote: > Hello there, > > I have a strange behavior. When I start my program out of Qt Creator, > all

[Development] Help Me

2012-04-10 Thread Igor Mironchik
Good day. My name is Igor Mironchik. I live in Belarus. After graduating I worked as a programmer in the company "Intervale". Everything was just wonderful. I had a good salary, a wonderful team. But in March 2010 I had to resign from the company. And from that moment my life went on down. Se

[Development] QML and SVG = unsupported image format

2012-04-10 Thread Daniel Kreuter
Hello there, I have a strange behavior. When I start my program out of Qt Creator, all Images are visible. Starting it from the Windows Explorer the SVG Images are missing. On my development computer it works in Qt Creator, but on the target computer when I start my program out of Qt Creator, I ge