Re: [Interest] How to programatically make a tab's text bold?

2018-04-04 Thread André Pönitz
On Wed, Apr 04, 2018 at 05:10:07AM +, Vadim Peretokin wrote: > How can I programatically make a tab's text bold? I'm looking to notify the > user that they need to look at it. > > Note that this is different from using a stylesheet to set the selected tab > bold - I'd like to set any random ta

Re: [Interest] Video Filters on Android

2018-04-04 Thread Jason H
Moving to Samsung (OpenCL 1.1), I get: When linking... error: undefined reference to 'clCreateFromGLTexture2D' error: undefined reference to 'clCreateFromGLTexture2D' error: undefined reference to 'clEnqueueAcquireGLObjects' error: undefined reference to 'clEnqueueReleaseGLObjects' collect2: erro

Re: [Interest] Video Filters on Android

2018-04-04 Thread Jason H
No joy :-( I think this is only a problem with Google Phones though. The original Pixel had this problem too (according to the internet) Why Google!?   I wrote a script to pull & inspect :   $ ./inspect_wrapper cl /system/lib/libGLESv1_CM.so          U __aeabi_memclr /system/lib/libGLESv3.so  

Re: [Interest] Video Filters on Android

2018-04-04 Thread René Hansen
I don't have a Pixel myself, but have you checked that OpenCL isn't rolled up into */vendor/lib/egl/libEGL_adreno.so*. I know that is the case for some phones with Mali chipsets at least. Here's a list of *cl* symbols from one I pulled from a Samsung Galaxy S7: $ ~/Code/Android/android-ndk-r10e/to

Re: [Interest] Video Filters on Android

2018-04-04 Thread Jason H
 I should find it there yes. But the irony is that I can't find it anywhere. Meanwhile the Samsung has it where you would expect. I'm looking for an OpenGL for it, but the Adreno SDK doesn't have it. Any idea where I mght find it?   Many thanks.   taimen:/ $ find . -name *CL*  2> /dev/null ./s

Re: [Interest] Video Filters on Android

2018-04-04 Thread René Hansen
You'll probably find it at */vendor/lib/libOpenCL.so.* I'm not sure which version of OpenGL ES you need, but you have both versions available to link against using the NDK at least. I've been wanting to do a writeup on the whole QML videofilter -> OpenCL pipeline through shared GL context, but ha

Re: [Interest] Video Filters on Android

2018-04-04 Thread Jason H
Thanks! I'm trying to do this on a Pixel 2 XL, but there is no libOpenCL.so on it! (directory listing included later)   I'm searching for it. I'm looking at the Aredno SDK,    I'm sort of at a loss for what all I need to include for android. You mention GLESv2, but you also mention v3.    ta

Re: [Interest] QTimer at 30Hz interval?

2018-04-04 Thread Jason H
Easy! You can't! But you can come very close. Remember on a multitasking OS, you're dealing with a time division multiplexing, and a scheduler, so getting scheduled at 30hz is impossible. But there are a few things you can do. On linux you (a process) can set your priority and even scheduling m

Re: [Interest] How to programatically make a tab's text bold?

2018-04-04 Thread Vadim Peretokin
Thanks a ton! Works. On Wed, Apr 4, 2018 at 12:07 PM Igor Mironchik wrote: > > #include > #include > #include > #include > #include > #include > > class Style : public QProxyStyle > { > public: > Style( QTabBar * bar ) > :m_boldTab( 0 ) > ,m_bar( bar ) > { >

Re: [Interest] How to programatically make a tab's text bold?

2018-04-04 Thread Igor Mironchik
#include #include #include #include #include #include class Style : public QProxyStyle { public:     Style( QTabBar * bar )         :    m_boldTab( 0 )         ,    m_bar( bar )     {     }     ~Style()     {     }     void drawControl( ControlElement element,         const QStyleOption

Re: [Interest] How to programatically make a tab's text bold?

2018-04-04 Thread René Hansen
Alternatively suffix an asterisk; Tab -> Tab*. Then remove it on highlight. /René On Wed, 4 Apr 2018 at 09:47 Vadim Peretokin wrote: > On Wed, Apr 4, 2018 at 7:35 AM Hamish Moffatt > wrote: > >> On 04/04/18 15:10, Vadim Peretokin wrote: >> > How can I programatically make a tab's text bold? I'

Re: [Interest] Video Filters on Android

2018-04-04 Thread René Hansen
I never got that specific example to work, but assuming you're building with the Android NDK, you can include: #include #include Which will give you access to *eglGetCurrentContext()*. I'm using the r10e ndk, since that's what works with Qt at the moment. GLES v3 is available in toolchain v21:

Re: [Interest] Home built of the "official" Maintenance Tool

2018-04-04 Thread René J . V . Bertin
OK, I figured this out. With the risk of kicking in open doors: - the maintenancetool/MaintenanceTool binary is "just" the installerbase executable. On Mac it will be modified to depend on embedded Qt frameworks by the actually installer when it writes the MaintenanceTool bundle, but it fails to

Re: [Interest] QTimer at 30Hz interval?

2018-04-04 Thread René Reucher
On 04/04/18 09:52, Daniel Engelke wrote: What about QElapsedTimer you can get nanoseconds out of it. Yeah, but it doesn't have signals to fire on a timeout... QElapsedTimer's major purpose is measuring time, not sending (repeated) signals. So it's more like QTime, not like QTimer. Cheers, Ren

Re: [Interest] QTimer at 30Hz interval?

2018-04-04 Thread Konstantin Shegunov
> > one at 30 ms, and one at 31 ms > I meant 33 and 34 ms, but you get the idea. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] QTimer at 30Hz interval?

2018-04-04 Thread Konstantin Shegunov
Hi, Just an idea: I believe by default QTimer doesn't have that fidelity, however you can check if your platform supports Qt::PreciseTimer and stagger two of them, one at 30 ms, and one at 31 ms. Both would go to one handler, where you check if the timeout has expired and trigger the needed slot on

Re: [Interest] QTimer at 30Hz interval?

2018-04-04 Thread Daniel Engelke
What about QElapsedTimer you can get nanoseconds out of it. Br Daniel From: René Reucher To: Sent: 4/4/2018 9:42 AM Subject: Re: [Interest] QTimer at 30Hz interval? On 04/04/18 09:33, Ola Røer Thorsen wrote: > is there some nice trick to make a QTimer trigger at 30 Hz? This

Re: [Interest] How to programatically make a tab's text bold?

2018-04-04 Thread Vadim Peretokin
On Wed, Apr 4, 2018 at 7:35 AM Hamish Moffatt wrote: > On 04/04/18 15:10, Vadim Peretokin wrote: > > How can I programatically make a tab's text bold? I'm looking to > > notify the user that they need to look at it. > > > > Note that this is different from using a stylesheet to set the > > select

Re: [Interest] QTimer at 30Hz interval?

2018-04-04 Thread René Reucher
On 04/04/18 09:33, Ola Røer Thorsen wrote: 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

[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