Re: [Interest] Understanding QImage::transformed()

2018-12-17 Thread Samuel Rødal
On Mon, Dec 17, 2018 at 7:00 PM Jason H wrote: > > > Sent: Monday, December 17, 2018 at 10:06 AM > > From: "Jason H" > > To: "Samuel Rødal" > > Cc: inter...@lists.qt-project.org > > Subject: Re: [Interest] Understanding QImage::tran

Re: [Interest] Understanding QImage::transformed()

2018-12-15 Thread Samuel Rødal
Accidentally replied off-list, replying again here. On Fri, Dec 14, 2018 at 11:56 PM Jason H wrote: > > I have an image. I have identified 4 control points in in image (1920x1080). > I want to map the points to a square image, of 1080 on a side. > > QPolygonF fromPoly(QVector { ... }); >

Re: [Interest] QXcbConnection error

2013-04-23 Thread Samuel Rødal
On 04/23/2013 02:13 PM, Ramakanthreddy_Kesireddy wrote: We are using graphics card NVidia Quadro 1000M and Nvidia driver version 302.10. We are using Qt Quick 2.0(Qt5.0) and Qt3d which needs OpenGL. If glxgears doesn't run it seems the driver is not functioning properly. Are you able to run

Re: [Interest] QXcbConnection error

2013-04-22 Thread Samuel Rødal
On 04/22/2013 11:09 AM, Scott Aron Bloom wrote: Since glxinfo is failing, my bet is this has nothing to do with Qt Indeed, if the X server isn't reporting that it has the GLX extension then there's not much Qt can do. Seems the graphics driver is not correctly installed or that something is

Re: [Interest] [Qt 5, OS X] Does OpenGL 3 Core Profile work (with Qt APIs)?

2013-04-22 Thread Samuel Rødal
On 04/22/2013 10:40 AM, Till Oliver Knoll wrote: 2013/4/20 James Turner james.tur...@kdab.com: On 18 Apr 2013, at 09:09, Till Oliver Knoll till.oliver.kn...@gmail.com wrote: So is OpenGL 3.x Core actually supposed to work with Qt 5? Or is this still work in progress? It works fine, but

Re: [Interest] QXcbConnection error

2013-04-21 Thread Samuel Rødal
On 04/22/2013 07:40 AM, Ramakanthreddy_Kesireddy wrote: Does the below error got to do with https://bugreports.qt-project.org/browse/QTBUG-21880. or the patch mentioned in this bug would help? Iam using Qt5.0.2 on Ubuntu 11.04 with Nvidia drivers installed on target board. Does glxgears run

Re: [Interest] Running code in the scene graph renderer thread

2013-04-03 Thread Samuel Rødal
On 04/02/2013 10:21 PM, Luca Carlon wrote: Hi! I'm implementing a plugin for Qt Multimedia for playing video and audio using hardware acceleration. When opening a content which includes video, I need to instantiate an OpenGL texture and an EGLImageKHR. To do this I need to be in the thread

Re: [Interest] Running code in the scene graph renderer thread

2013-04-03 Thread Samuel Rødal
On 04/03/2013 11:04 AM, Luca Carlon wrote: On Wed, Apr 3, 2013 at 10:56 AM, Samuel Rødal samuel.ro...@digia.com wrote: If you can get access to the QWindow you can qobject_cast to check that it's a QQuickWindow. In that case you can connect to the beforeRendering() signal of the QQuickWindow

Re: [Interest] opengl graphics system status in 4.8.x?

2013-03-19 Thread Samuel Rødal
On 03/18/2013 09:07 PM, Simon St James wrote: Hi all, I am currently working on emscripten-qt (http://vps2.etotheipiplusone.com:30176/redmine/projects/emscripten-qt/wiki/Demos/), a project that uses Emscripten (https://github.com/kripken/emscripten/wiki) to compile Qt 4.8.x to Javascript

Re: [Interest] Failed to load platform plugin xcb

2013-03-14 Thread Samuel Rødal
On 03/12/2013 06:11 PM, Herlin Matos Lastres wrote: I made a Qt app on SDK Qt 5.0.1, and i had problems deploying the app, when i place my application on other machine without Qt i get this nasty error: Failed to load platform plugin xcb. Available platforms are: xcb Aborted (core dumped)

Re: [Interest] QGraphicsScene.render() does not respect source rect ?

2013-03-11 Thread Samuel Rødal
On 03/05/2013 08:58 PM, David Heremans wrote: Hello, I seem to have a small problem here with the render function of the QGraphicsScene. I'm trying to print parts of a scene onto several pages, however it seems that the render method does the scaling as requested , but does not clip the

Re: [Interest] Is it possible to use QPixmap from non guy thread in Qt5?

2013-02-15 Thread Samuel Rødal
On 02/14/2013 09:15 AM, Иван Комиссаров wrote: In Qt4, i always got warning when trying to use QPixpap from thread other than the gui-thread. However i don't see that warning in Qt5. Also, documentation only says that i can use painter from non-gui thread on a QImage, but doesn't say that i

Re: [Interest] Qt5 Terminal application

2013-02-11 Thread Samuel Rødal
On 02/08/2013 05:14 PM, Jason H wrote: Does anyone know of a terminal application (ie. Putty, KTerminal, etc) that is Qt5 and this OpenVG/GL hardware accelerated? https://github.com/jorgen/yat is one -- Samuel ___ Interest mailing list

Re: [Interest] QML window icon

2013-01-31 Thread Samuel Rødal
On 01/29/2013 01:42 PM, Mark Summerfield wrote: Hi, I am trying to create a pure QML program, so may main.cpp is simply: #include QGuiApplication #include QQmlEngine #include QQuickView int main(int argc, char *argv[]) { QGuiApplication app(argc, argv);

Re: [Interest] Memory Leak in Graphic Card. OpenGL.

2013-01-23 Thread Samuel Rødal
On 01/22/2013 12:47 PM, Guido Seifert wrote: Hi, could anyone help me with my OpenGL problem? Either it is a bug in the Qt OpenGL libs, or it is me. Most likely it is me. I am quite the beginner with OpenGL. The code: http://pastebin.com/wQByE92h It seems a bit dubious that you have an

Re: [Interest] QFileDialog: what's wrong with this minimal example

2013-01-23 Thread Samuel Rødal
On 01/21/2013 07:33 PM, Wilhelm wrote: Hi all, if I compile this stripped down minimal example - #include QApplication #include QFileDialog int main(int argc, char *argv[]) { QApplication a(argc, argv); QFileDialog fd(0, Load from file,

Re: [Interest] Does Qt5 support SIMD instructions?

2013-01-23 Thread Samuel Rødal
On 01/23/2013 11:38 AM, Silvola Taito wrote: Hi All, Does anyone know if Qt 5 supports SIMD instructions? I noticed this blog post for Qt 4.x http://blog.qt.digia.com/blog/2010/08/24/improving-the-rendering-performance-with-more-simd/ What do you mean by supports? Qt uses NEON, SSE, AVX,

Re: [Interest] [Development] QGraphicScene with thousands of QGraphicItems freezes the APP

2013-01-23 Thread Samuel Rødal
On 01/24/2013 08:35 AM, Samuel Rødal wrote: On 01/23/2013 08:02 PM, Jose wrote: Hello, I am developing a Qt-based application. The main part of the application if a QGraphicView widget whose scene is populated with thousands (sometimes hundreds of thousands) of QGraphicItems, more

Re: [Interest] Bringing Qt, C++ To The Web

2013-01-18 Thread Samuel Rødal
On 01/17/2013 05:00 PM, Nikos Chantziaras wrote: On 17/01/13 17:51, Konstantin Tokarev wrote: 17.01.2013, 19:38, Nikos Chantziaras rea...@gmail.com: On 17/01/13 17:31, Pau Garcia i Quiles wrote: On Thu, Jan 17, 2013 at 4:28 PM, Nikos Chantziaras rea...@gmail.com

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

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

Re: [Interest] Crazy Idea of the day: WebGL renderer

2013-01-10 Thread Samuel Rødal
On 01/10/2013 06:02 PM, Jason H wrote: Thanks so much Samuel. Can you tell me what that layer is so I can start looking? I guess this is a starting point: http://blog.qt.digia.com/blog/2012/08/01/scene-graph-adaptation-layer/ -- Samuel ___ Interest

Re: [Interest] Crazy Idea of the day: WebGL renderer

2013-01-09 Thread Samuel Rødal
On 01/09/2013 04:17 PM, Jason H wrote: You bring up a good point. Maybe the output is JS to the web browser. And I think that is a more awesome solution - because then your deployment platform does not need to support Qt. While I originally conceived of this to introduce people to QML I ran

Re: [Interest] Crazy Idea of the day: WebGL renderer

2013-01-09 Thread Samuel Rødal
On 01/09/2013 05:15 PM, Jason H wrote: This QML 2 is sounding like it is more a bother than it is worth. I thought QPA was the end-all-be-all of platform abstraction? Why can't QPA be used with scene graph? Of course it can, it's just that scene graph uses OpenGL ES 2 and not QPainter, so if

Re: [Interest] Crash when starting Qt5 rasterwindow on ARM/linuxfb

2013-01-09 Thread Samuel Rødal
On 01/09/2013 11:36 PM, Thomas Petazzoni wrote: Hello, I am currently packaging Qt5 for the Buildroot embedded Linux build system (http://buildroot.org). I am therefore trying to get the 'rasterwindow' example (from qtbase/examples/gui/rasterwindow/) to run with the 'linuxfb' graphics

Re: [Interest] Crazy Idea of the day: WebGL renderer

2013-01-08 Thread Samuel Rødal
On 01/08/2013 07:35 PM, Jason H wrote: There has been an alarming increase in the number of on-line interactive coding platforms. Take for instance ScraperWiki.com, http://www.typescriptlang.org/Playground/ and a dozen others. While I am waiting for my Qt5 build to download, I was wondering

Re: [Interest] glGetString from QML-based Wayland compositor

2013-01-07 Thread Samuel Rødal
On 01/07/2013 08:22 PM, Pier Luigi wrote: 2013/1/2 Samuel Rødal samuel.ro...@digia.com: On 12/28/2012 09:53 AM, Pier Luigi wrote: However glGetString() always return NULL, I call it from the sceneGraphInitialized() slot and I noticed that despite openglContext() returns a valid pointer

Re: [Interest] Qt5/OMAP4/EGLFS: Strange animation behaviour

2012-12-10 Thread Samuel Rødal
On 12/10/2012 11:31 AM, Stephan Kanthak wrote: Hi all, I promised to get back on this, once Prabindh and I find out more about the real issues: 1. I got this working cleanly for Qt5 + LinuxFB/EGL + OMAP4 using (the rather old) TI SGX driver release 4.04.00.03 by adding a get_update_mode()

Re: [Interest] 60FPS and FBO

2012-11-30 Thread Samuel Rødal
On 11/27/2012 10:39 AM, Thomas Senyk wrote: On Tue, November 27, 2012 10:12:58 Samuel Rødal wrote: On 11/26/2012 05:50 PM, Thomas Senyk wrote: Hi, the context of this is mail is: - scenegraph - FBO based effects (plain shader-effects, qtgraphicaleffects, qt3d) - embedded

Re: [Interest] 60FPS and FBO

2012-11-27 Thread Samuel Rødal
On 11/26/2012 05:50 PM, Thomas Senyk wrote: Hi, the context of this is mail is: - scenegraph - FBO based effects (plain shader-effects, qtgraphicaleffects, qt3d) - embedded hardware / opengl es 2.0 I've noticed that on a lot of embedded systems the FPS drops rather drastically

Re: [Interest] Qt5/OMAP4/EGLFS: Strange animation behaviour

2012-11-20 Thread Samuel Rødal
Just wanted to point out that the EGL spec seems to specify that VSYNC should be enabled by default: http://www.khronos.org/registry/egl/sdk/docs/man/xhtml/eglSwapInterval.html If interval is set to a value of 0, buffer swaps are not synchronized to a video frame, and the swap happens as soon

Re: [Interest] Qt5/OMAP4/EGLFS: Strange animation behaviour

2012-11-20 Thread Samuel Rødal
On 11/20/2012 09:12 PM, Stephan Kanthak wrote: Hi, one final word to this list on my fix. I think that the fix I did to Qt5 is not in good shape to be integrated. My fix interfaces directly with OMAP-specific ioctl's to a linux framebuffer device in code that is generic to all egl platforms.

Re: [Interest] Qt5/OMAP4/EGLFS: Strange animation behaviour

2012-11-15 Thread Samuel Rødal
On 11/15/2012 11:07 AM, Stephan Kanthak wrote: Hi, some background first: for some little project I'm planning to prototype a custom UI. I got interested in Qt5, because of QML + Javascript. The OMAP4 platform I use (a modified Kindle Fire, but very similar to the Pandaboard) offers

Re: [Interest] compiling qt with eglfs

2012-11-08 Thread Samuel Rødal
On 11/08/2012 01:55 PM, pritam.ghang...@gmail.com wrote: I am still stuck with qt 4.8.3 with qpa. It always compiles, but I never got it to work. Now when i try the application its failing at load time itself # ./hellogl_es2 -qpa -platform egl Failed to load platform plugin egl. Available

Re: [Interest] QML animation flicker

2012-10-19 Thread Samuel Rødal
On 10/18/2012 09:10 PM, Jarno Seppänen wrote: hi, On Mon, Oct 15, 2012 at 11:29 AM, Samuel Rødal samuel.ro...@digia.com wrote: On 10/12/2012 11:10 PM, Jarno Seppänen wrote: Hi, I'm trying out Qt 5.0.0-beta1, but I'm seeing some unexpected animation flicker. I have a rotating rectangle which

Re: [Interest] QML animation flicker

2012-10-19 Thread Samuel Rødal
On 10/19/2012 09:44 AM, Jarno Seppänen wrote: I tested on two more machines with Nvidia graphics, can reproduce the flicker on both: Ubuntu 12.10 with Asus GT520 running Qt5 beta 1, other with Ubuntu 12.04 and Quadro FX 3800 running Qt5 master branch from Oct 14th. The previous machines I

Re: [Interest] QML animation flicker

2012-10-15 Thread Samuel Rødal
On 10/12/2012 11:10 PM, Jarno Seppänen wrote: Hi, I'm trying out Qt 5.0.0-beta1, but I'm seeing some unexpected animation flicker. I have a rotating rectangle which starts to flicker during a simultaneous ColorAnimation, without it the rotation is smooth. Is this an issue with my setup and

Re: [Interest] How to know bindTexture failure

2012-10-08 Thread Samuel Rødal
On 10/08/2012 11:01 AM, Calogero Mauceri wrote: Il 05/10/2012 17.21, Calogero Mauceri ha scritto: Il 05/10/2012 17.04, Samuel Rødal ha scritto: On 10/05/2012 04:46 PM, Calogero Mauceri wrote: Hi, is there a way to know programmatically whether the QGLWidget::bindTexture function fails

Re: [Interest] How to know bindTexture failure

2012-10-08 Thread Samuel Rødal
On 10/05/2012 05:21 PM, Calogero Mauceri wrote: Il 05/10/2012 17.04, Samuel Rødal ha scritto: On 10/05/2012 04:46 PM, Calogero Mauceri wrote: Hi, is there a way to know programmatically whether the QGLWidget::bindTexture function fails? Sometime my bindTexture fails, I can see in the log

Re: [Interest] How to know bindTexture failure

2012-10-08 Thread Samuel Rødal
On 10/08/2012 12:40 PM, Calogero Mauceri wrote: Il 08/10/2012 12.34, Samuel Rødal ha scritto: On 10/05/2012 05:21 PM, Calogero Mauceri wrote: Il 05/10/2012 17.04, Samuel Rødal ha scritto: On 10/05/2012 04:46 PM, Calogero Mauceri wrote: Hi, is there a way to know programmatically whether

Re: [Interest] how to run 21 threads concurrently

2012-10-04 Thread Samuel Rødal
On 10/04/2012 03:21 PM, Sujan Dasmahapatra wrote: I am not able to run my threads concurrently please help. How can I run 21 threads concurrently and get the job done by 8 cpus what I have in my machine. I am doing like this [code] std::vectorQFuturevoid Threads; QFuturevoid Th;

Re: [Interest] How to show Qt Quick 2 scene on widget?

2012-10-03 Thread Samuel Rødal
On 10/03/2012 11:29 AM, Oleg Shparber wrote: See QQuickView - http://doc-snapshot.qt-project.org/5.0/qquickview.html On Wed, Oct 3, 2012 at 7:54 AM, Alexander Akulich akulichalexan...@gmail.com mailto:akulichalexan...@gmail.com wrote: Hi all. Is there any replacement for

Re: [Interest] How to show Qt Quick 2 scene on widget?

2012-10-03 Thread Samuel Rødal
On 10/03/2012 03:02 PM, Alexander Akulich wrote: Thanks for answers. *Oleg Shparber*, i already look on it, but haven't idea, how to render something like this on widget. *Samuel Rødal*, you perfectly right! QQuickView accept only QWindow, so the only way is use windowHandle(). When i wrote

Re: [Interest] About copying the image buffer with alpha blending

2012-08-29 Thread Samuel Rødal
On 08/29/2012 11:54 AM, ext song.7@nokia.com wrote: Is the premultiplied specified when creating QImage or other ? The QImage constructor takes the QImage::Format. But if you load the image from file it should already pick Format_ARGB32_Premultiplied by default if the image has an alpha

Re: [Interest] tty Keyboard Mouse Support in Qt5

2012-08-29 Thread Samuel Rødal
On 08/29/2012 01:08 PM, ext Samuel Rødal wrote: Example ./myapp -plugin evdev:/dev/event0 Sorry, that should be ./myapp -plugin evdevkeyboard:/dev/event0 ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo

Re: [Interest] About copying the image buffer with alpha blending

2012-08-29 Thread Samuel Rødal
On 08/29/2012 05:02 PM, Liu Song.7 (Nokia-MP/Beijing) wrote: Hi, After using the QPixmap, the pixel format now is Format_ARGB32_Premultiplied, and the performance looks better. But one question is about the background image, as this case the alpha channel info can be dropped, is there

Re: [Interest] Displaying QWidgets into an OpenGL render thread

2012-05-14 Thread Samuel Rødal
On 05/11/2012 09:09 PM, ext Pierre-Étienne Messier wrote: Hello all, I wrote a small demo application using a OpenGL render thread similar to the solution presented in QQ (http://doc.qt.nokia.com/qq/qq06-glimpsing.html#writingmultithreadedglapplications /

Re: [Interest] Qt5/eglfs on a standard linux desktop system

2012-02-13 Thread Samuel Rødal
On 02/12/2012 06:20 AM, ext Jon Trulson wrote: On Thu, 9 Feb 2012, Samuel Rødal wrote: On 02/08/2012 11:42 PM, ext Jon Trulson wrote: Hi, I want to experiment with Qt5, eglfs and the linux input event drivers (mouse for example) on a standard linux system. It's a 32b Ubuntu 11.10 system