[Interest] Custom layouts

2014-08-05 Thread Igor Mironchik
Hi. I found that if in setGeometry() method call hide() or show() on widgets inside layout then this leads to recursion of layout. What do you think on this problem? May be it is good suggestion to Qt developers to remove this recursion, because of it is sometimes useful to hide some widgets

[Interest] Qt on Wandboard-solo with Yocto -Problem

2014-08-05 Thread Nilesh Kokane
Hello, If anyone can help me to sought out the this issue to built up Qt on wandboard-Solo with yocto. Based on the url http://wiki.wandboard.org/index.php/Building_Qt5_using_yocto_on_Wandboard I altered the local.conf and the bblayers.confand gave a bitbake core-image-minimal with

[Interest] QML TextEdit cursor not visible

2014-08-05 Thread Simone
Dear All, I have a problem in my application, I'm using Qt 4.8.5 and QML on our ARM freescale platform (QWS server, not X11). I have a TextEdit component in my QML page, and when I click on it to assign focus, the focus is assigned but I cannot see the cursor blinking. The same application

Re: [Interest] Custom layouts

2014-08-05 Thread Tony Rietwyk
Hi Igor, Your problem makes sense. Hiding and showing widgets triggers a layout recalculation, and the layout uses setGeometry to position the widgets. It sounds unusual to change widget visibility in a setGeometry override. I suggest to use a flag to prevent the recursion yourself.

Re: [Interest] Embedding QWindow

2014-08-05 Thread rap
OK, I'm not familiar with QML QtQuick at all yet, only quite recently started using Qt as an alternative for MS. If those support OpenGL core profile 4+ then I'll have to take a look when I have the time, for now I have to stick with Qt Creator. So the context is that QtWidgets

Re: [Interest] Embedding QWindow

2014-08-05 Thread Till Oliver Knoll
Am 04.08.2014 um 23:58 schrieb Ian Monroe i...@monroe.nu: On Mon, Aug 4, 2014 at 1:53 PM, rap r...@dlc.fi wrote: From: Ian Monroe On Mon, Aug 4, 2014 at 12:32 PM, rap r...@dlc.fi wrote: Why do you want to use QWindow if you are using QWidget-based windows? QGLWidget seems like the

Re: [Interest] Embedding QWindow

2014-08-05 Thread Till Oliver Knoll
Am 05.08.2014 um 10:27 schrieb Till Oliver Knoll till.oliver.kn...@gmail.com: ... That's exactly the magic keyword here, the static method of QWidget::createContainerWidget! That's QWidget::createWindowContainer() to be correct ;) Cheers, Oliver

Re: [Interest] Embedding QWindow

2014-08-05 Thread Filip Piechocki
According to this blog post: http://blog.qt.digia.com/blog/2014/07/02/qt-weekly-16-qquickwidget never use the QWidget::createWindowContainer() :) use QQuickWidget instead. BR, Filip On Tue, Aug 5, 2014 at 10:31 AM, Till Oliver Knoll till.oliver.kn...@gmail.com wrote: Am 05.08.2014 um 10:27

Re: [Interest] Embedding QWindow

2014-08-05 Thread rap
From: Till Oliver Knoll Sent: Tuesday, August 05, 2014 11:27 AM But if I am not mistaken under the hood a QWindow is also used as base for e.g. a QMainWindow. It is just the lowest common and most lightweight denominator for interaction with the underlying window system (which could

Re: [Interest] How to force layout...

2014-08-05 Thread Bo Thorsen
Den 04-08-2014 10:35, Igor Mironchik skrev: Hi. How to force layout to update geometries of items in it if some items changed theirs sizeHint property? For example if I rotate rectangle I want layout to update geometry of this rectangle. I’ve tried: layout-invalidate(); layout-update();

Re: [Interest] Embedding QWindow

2014-08-05 Thread Agocs Laszlo
There is a QWindow under the hood for each top-level widget, but it is not done via inheritance. The QWindow and QWidget hierarchies are distinct. The description from Oliver covers the situation pretty well. One thing worth noting in addition is that using QWindow for rendering OpenGL (or

Re: [Interest] Embedding QWindow

2014-08-05 Thread Till Oliver Knoll
Am 05.08.2014 um 10:48 schrieb Filip Piechocki fpiecho...@gmail.com: According to this blog post: http://blog.qt.digia.com/blog/2014/07/02/qt-weekly-16-qquickwidget never use the QWidget::createWindowContainer() :) use QQuickWidget instead. Read the fine print: ;) having a QQuickView

Re: [Interest] Embedding QWindow

2014-08-05 Thread rap
Thanks, this discussion has been really useful, I haven't found anything written giving the larger picture, just nuts and bolts everywhere. Regarding the idea of using MDI and QWindow for child wnds seems to stumble on the fact that QMdiSubWindow class is a QWidget based class too. There

Re: [Interest] Embedding QWindow

2014-08-05 Thread Till Oliver Knoll
Am 05.08.2014 um 12:09 schrieb rap r...@dlc.fi: From: Till Oliver Knoll Sent: Tuesday, August 05, 2014 11:27 AM But if I am not mistaken under the hood a QWindow is also used as base for e.g. a QMainWindow. ... That don't seem to be the case, QMainWindow inherits from QWidget,

Re: [Interest] Embedding QWindow

2014-08-05 Thread rap
OK, got that now ;) Thanks, - Risto From: Till Oliver Knoll Sent: Tuesday, August 05, 2014 2:45 PM Am 05.08.2014 um 12:09 schrieb rap r...@dlc.fi: From: Till Oliver Knoll Sent: Tuesday, August 05, 2014 11:27 AM But if I am not mistaken under the hood a QWindow is also used as base for

Re: [Interest] question about relocating Qt library installation

2014-08-05 Thread Thiago Macieira
On Monday 04 August 2014 09:47:55 Darren Dale wrote: I spent a good part of the weekend looking for information on the web. I'm not certain I understand the problem, but am certain there must be a solution, since the Qt installer for windows can install to an arbitrary location. It does that

Re: [Interest] Embedding QWindow

2014-08-05 Thread Filip Piechocki
On Tue, Aug 5, 2014 at 1:29 PM, Till Oliver Knoll till.oliver.kn...@gmail.com wrote: Am 05.08.2014 um 10:48 schrieb Filip Piechocki fpiecho...@gmail.com: According to this blog post: http://blog.qt.digia.com/blog/2014/07/02/qt-weekly-16-qquickwidget never use the

Re: [Interest] question about relocating Qt library installation

2014-08-05 Thread Yves Bailly
On 05/08/2014 05:59, Thiago Macieira wrote: On Monday 04 August 2014 09:47:55 Darren Dale wrote: I spent a good part of the weekend looking for information on the web. I'm not certain I understand the problem, but am certain there must be a solution, since the Qt installer for windows can

Re: [Interest] question about relocating Qt library installation

2014-08-05 Thread Michael Jackson
On Aug 5, 2014, at 8:39 AM, Yves Bailly yves.bai...@verosoftware.com wrote: On 05/08/2014 05:59, Thiago Macieira wrote: On Monday 04 August 2014 09:47:55 Darren Dale wrote: I spent a good part of the weekend looking for information on the web. I'm not certain I understand the problem, but am

Re: [Interest] Preventing QUrl from encoding query parameters

2014-08-05 Thread Lorne Sturtevant
You can't do what you want. QUrl will normalise what it has to. That's what I had feared. I was digging through the source I couldn't find a hidden force do things wrong flag. So just make sure that you are running Qt 5.3, since there were bugs in previous versions. If that doesn't work, fix

[Interest] [OT] Re: Preventing QUrl from encoding query parameters

2014-08-05 Thread Till Oliver Knoll
Am 05.08.2014 um 18:01 schrieb Lorne Sturtevant dra...@shaw.ca: You can't do what you want. QUrl will normalise what it has to. That's what I had feared. I was digging through the source I couldn't find a hidden force do things wrong flag. You did not stumble over the most-wanted Do What I

[Interest] QHash memory management

2014-08-05 Thread Jason R. Kretzer
Just a quick question about using QHash with pointers. Lets say I have the following snippet: //=== QWebView *view; QHashint, QWebView * hash; for(int i=0; i10; i++) { view = new QWebView(this); hash.insert(i, view); } go do something meaningful //or do a hash.clear();

[Interest] Generating .avi or .mpg from Qt? (from sequence of QImages or QPixmaps)

2014-08-05 Thread Phil Weinstein
We are generating on-screen animations in Qt 4.8.6 widgets on Windows (just redrawing, based on a repeating QTimer). Does Qt4 or Qt5 proper support (or will Qt5 soon support) generation of .mpg / .mpeg (MPEG) or .avi files for generated animations? I'm imagining that this would be done by

Re: [Interest] QHash memory management

2014-08-05 Thread preeteesh kakkar
Yes, you do need to delete them. You can keep them as scoped_ptr instead of raw pointer. On Aug 5, 2014 5:10 PM, Jason R. Kretzer ja...@gocodigo.com wrote: Just a quick question about using QHash with pointers. Lets say I have the following snippet: //=== QWebView *view;

Re: [Interest] Generating .avi or .mpg from Qt? (from sequence of QImages or QPixmaps)

2014-08-05 Thread Giuseppe D'Angelo
On 5 August 2014 23:22, Phil Weinstein ph...@indra.com wrote: Short of that, are there any well supported third-party Qt packages for doing this? How about just feeding the sequence of images to an external encoder like ffmpeg/libav or mencoder? -- Giuseppe D'Angelo

Re: [Interest] Generating .avi or .mpg from Qt? (from sequence of QImages or QPixmaps)

2014-08-05 Thread Pau Garcia i Quiles
Hello, Try using QtGstreamer and a multifile source: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-multifilesrc.html On Tue, Aug 5, 2014 at 11:22 PM, Phil Weinstein ph...@indra.com wrote: We are generating on-screen

Re: [Interest] QHash memory management

2014-08-05 Thread Dmitriy Purgin
Hi, take a look at qDeleteAll() function: http://qt-project.org/doc/qt-5/qtalgorithms.html Cheers 2014-08-06 3:50 GMT+06:00 Giuseppe D'Angelo dange...@gmail.com: On 5 August 2014 23:24, preeteesh kakkar preeteesh.kak...@gmail.com wrote: Yes, you do need to delete them. You can keep them as

Re: [Interest] Preventing QUrl from encoding query parameters

2014-08-05 Thread Thiago Macieira
On Tuesday 05 August 2014 10:01:30 Lorne Sturtevant wrote: You can't do what you want. QUrl will normalise what it has to. That's what I had feared. I was digging through the source I couldn't find a hidden force do things wrong flag. So just make sure that you are running Qt 5.3, since