Re: [Development] RFC: more liberal 'auto' rules?

2015-12-14 Thread Olivier Goffart
On Saturday 5. December 2015 00:57:23 Bubke Marco wrote:
> > You are basically assuming that there's no need for you to write sane
> > code to start with because during your development work you have a
> > decent IDE to help you out. This assumption is wrong, independent
> > of the existence of such an IDE.
> > 
> > Since the discussion here is about what to use in Qt, the whole Qt
> > development workflow matters. A lot of Qt code reading happens on Gerrit
> > without IDE features at hand. The context there usually just a few lines.
> > The appropriateness of an expression 'list[x]' is impossible to judge
> > on Gerrit after applying an 'Almost always auto' policy.
> 
> Oswald and I spoke about using the clang code model to provide the
> information to gerrit too. It should be not that hard.
> 
> But you have to import the code in the IDE anyway because of the missing
> context.  For non trivial change review the calling context is far to
> important to be ignored. A html code browser could change that but we don't
> have one in gerrit.

I have made a user script to integrate http://code.woboq.org/qt5/ with gerrit.

With that script, you can just click on a function in the code on gerrit and 
it will lookup in the code.woboq.org database and show the signature in a 
tooltip and links to code.woboq.org. (It shows a disambiguation popup if there 
are several possibilities.)
It also makes the filename in the header of the diff clickable to the 
corresponding file on code.woboq.org

Look at this screenshot: http://i.imgur.com/Q3a2ixz.png 
When you see the signature you can see the return type. And had 'auto' been 
used there, we would have known it's a QUrl. 

This does not work for all functions, but should already be of a great help 
when reviewing.

The user script is there: 
   https://code.woboq.org/qt-gerrit.user.js
You can use it with the Greasmonkey extension on Firefox or the Tampermonkey 
extension on Chrome, or whatever equivalent extension for your browser.

If qt-project's admins think it's a good idea they could enable it by default.

-- 
Olivier 

Woboq - Qt services and support - http://woboq.com - http://code.woboq.org

___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] qtdeclarative 5.6 CI status

2015-12-14 Thread Hausmann Simon
The crisis is over and resolved - happy staging :)


Simon

  Original Message
From: Hausmann Simon
Sent: Monday, December 14, 2015 15:34
To: development@qt-project.org
Subject: [Development] qtdeclarative 5.6 CI status


Hi,

I can see how people keep trying to integrate changes into qtdeclarative's 5.6 
branch. Until https://codereview.qt-project.org/#/c/143824/ lands, all those 
attempts of integrating changes are going to fail, unfortunately :)


Simon
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


[Development] QML Memory leak.

2015-12-14 Thread Polepalli, Ravikiran
Hi All,

I'm working on a project and I'm affected by Memory leak in QML.
https://bugreports.qt.io/browse/QTBUG-42055
https://bugreports.qt.io/browse/QTBUG-28712

I tried to run the test application(qml available in ticket) on a target board.
In the application QML Object is created and destroyed for every 100ms. 
Application ran for 2 days.

Here are observations:

-Overall memory increased 1MB for every ~90mins.

-Captured memory usage for every 10 mins(through pmap -x $pid).

-Memory map is not changing except number of "[anon]" allocated memory 
blocks was growing constantly for every ~90mins.

-At end of test run approximately 82 blocks were seen.

-
Could anyone help me understand where memory leak could possibly be?
I would like to know if the memory leak is fixed. Any patch/solution available 
to fix this issue?
Any help would be great.

Thanks and regards,
Ravikiran.



main.qml
Description: main.qml
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] qtdeclarative 5.6 CI status

2015-12-14 Thread Sean Harmer
On Monday 14 Dec 2015 14:34:07 Hausmann Simon wrote:
> Hi,
> 
> I can see how people keep trying to integrate changes into qtdeclarative's
> 5.6 branch. Until https://codereview.qt-project.org/#/c/143824/ lands, all
> those attempts of integrating changes are going to fail, unfortunately :)

Thanks, didn't realise. Thought it was a random failure.

Cheers,

Sean

-- 
Dr Sean Harmer | sean.har...@kdab.com | Managing Director UK
KDAB (UK) Ltd, a KDAB Group company
Tel. +44 (0)1625 809908; Sweden (HQ) +46-563-540090
Mobile: +44 (0)7545 140604
KDAB - Qt Experts
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] New Qt5.6 Beta snapshot available

2015-12-14 Thread Koehne Kai


> -Original Message-
> From: Development [mailto:development-boun...@qt-project.org] On
> Behalf Of Al-Khanji Louai
> Sent: Tuesday, December 15, 2015 12:12 AM
> To: development@qt-project.org; Florian Bruhin 
> Cc: anto...@gmx.de
> Subject: Re: [Development] New Qt5.6 Beta snapshot available
> 
> The problem is that there is no designer plugin for QtWebEngine.

True. You can use Qt Designer's 'Widget Promotion' though:

http://doc.qt.io/qt-5/designer-using-custom-widgets.html#promoting-widgets

Regards

Kai
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


[Development] qtdeclarative 5.6 CI status

2015-12-14 Thread Hausmann Simon

Hi,

I can see how people keep trying to integrate changes into qtdeclarative's 5.6 
branch. Until https://codereview.qt-project.org/#/c/143824/ lands, all those 
attempts of integrating changes are going to fail, unfortunately :)


Simon
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] Nominating Pasi Keränen for Approver status

2015-12-14 Thread Blasche Alexander
>I'd like to nominate Pasi Keränen as Approver in the Qt Project. He is

Congratulation. The Gerrit and Jira rights have been updated.

--
Alex
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] New Qt5.6 Beta snapshot available

2015-12-14 Thread anton
So if I understand right,
in a Qt Widgets Application I can no more embed 
a Html/Browser component anymore.

I have to use QML instaed since WebView seems to be
QML only (if I understood the docs).

Anton

PS: By the way: where can I see the roadmap of Qt?

Ziller Eike wrote:

> 
>> On Dec 12, 2015, at 10:22 AM, anton  wrote:
>> 
>> Hi,
>> 
>> just tested the visualstudio 2015 version on windows.
>> One thing I noticed:
>> 
>> In the Designer of a Qt Widgets Application,
>> the QWebView Widget is missing.
>> 
>> Are you aware of this?
> 
> Since QtWebKit is deprecated and no binaries are provided, that is
> expected, yes. Br, Eike
> 
>> Thanks
>> 
>>  Anton
>> 
>> 
>> Heikkinen Jani wrote:
>> 
>>> Hi all,
>>> 
>>> 
>>> We have finally new qt5.6 beta snapshot available
>>> 
>>> 
>>> Windows: http://download.qt.io/snapshots/qt/5.6/5.6.0-beta/278/
>>> 
>>> Linux: http://download.qt.io/snapshots/qt/5.6/5.6.0-beta/287/
>>> 
>>> Mac: http://download.qt.io/snapshots/qt/5.6/5.6.0-beta/221/
>>> 
>>> Src: http://download.qt.io/snapshots/qt/5.6/5.6.0-beta/latest_src/
>>> 
>>> 
>>> 
>>> Unfortunately it seems these aren't yet final beta packages, in mac
>>> package creator seems to be unusable because of
>>> QTBUG-49676 [Reg 5.5->5.6]:
>>> Painting of widgets broken when embedding QQuickWidget
>>> 
>>> 
>>> Please test the packages & report all findings in Jira. We are trying to
>>> get beta out as soon as possible so please inform all new beta blockers
>>> to me immediately.
>>> 
>>> 
>>> br,
>>> 
>>> Jani
>> 
>> 
>> ___
>> Development mailing list
>> Development@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/development


___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] New Qt5.6 Beta snapshot available

2015-12-14 Thread Florian Bruhin
* anton  [2015-12-14 19:11:15 +0100]:
> So if I understand right,
> in a Qt Widgets Application I can no more embed 
> a Html/Browser component anymore.

You can use QtWebEngine instead which is the successor of QtWebKit,
and based on Chromium:

http://wiki.qt.io/QtWebEngine

Florian

-- 
http://www.the-compiler.org | m...@the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
 I love long mails! | http://email.is-not-s.ms/


signature.asc
Description: Digital signature
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development