[Interest] Future of Qt Location (mapping solutions) in Qt 6

2021-04-12 Thread Ola Røer Thorsen
Hi all, just wanted to bring some attention to the fact that it is still unclear if the Qt Location module (which gives plotting of geographical maps) will be included in Qt 6 at all. For our use-case it's a complete show-stopper if it disappears (especially using the mapbox-gl plugin) and we wou

[Interest] Quick3D in Qt 5.15: Texture file format with mipmaps and tool to create them on Linux?

2021-08-17 Thread Ola Røer Thorsen
Hi, as far as I can see Qt Quick3D in Qt 5.15 is not able to automatically generate mipmaps on textures (introduced in Qt 6.x as far as I can see). Anyone know which texture file formats are supported in Qt Quick3D in Qt 5.15, and any Linux-based tools to use to generate such files from a .png fil

[Interest] Qt Quick + Unreal Engine?

2022-01-19 Thread Ola Røer Thorsen
Hi all, just wondering if any of you have had any experience with combining Qt Quick and Unreal Engine 4 (or 5)? My goal would be to use a Qt Quick UI on top of 3D scenes from Unreal Engine. If you have, it would be interesting to hear how it went, and if you have any recommendations. I'm conside

Re: [Interest] [Qt3D] Render to video

2016-04-18 Thread Ola Røer Thorsen
2016-04-18 14:38 GMT+02:00 Andy : > On Mon, Apr 18, 2016 at 3:26 AM, Harald Vistnes > wrote: > >> Hi Andy, >> >> An alternative is to use the FFMPEG encoding library instead of the >> command line tools. Then you can pass each frame to the video encoder as >> you generate it without writing them

Re: [Interest] armv7a-hard-float in Qt android apps

2016-04-29 Thread Ola Røer Thorsen
2016-04-29 10:11 GMT+02:00 Nuno Santos : > > Code compiled and ruined fine but couldn’t notice a faster performance (I > have profiling timers in critical parts of the application). > > Has anyone done this before? > > As far as I know Qt is built with qreal as double as a default setting. In cas

Re: [Interest] armv7a-hard-float in Qt android apps

2016-04-29 Thread Ola Røer Thorsen
2016-04-29 16:36 GMT+02:00 Jean-Michaël Celerier < jeanmichael.celer...@gmail.com>: > > On Fri, Apr 29, 2016 at 1:55 PM, Ola Røer Thorsen > wrote: > >> >> float a = 1.0f; >> float b = 2.0*a; // BAD! >> float b = 2.0f*a; // Good! >> > > Pretty

Re: [Interest] armv7a-hard-float in Qt android apps

2016-04-30 Thread Ola Røer Thorsen
2016-04-30 10:46 GMT+02:00 Jean-Michaël Celerier < jeanmichael.celer...@gmail.com>: > https://godbolt.org/g/DqBlFG > > With gcc -O1 > > float f(float x) > { > return 2. * x; > } > > becomes > > f(float): > addss %xmm0, %xmm0 > ret > > > and > > float g (float x) > { > return

[Interest] How to set absolute Qt3D::QCamera rotation/orientation

2016-06-08 Thread Ola Røer Thorsen
I need to set a Qt3D::QCamera orientation directly. I've got the position in a QVector3D and the rotation in a QQuaternion. I can't seem to find any API for this. The "rotate"-function just adds my quaternion to the existing orientation which is not what I'm looking for. Is there some better way to

[Interest] Qt3D SceneLoader - adjusting materials when using Collada files exported from Blender

2016-07-08 Thread Ola Røer Thorsen
Hi, I need to load some simple 3d scenes into an application using Qt3D, QtQuick and Qt 5.7. I've created the scenes in Blender, exported them as Collada files and they mostly show up in my application unless SceneLoader causes a crash. I'm using the basic ForwardRenderer frameGraph like so,

[Interest] Qt3D camera field of view angle definition?

2016-07-08 Thread Ola Røer Thorsen
What's the definition of the field of view angle for Q3D' s QCamera? Is it the diagonal field of view? Cheers, Ola ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

[Interest] Managing memory with QObject*-models exposed to QML

2016-07-14 Thread Ola Røer Thorsen
I've found that creating C++ models containing a list of QObject* based on QAbstractListModels and using them in Quick views such as ListView is very useful. I'm not the only one, there are several implementations of "QObjectListModel" around, and I've got my own as well. On quite rare ocations I

[Interest] Qt Location with Mapbox plugin?

2016-07-15 Thread Ola Røer Thorsen
I'm struggling getting any maps shown using the Qt Location Mapbox plugin. I'm getting error messages like "failed to fetch tile, , server replied: Forbidden". The plugin needs a map_id and an access_token. On the mapbox website it's easy to find the access tokens, but no map id's. Maybe they

Re: [Interest] Qt Location with Mapbox plugin?

2016-07-15 Thread Ola Røer Thorsen
box, not osm/mapquest that is now broken. > 2016-07-15 14:43 GMT+02:00 Ola Røer Thorsen : >> I'm struggling getting any maps shown using the Qt Location Mapbox plugin. >> I'm getting error messages like "failed to fetch tile, , server replied: >> Forbidde

Re: [Interest] Managing memory with QObject*-models exposed to QML

2016-07-17 Thread Ola Røer Thorsen
Thank you for the feedback, Ben. 2016-07-15 19:32 GMT+02:00 Ben Lau : > Hi, > > In my humble opinion, QObjectListModel is a bad idea. Because it is > difficult to manage the life cycle of QObject with QML. Just like your > problem. I have met the similar issue in my first QML project. The > appli

Re: [Interest] Qt Location with Mapbox plugin?

2016-07-17 Thread Ola Røer Thorsen
2016-07-15 18:08 GMT+02:00 : > > Do you see http://doc.qt.io/qt-5/location-plugin-mapbox.html and > https://www.mapbox.com/help/define-map-id/ ? > > Thank you! That second URL helped, I had not seen it. I was using the Mapbox Studio, and that page says "Styles made in Mapbox Studio do not have map

[Interest] Qt Data Visualization - Scatter3D gradient from independent value

2016-08-29 Thread Ola Røer Thorsen
I'm plotting 3d point cloud data in QML using the Scatter3D item. I'd like to set the color of each point individually from a gradient, but not related to each point's position. The use case is plotting temperatures in 3d-space. Each point represents a temperature measurement at some 3d coordinate

[Interest] Open source license attribution when deploying a Qt-based application

2016-11-23 Thread Ola Røer Thorsen
I plan to release a closed source Qt-based application in a few months. It's using the LGPL version of Qt, and I plan to bundle the Qt dynamic libraries and plugins I need along with the application in an installer. I have built up a list of the open source libraries that I have used along with th

Re: [Interest] Qt Quick and animatic 12MP image

2018-09-05 Thread Ola Røer Thorsen
2018-09-05 14:08 GMT+02:00 Tomasz Olszak : > Hi, I want to animate (change flickable contentX and contentY) image > position in screen. Image is bigger(4000x3000) than screen. Currently, I > implemented it on I7 ivybridge on Kubuntu 18.04. > It simply stutters few times a second. If anyone has int

Re: [Interest] Qt installer from console

2018-09-15 Thread Ola Røer Thorsen
Last time I tried the command line options to avoid using the installer gui did not do anything. Then spent some time trying to script the installer for console-only-use, but it's not well documented and hard to get right. Expect to get into situations during upgrades where your script will get stu

Re: [Interest] Screen Capture as format YUV

2018-11-08 Thread Ola Røer Thorsen
There is some code in the QMultimedia source that does convert from YUV to RGB while rendering to the screen, I'd recommend you take a look there for inspiration. I think it's the qsgvideonode_yuv.cpp file. I've done similar things (I do rgb->yuv instead). Basically you upload your YUV image to te

Re: [Interest] Operator QMap[] is casting to int?

2019-05-07 Thread Ola Røer Thorsen
lør. 4. mai 2019 kl. 17:51 skrev Thiago Macieira : > No, the size of something definitely fits in int on 32-bit systems. And > why do > you need to do any static_cast in the first place? > We build our code using gcc with the options "-Wall -Wextra -Werror" and this leads us to have to use static

Re: [Interest] Operator QMap[] is casting to int?

2019-05-07 Thread Ola Røer Thorsen
> Could you make an example where the casts are needed? Maybe the code can > be rearranged in a way that the casts are NOT needed in the first place. > > QByteArray bytes; // chosen because some api needs it later std::vector other_bytes; // maybe returned from some 3rd party library ... if (static

Re: [Interest] Expected event execution order in this multi-thread application

2019-09-30 Thread Ola Røer Thorsen
man. 30. sep. 2019 kl. 16:48 skrev Thiago Macieira < thiago.macie...@intel.com>: > > It's just wrong to use it. Just like QThread::{,m,u}sleep. Don't use them. > > What's wrong with the sleep functions in particular? Are they worse than calling for example unistd.h's "usleep" or "std::this_thread:

[Interest] Proper way to handle QUdpSocket::writeDatagram when it returns TemporaryError

2019-10-08 Thread Ola Røer Thorsen
Hi all, I've got a thread in an application (Linux, Qt 5.13.0) which just writes udp datagrams at a relatively high frequency (video streaming). Sometimes the QUdpSocket::writeDatagram function returns -1 and the socket error is "TemporaryError". Looking into the source code of the udp socket class

Re: [Interest] MapboxGL offline and custom vector tiles source

2019-12-22 Thread Ola Røer Thorsen
tor. 19. des. 2019 kl. 17:24 skrev maitai : > We would like to serve custom vector tiles, ideally though an API call > or eventually a local server/stream. We don't want to add data or layers > to an existing mapbox chart, but rather respond to tile queries by > sending our own geojson tiles. We h

Re: [Interest] mapboxgl plugin and glyphs

2019-12-27 Thread Ola Røer Thorsen
> 27. des. 2019 kl. 19:51 skrev maitai : > > Hello, > > Is there a way to specify a specific url for glyphs in mapboxgl plugin? > Define a custom map style with those glyphs and serve it locally is the only way I can think of. Your server needs to serve the glyphs too along with the style.

[Interest] 64bit integer type in QML?

2015-01-14 Thread Ola Røer Thorsen
Hi all, is it possible to use 64bit integers in QML? Looking at the docs at http://doc.qt.io/qt-5/qml-int.html it seems like the integers are 32-bit signed only (by counting the zeros in 20...) Thanks, Ola ___ Interest mailing list Interest@qt-

Re: [Interest] Qt Quick UI Forms & item views: best practices

2015-01-21 Thread Ola Røer Thorsen
Den 2015-01-21 09:24, skrev Alexander Ivash: Yes, your are right, there was an error in my sample, but even fixing it doesn't change a lot: ui.qml files becomes not editable via QtCreator's QML designer due to presence onClicked: root.onClicked(root.model.get(index)); /// this line makes QtCr

[Interest] Custom QtQuick Animator API?

2015-01-22 Thread Ola Røer Thorsen
Hi all, I would like to create a custom Animator class, or something similar that can manipulate a QQuickItem's x and y position from the render thread. The intended use is to move some label items on top of a 3d scene. The labels will follow certain entities in the 3d scene. I know it will mostl

Re: [Interest] Custom QtQuick Animator API?

2015-01-26 Thread Ola Røer Thorsen
Hi Gunnar, thanks for the reply. 2015-01-25 16:42 GMT+01:00 Gunnar Sletta : > > > No such plan, no :) > > Doing custom animations on your nodes is easy using the QSGNode API > though. For instance, like it is done in the “threadedanimation” example: > https://qt.gitorious.org/qt/qtdeclarative/so

[Interest] QtQuick - How to move focus away from disabled Item?

2015-01-28 Thread Ola Røer Thorsen
Hi, I'm having some trouble making a robust QtQuick 5.4-based application where I only have 4 cursor keys and a return key available as the input method for the user. I have various gui buttons that I can move focus between. I've set this up using the KeyNavigation.onXXX etc. For a simple static

Re: [Interest] QtQuick - How to move focus away from disabled Item?

2015-01-28 Thread Ola Røer Thorsen
html > > Hope this help somehow, > Jerome > > > On Wed, Jan 28, 2015 at 9:46 AM, Ola Røer Thorsen > wrote: > >> Hi, >> >> I'm having some trouble making a robust QtQuick 5.4-based application >> where I only have 4 cursor keys and a return key av

Re: [Interest] Pre-compile system

2015-02-24 Thread Ola Røer Thorsen
2015-02-24 8:51 GMT+01:00 Mathieu Slabbinck : > > So my question here: how can I make a qt project that compiles libx > before starting on the app itself, disregarding multiple jobs. > > Hi, I think doing something like this in your subdir project file will help: TEMPLATE = subdirs SUBDIRS = Some

[Interest] Use of enum class, Q_ENUM and QML

2015-04-09 Thread Ola Røer Thorsen
Hi, I'm looking into using enum classes (c++11) and exposing them to QML as a part of planning a new project. It will use Qt 5.5 so I'm using Qt 5.5 alpha for now. I'd like to use enum classes for the enums, but I'm not sure if it is possible to use these in QML. Let's say I have two enums in a c

[Interest] Qt3D 2 and Bullet physics

2015-09-02 Thread Ola Røer Thorsen
Hi all, just wondering if someone has tried using the Bullet physics engine with Qt3D 2.0? Wondering about the best/recommended way to combine these. I'd like to step Bullet's simulation loop and visualize the rigid bodies, basically. Best regards, Ola

[Interest] QAbstractVideoSurface::present - videoframe start/endtime always -1 on windows

2013-06-13 Thread Ola Røer Thorsen
Hi, I've created a custom video player using QMultimedia, that plays back certain video files that are to be post-processed frame-by-frame. The post-process depends on each video frame's start time. I'm using the Qt 5.1 beta release (I use the new desktop QML features). I've created a video su

Re: [Interest] Quick2 - animate sorting of listview, sorted with QSortFilerProxyModel

2013-08-16 Thread Ola Røer Thorsen
Hi again, thanks for all the replies! Nils, thanks for pointing out the beginMoveRows functions and the sample code. So the limitation isn't ListView at all, it's just the QSortFilterProxyModel. I can confirm that using this method the animations do work, as I've now implemented my own sorting an

[Interest] Quick Controls Menu questions

2013-08-23 Thread Ola Røer Thorsen
Hi, I'm planning a Quick2-based application that will run on an embedded Linux device (similar to Raspberry PI) where the application is the only user of the framebuffer (no X11). The application will be controlled by keyboard cursor keys only. I have been doing some mockups on the desktop wit

Re: [Interest] Quick Controls Menu questions

2013-08-26 Thread Ola Røer Thorsen
2013-08-23 16:10, skrev deDietrich Gabriel: > Hi, > > On Aug 23, 2013, at 9:49 AM, Ola Røer Thorsen wrote: > >> - Is it possible to do complete styling of the Menu? There is some >> things in the source code it seems, but it's not documented. Maybe more >> feat

[Interest] Generate key press events in c++ for a Quick2-application?

2013-08-30 Thread Ola Røer Thorsen
I need to generate key press events in c++ (based on packets received via udp), so that these behave like regular key presses in a Quick2-based application. The target platform has a rather specialized non-standard keyboard. I have found some examples on how to do this with widgets, but these

Re: [Interest] Generate key press events in c++ for a Quick2-application?

2013-08-30 Thread Ola Røer Thorsen
Brilliant, it works, thanks :-) Den 2013-08-30 14:24, skrev Tomasz Olszak: 2013/8/30 Ola Røer Thorsen <mailto:o...@silentwings.no>> I need to generate key press events in c++ (based on packets received via udp), so that these behave like regular key presses in a Qui

[Interest] Keyboard navigation in QtQuick.Controls ScrollView?

2013-09-24 Thread Ola Røer Thorsen
Hi, I can't seem to get keyboard navigation working when I embed a ListView in a ScrollView ScrollView { ListView { ... } } just like in the documentation. I've tried enabling focus on both, or just one, and so on. Keyboard navigation works fine on the ListView when used without the

Re: [Interest] Keyboard navigation in QtQuick.Controls ScrollView?

2013-09-25 Thread Ola Røer Thorsen
Hi Jens, thanks for the explanation! Setting interactive to true solved for me (the target platform has no mouse or touch anyway). Best regards, Ola 2013/9/25 Bache-Wiig Jens > > On Sep 24, 2013, at 9:53 AM, Ola Røer Thorsen wrote: > > Hi, > > I can't seem to

[Interest] Custom Quick view to visualize a List-model of points on a map

2013-09-27 Thread Ola Røer Thorsen
Hi, I have a c++ list model that inherits QAbstractListModel. It contains a list of waypoints that amongst other things have x,y screen coordinates. Points are added, removed and values are changed runtime. I want to visualize these in Quick2 on top of a map image. I need to create Quick Items ma

Re: [Interest] Custom Quick view to visualize a List-model of points on a map

2013-09-29 Thread Ola Røer Thorsen
Ah! Thank you, exactly what I was looking for! Best regards, Ola (Sendt fra mobiltelefon) > Den 28. sep. 2013 kl. 16:47 skrev Дмитрий Козлов : > > 27.09.2013 17:22, Ola Røer Thorsen пишет: >> Hi, >> >> I have a c++ list model that inherits QAbstractListModel

[Interest] Fwd: QT Quick Controls - Menu

2013-10-11 Thread Ola Røer Thorsen
> I agree that the documentation is slightly misleading. There is private > API to position the menu at any position, but for the moment it’s still… > private. We may make it public in a way or another if we see demand for > that. > > BTW, what is your exact use case? > > There is definitely a nee

[Interest] use custom fragment shader for Quick2 Image item

2013-10-22 Thread Ola Røer Thorsen
Hi all, I want to use a custom fragment shader when rendering a Image item. Is it possible to set the shader to use directly somehow? That is, I want to use a custom shader instead of the "passthrough" fragment shader used in the Image element. I have tried using the QtGraphicalEffects (GammaAdju

Re: [Interest] use custom fragment shader for Quick2 Image item

2013-10-22 Thread Ola Røer Thorsen
stomImage item. > > I agree that in some cases such a feature would indeed be useful to avoid > having to do this. > > Cheers, > > Sean > > > On 22/10/2013 14:20, Ola Røer Thorsen wrote: > > Hi all, > > I want to use a custom fragment shader when rendering a Im

Re: [Interest] use custom fragment shader for Quick2 Image item

2013-10-25 Thread Ola Røer Thorsen
______ > Fra: > interest-bounces+gunnar.sletta=digia@qt-project.org[interest-bounces+gunnar.sletta= > digia@qt-project.org] på vegne av Ola Røer Thorsen [ > o...@silentwings.no] > Sendt: 22. oktober 2013 15:20 > To: interest@qt-project.org > E

[Interest] Quick2 "ShaderEffect: source or provider missing when binding textures"

2013-11-07 Thread Ola Røer Thorsen
Hi all, if I use a ShaderEffect on an image that is loaded asynchronously, I get the error/debug message on the console: ShaderEffect: source or provider missing when binding textures for every frame rendered until the image is completely loaded and the texture is complete. This means our syste

Re: [Interest] Quick2 "ShaderEffect: source or provider missing when binding textures"

2013-11-08 Thread Ola Røer Thorsen
fined' && source.status == Ready > ... > } > > Should keep it hidden and also remove the warning... > > cheers, > Gunnar > > -- > *Fra:* > interest-bounces+gunnar.sletta=digia@qt-project.org[interest-bounces+gunna

[Interest] Tearing in Quick2 flickable-based items with clipping enabled

2013-11-13 Thread Ola Røer Thorsen
Hi all, I'm seeing tearing-effects when scrolling in ListView and other items based on Flickable when clipping is enabled. This is running on both a Linux desktop as well as an embedded Linux device (eglfs). The Qt version is 5.1.1. The systems are running with vsync enabled and double-buffering.

Re: [Interest] Tearing in Quick2 flickable-based items with clipping enabled

2013-11-13 Thread Ola Røer Thorsen
nar.sletta=digia@qt-project.org[interest-bounces+gunnar.sletta= > digia....@qt-project.org] på vegne av Ola Røer Thorsen [o...@silentwings.no > ] > *Sendt:* 13. november 2013 15:29 > *To:* interest@qt-project.org > *Emne:* [Interest] Tearing in Quick2 flickable-based items with clipp

Re: [Interest] Tearing in Quick2 flickable-based items with clipping enabled

2013-11-14 Thread Ola Røer Thorsen
r a steady 30Hz instead of a 30-60 mix with the occasional tearing. Cheers, Ola 2013/11/13 Ola Røer Thorsen > Hi Gunnar, I'll see if I can create a small example that reproduces it. > > Cheers, > Ola > > > > 2013/11/13 Sletta Gunnar > >> If this con

Re: [Interest] C++ enums undefined in QML

2013-11-15 Thread Ola Røer Thorsen
Did you remember to import your registered type in your qml code? If you register something like this, qmlRegisterType("MyClass",1,0,"MyClass"); where you have your enums then in qml you need to import that type on the top of your code, import MyClass 1.0 Cheers, Ola 2013/11/14 Guido Seifer

[Interest] Keyboard navigation issues in Quick2

2013-11-22 Thread Ola Røer Thorsen
Hi all, here is a case that I find rather limiting and time-consuming. It has to do with focus scopes and keyboard navigation. I'm looking for a best way to deal with the following situation: - I have a ColumnLayout of button-like items, like a popup-menu. - The first item has "focus" set to true

Re: [Interest] Tearing in Quick2 flickable-based items with clipping enabled

2013-11-22 Thread Ola Røer Thorsen
rcissus which contains cpufrequtils and investigate. I really hope I can > document that CPU usage of simple custom QtQuick2-based widgets is > reasonable on DM3730/BB-xM. > > - VStevenP > > -------- > On Wed, 11/20/13, Sletta Gunnar wr

Re: [Interest] Keyboard navigation issues in Quick2

2013-11-22 Thread Ola Røer Thorsen
Hi Liang, thanks for the reply! I will create a bug report right away. Best regards, Ola 2013/11/22 Liang Qi > Hi, Ola, > > Just got notification about your question from others, and subscribed this > mailing list. > http://lists.qt-project.org/pipermail/interest/2013-November/009878.html >

Re: [Interest] Keyboard navigation issues in Quick2

2013-11-22 Thread Ola Røer Thorsen
And here it is: https://bugreports.qt-project.org/browse/QTBUG-35051 2013/11/22 Ola Røer Thorsen > Hi Liang, > > thanks for the reply! I will create a bug report right away. > > Best regards, > Ola > > > > > 2013/11/22 Liang Qi > >> Hi, Ola, >&

[Interest] Not possible to connect QTcpSocket::error signal the "Qt5-way"?

2013-11-22 Thread Ola Røer Thorsen
Hi all, I've started using the new "Qt5" way of connecting signals and slots, to get errors compile-time instead of runtime. Great stuff. Here is one I struggle to connect. If you have a QTcpSocket, and want to handle the error signal in a slot called tcpSocketError, a connect like this: connect

Re: [Interest] Not possible to connect QTcpSocket::error signal the "Qt5-way"?

2013-11-25 Thread Ola Røer Thorsen
e added to this page here, http://qt-project.org/doc/qt-5.1/qtcore/signalsandslots.html ? Cheers, Ola 2013/11/22 Thiago Macieira > On sexta-feira, 22 de novembro de 2013 16:56:47, Ola Røer Thorsen wrote: > > Is this a bug in Qt, or did I not use the correct syntax? I recon this &g

[Interest] Quick2 ListView - set current index to a new item when added

2013-12-09 Thread Ola Røer Thorsen
Hi all, I have a ListView showing a c++ model that changes runtime. Items are added and deleted. When an item is added, how do I set the ListView's current index to the new item? Cheers, Ola ___ Interest mailing list Interest@qt-project.org http://list

[Interest] QuickControls Action "shortcut" property - more detailed description somewhere?

2013-12-09 Thread Ola Røer Thorsen
Hi all, the shortcut property on QuickControls Action uses a string. The documentation on this one is very short: "Shortcut bound to the action. Defaults to the empty string." Is there a list somewhere describing the "string" names of all keys and how to write these as combinations of ctrl, shift

Re: [Interest] Quick2 ListView - set current index to a new item when added

2013-12-09 Thread Ola Røer Thorsen
2013/12/9 Preet > > > Have you tried connecting to the onAdd() signal and then calling > positionViewAtIndex? > > > http://doc-snapshot.qt-project.org/qdoc/qml-qtquick-listview.html#positionViewAtIndex-method > > I was a bit confused about that one, it has to be done like this, right? It's an att

Re: [Interest] Quick2 ListView - set current index to a new item when added

2013-12-09 Thread Ola Røer Thorsen
> > 2013/12/9 Preet > >> >> >> Have you tried connecting to the onAdd() signal and then calling >> positionViewAtIndex? >> >> >> http://doc-snapshot.qt-project.org/qdoc/qml-qtquick-listview.html#positionViewAtIndex-method >> >> I was a bit confused about that one, it has to be done like this, righ

Re: [Interest] Quick2 ListView - set current index to a new item when added

2013-12-12 Thread Ola Røer Thorsen
2013/12/11 Preet > > The index is exposed just as 'index' in the delegate itself. > > Ah. Thank you! Somehow missed that earlier. > > What's the difference between that one and Component.onCompleted? > > I think Component.onCompleted is run any time something creates the > component, which mig

[Interest] QOpenGLFramebufferObject, render to FBO using texture from another Image item?

2013-12-12 Thread Ola Røer Thorsen
I recently discovered the new way of doing render-to-FBO in Qt 5.2.0. It's a major improvement compared with what had to be done previously, I think! :-) However I have run into something tricky as I want to do something more advanced: I need to render some textured geometry into an FBO. The use-

Re: [Interest] QOpenGLFramebufferObject, render to FBO using texture from another Image item?

2013-12-13 Thread Ola Røer Thorsen
unnar *Fra:* interest-bounces+gunnar.sletta=digia@qt-project.org [interest-bounces+gunnar.sletta=digia@qt-project.org] på vegne av Ola Røer Thorsen [o...@silentwings.no] *Sendt:* 12. desember 2013 15:34 *To:* interest@qt-project.org *Emne:* [Interest] QOpenGLFramebufferObject, rend

[Interest] Set custom fragment shader on a QQuickFramebufferObject-based item?

2013-12-17 Thread Ola Røer Thorsen
Is it possible to set a custom fragment shader (for rendering on screen) on an item that is inheriting QQuickFramebufferObject? If so, how? Cheers, Ola ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interes

[Interest] Best practice for properties, QAbstractListModel with a QList and a Quick2 view

2013-12-18 Thread Ola Røer Thorsen
Hi, I have a list of objects at the core of a class inheriting QAbstractListModel, QList m_list; "MyObject" inherits QObject and has many properties (20 or so). I need to access most of these properties in a Quick2 view delegate. To avoid creating roles for each of these properties, I created a

Re: [Interest] Best practice for properties, QAbstractListModel with a QList and a Quick2 view

2013-12-18 Thread Ola Røer Thorsen
Hi Jan! > When working with the QAbstractItemModel, items can only be deleted via > resetting the model, or when removing rows/columns. The row/column removal > shall happen in three phases: > > 1) call beginRemoveRows > 2) remove the internal representation, freeing the MyObject instances > 3) c

Re: [Interest] Having an issue with a font

2014-01-02 Thread Ola Røer Thorsen
2013/12/20 Rogers Nate > I am having an issue where sometimes certain letters of one of the fonts > I am using are getting corrupted. It is not always the same letter, each > time I do a build it changes, one time it may be a W then next time it’s a > c or an h, sometimes it is none. Anyway th

Re: [Interest] QtQuick real-time meter widget question (QML Loader-related)

2014-01-06 Thread Ola Røer Thorsen
2014/1/3 VStevenP > 1. Is there a way to run this meter so that it will not be blocked by any > QML Loader activity? (I have some launcher icons on a sidebar which > control what QML is loaded to appear in the common "desktop" client area of > my display.) > > My hope is that the meter could be

[Interest] Question about reading glsl shader source from a QResource using compression

2014-01-13 Thread Ola Røer Thorsen
Hi all, I've been looking at the Scene Graph - Graph example application included with Qt5.2.0, to see how to create a custom shader material for Qt Quick. In linenode.cpp, there is a LineShader class, where the shaders are read like so: const char *vertexShader() const { QResource

Re: [Interest] Question about reading glsl shader source from a QResource using compression

2014-01-14 Thread Ola Røer Thorsen
> > > I think the example is just doing it wrong, it should instead load the > resource file contents using QFile into two QByteArrays into the ctor > and then return the QByteArrays' contents there. > > Right. Thanks for the feedback! I'll use QFile to be sure, in case compression is enabled. Che

[Interest] Caching of compiled/initialized qml code to disk possible?

2014-01-15 Thread Ola Røer Thorsen
Hi all, I have an application written with Qt 5.2 in C++ and QtQuick2, running on a low-end ARM device. I use the Loader item to select between various screens in the application (I've currently got 6 screens or so). This way I can limit the amount of active bindings at a given time, etc. The fir

Re: [Interest] QML and video

2014-01-17 Thread Ola Røer Thorsen
Not directly answering your question Jeff, but anyway, I recommend looking into using bc-cat on the SGX if possible. http://processors.wiki.ti.com/index.php/OpenGLES_Texture_Streaming_-_bc-cat_User_Guide You will have to write your own video render item for Qt Quick, because you need a special te

[Interest] Qt Quick Scene Graph, texture questions, Qt 5.2.0

2014-01-20 Thread Ola Røer Thorsen
Hi, I've got 3 questions about texture use in the Qt Quick scene graph: 1. In general it's recommended in OpenGL to use power-of-two-sized textures whenever possible, for performance resons. Does the Qt Quick scenegraph deal with this in any way, or is it up to the user to use properly sized imag

[Interest] PVRTC textures in Qt Quick 2?

2014-01-20 Thread Ola Røer Thorsen
Is it possible to use PVRTC texture compression in Qt Quick 2 on PowerVR gpus? If not, what would it take to add such a feature? I searched through the Qt 5.2.0 source code, seems there was PVRTC support in the old "QGL*" classes, but nothing in the "QOpenGL*" classes. Cheers, Ola ___

Re: [Interest] PVRTC textures in Qt Quick 2?

2014-01-20 Thread Ola Røer Thorsen
2014/1/20 Gunnar Sletta > You can install a custom image provider that provides the PowerVR texture > directly as a QSGTexture. In the scenegraph playground repository there is > already a plugin that does this for AMD compressed textures. You can use > that as a basis for your code. > > > https:

Re: [Interest] Qt Quick Scene Graph, texture questions, Qt 5.2.0

2014-01-20 Thread Ola Røer Thorsen
Thanks Gunnar :-) ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

[Interest] How do properly deal with items being disabled in a focus scope in Quick2 (5.2.0)?

2014-01-22 Thread Ola Røer Thorsen
I've got a custom menu item (ColumnLayout-based), where the items inside are some custom button items. Each item is set up with KeyNavigation so that active focus is moved up and down using the cursor keys. If a button item's "enabled" property is set to false while having active focus, it's not p

Re: [Interest] How do properly deal with items being disabled in a focus scope in Quick2 (5.2.0)?

2014-01-23 Thread Ola Røer Thorsen
> Onsdag 22. januar 2014 13.46.03 skrev Ola Røer Thorsen: > > I've got a custom menu item (ColumnLayout-based), where the items inside > > are some custom button items. Each item is set up with KeyNavigation so > > that active focus is moved up and down using the cursor key

[Interest] Using QMediaplayer with QAbstractVideoSurface on Android?

2014-05-13 Thread Ola Røer Thorsen
Hi all, I've got a custom video player application currently being used on Linux (embedded with EGLFS), Desktop Linux and Windows 7. Now trying to deploy it on Android as well, but I'm facing some problems. I'm using the Qt 5.3.0 RC version. The application uses Qt Quick2. The video playing part

Re: [Interest] Using QMediaplayer with QAbstractVideoSurface on Android?

2014-05-19 Thread Ola Røer Thorsen
2014-05-13 17:00 GMT+02:00 Lopes Yoann : > On May 13, 2014, at 4:52 PM, Lopes Yoann wrote: > > > Another thing you need to know is that the texture you'll get uses the > GL_TEXTURE_EXTERNAL_OES texture target and not the regular GL_TEXTURE_2D > target. You can find some information about this here

[Interest] Qt Resource Compiler - why does it randomize the order of items?

2014-05-19 Thread Ola Røer Thorsen
Hi, If I call rcc (the Qt Resource Compiler) twice using the exact same input, the resulting .cpp files are never exactly the same. They are all completely valid, just the ordering of "items" inside is different. I'm just curious, why? Cheers, Ola ___ I

Re: [Interest] Qt Resource Compiler - why does it randomize the order of items?

2014-05-20 Thread Ola Røer Thorsen
2014-05-20 2:01 GMT+02:00 Thiago Macieira : > Em seg 19 maio 2014, às 23:10:10, André Pönitz escreveu: > > > It's due to the hash randomisation. This was done to avoid DoS attacks > > > that > > > can be performed by tweaking data to ensure it always falls into the > same > > > hash bucket. > > >

[Interest] Setting propery values on Q_GADGET-based objects in qml possible?

2017-06-20 Thread Ola Røer Thorsen
Hi all, I have a Q_GADGET-based class with properties that I instantiate in C++ and expose to qml via QVariant in a list model. The class is registered to Qt and Qml using Q_DECLARE_METATYPE, qRegisterMetaType and qmlRegisterUncreatableType. The properties are defined like this: class MyGadget {

Re: [Interest] Setting propery values on Q_GADGET-based objects in qml possible?

2017-06-20 Thread Ola Røer Thorsen
2017-06-20 13:52 GMT+02:00 Ola Røer Thorsen : > function doStuff() { >var o = theGadget; >console.log("o.name"); // prints "Name" >o.name = "Some other name"; // No error, but nothing really happens > either >console.log("o.

[Interest] How to get in touch with the Qt Company sales people?

2017-09-27 Thread Ola Røer Thorsen
to go unnoticed. If anyone on this list from the Qt Company can give me some valid contact information please send me an email. Best regards, Ola Røer Thorsen o...@silentwings.no ___ Interest mailing list Interest@qt-project.org http://lists.qt

[Interest] Set transparent fill on map using mapboxgl plugin

2017-10-23 Thread Ola Røer Thorsen
Hi, I'm evaluating using QtLocation's map using mapboxgl. Currently I'm using the default settings, default map style, default developer access token. I'd like to set most layers' fill color to transparent, to see how it works out as an overlay on top of some live video. >From the documentation i

Re: [Interest] Set transparent fill on map using mapboxgl plugin

2017-10-24 Thread Ola Røer Thorsen
2017-10-24 12:36 GMT+02:00 Paolo Angelelli : > > For your specific problem, if this is going to work, it's probably by > setting some of the properties described > in https://www.mapbox.com/mapbox-gl-js/style-spec/#layers-fill > > Thanks for the reply! I got it working, after I figured out that th

Re: [Interest] Set transparent fill on map using mapboxgl plugin

2017-10-24 Thread Ola Røer Thorsen
> > MapParameter { > type: "paint" > property var layer: "water-shadow" > property var fillOpacity: 0.1 > } > > ... sorry for accidentally pressing send. It seems like the map does not handle transparency properly. I also tried cr

[Interest] Webgl (streaming) platform plugin in Qt 5.10 missing?

2017-10-26 Thread Ola Røer Thorsen
Is the new webgl streaming platform plugin supposed to be included in the Qt 5.10 Linux installer, or do I have to build Qt from source to use this? The platform plugin is as far as I can see not included in the current beta2 (installed using the online installer). Ola ___

Re: [Interest] How to make a looping element?

2018-01-29 Thread Ola Røer Thorsen
Try the RotationAnimation item and set the direction property to shortest. http://doc.qt.io/qt-5/qml-qtquick-rotationanimation.html Cheers, Ola > Den 29. jan. 2018 kl. 02.15 skrev Jason H : > > I am trying to make a compass control, something that shows 0-360, like a > boat compass. It's got

Re: [Interest] Two from one.

2018-02-08 Thread Ola Røer Thorsen
2018-02-08 13:56 GMT+01:00 william.croc...@analog.com < william.croc...@analog.com>: > I have an application. > I would like to rearchitect it were 90% is in a shared library. > I would use that lib to link a main application. > I would like to create a single .pro file that can be > used to creat

[Interest] Efficiently render QtQuick-scene and encode to H264 on i.MX6 VPU?

2018-03-22 Thread Ola Røer Thorsen
Hi, I need to render a Qt Quick scene and stream it as H264 data on an i.MX6-device running Linux. The use case is to be used live with as little latency as possible. I'm thinking of using the QQuickRenderControl class. The easy way is probably to render the scene to a QOpenGLFramebufferObject, c

Re: [Interest] Efficiently render QtQuick-scene and encode to H264 on i.MX6 VPU?

2018-03-23 Thread Ola Røer Thorsen
Hi Gunnnar, thanks a lot, this gives me a good starting point. I didn't know I could use GL_viv_direct_texture "in reverse" like this, I'll try it out. Already using it to stream decoded h264 video to a texture for rendering to the screen. I don't know which one will work best, but you want to av

Re: [Interest] Efficiently render QtQuick-scene and encode to H264 on i.MX6 VPU?

2018-03-23 Thread Ola Røer Thorsen
setting the environment variable QT_QPA_EGLFS_FB to my virtual device. I'd like to avoid this if possible. Cheers, Ola 2018-03-23 9:12 GMT+01:00 Ola Røer Thorsen : > Hi Gunnnar, > > thanks a lot, this gives me a good starting point. I didn't know I could > use GL_viv_direct_texture &quo

[Interest] QTimer at 30Hz interval?

2018-04-04 Thread Ola Røer Thorsen
is there some nice trick to make a QTimer trigger at 30 Hz? This interval can't be expressed properly in milliseconds (1000/30 = 33.33...) My use case is for Linux only so I'd be happy with some Linux-specific way of triggering a signal at 30 Hz too. It won't have to be very precise for each t

  1   2   >