Re: [Interest] How are High DPI Icons supposed to work?

2015-09-29 Thread Julius Bullinger
On Tuesday, 29 September 2015 08:32 Thiago Macieira wrote: > And QT_DEVICE_PIXEL_RATIO is deprecated -- it will print a qWarning in Qt 5.6 > now. Please don't set it. I know about the upcoming changes in 5.6, but AFAIK this the only option in 5.5 right now. But please enlighten me if there's a

Re: [Interest] How are High DPI Icons supposed to work?

2015-09-29 Thread Julius Bullinger
On 29/09/15 08:51, Hamish Moffatt wrote: > On 29/09/15 16:27, Julius Bullinger wrote: >> They are only used where I explicitly requested the @2x icon. Maybe I >> misunderstand the whole thing, but I was under the impression that the >> i...@2x.png file should be used transparently if icon.png

Re: [Interest] How are High DPI Icons supposed to work?

2015-09-29 Thread Hamish Moffatt
On 29/09/15 16:27, Julius Bullinger wrote: > On 29/09/15 08:12, Hamish Moffatt wrote: Your code looks ok. You didn't say what the problem was? >>> You're right, I'm sorry for that. As you can see in the attached >>> screenshot, the @2x icon is not actually used in a high DPI/DPR application:

[Interest] Qt at iOS - Custom Storyboard Launch Screen

2015-09-29 Thread Robert Iakobashvili
Hi, It seems that the instructions below for custom Launch Screen are irrelevant for XCode-7 Storyboard Launch Screen: http://doc.qt.io/qt-5/platform-notes-ios.html I'm working with QtCreator 3.5.0 and Qt-5.5.1-source, recent snapshot. When adding a new Launch Screen from Xcode-7 by File -> New

Re: [Interest] How are High DPI Icons supposed to work?

2015-09-29 Thread Julius Bullinger
On 29/09/15 08:12, Hamish Moffatt wrote: >>> Your code looks ok. You didn't say what the problem was? >> You're right, I'm sorry for that. As you can see in the attached screenshot, >> the @2x icon is not actually used in a high DPI/DPR application: > I'm still a bit confused, as it looks like

Re: [Interest] How are High DPI Icons supposed to work?

2015-09-29 Thread Thiago Macieira
On Tuesday 29 September 2015 16:10:57 Hamish Moffatt wrote: > > This is with QT_DEVICE_PIXEL_RATIO set to both '2' and 'auto'. > > I've only worked with this stuff on Mac, and there there's no need to > set any variables like that. And QT_DEVICE_PIXEL_RATIO is deprecated -- it will print a

Re: [Interest] How are High DPI Icons supposed to work?

2015-09-29 Thread Adam Light
On Tue, Sep 29, 2015 at 1:20 AM, Julius Bullinger < julius.bullin...@asctec.de> wrote: > On Tuesday, 29 September 2015 08:32 Thiago Macieira wrote: > > And QT_DEVICE_PIXEL_RATIO is deprecated -- it will print a qWarning in > Qt 5.6 now. Please don't set it. > > I know about the upcoming changes

Re: [Interest] How are High DPI Icons supposed to work?

2015-09-29 Thread Hamish Moffatt
On 28/09/15 17:27, Julius Bullinger wrote: >> Your code looks ok. You didn't say what the problem was? > You're right, I'm sorry for that. As you can see in the attached screenshot, > the @2x icon is not actually used in a high DPI/DPR application: I'm still a bit confused, as it looks like the

[Interest] system, general and fixed font on Linux

2015-09-29 Thread René J . V . Bertin
Hi, Looking at the output from the qtdiag app from a newly built Qt 5.5.0 install (installed into /opt/local), I noticed that its system, general and fixed width fonts were fonts I apparently chose one way or another, at some point in the past. Where is this information obtained from, I can't

Re: [Interest] Strategies to create dialog boxes dynamically in Qml

2015-09-29 Thread Mark Tucker
Hello Nuno, In finishUIDDialogCreation() (after your check for it being null) you can connect the signals you're emitting from your dialog to another function of your choice, for instance if you had a function named "handleOKClicked" then you can do this:

Re: [Interest] Qt at iOS - Custom Storyboard Launch Screen

2015-09-29 Thread Liang Jian
Hi Robert, In our project, we use nearly the same method to create launch screen except that we use a .xib file to specify launch screen layout. It works well in both debug and release build. If you iphone runs iOS 9, please note that there is a bug in iOS 9 which will prevent launch

Re: [Interest] Qt at iOS - Custom Storyboard Launch Screen

2015-09-29 Thread Robert Iakobashvili
Dear Liang Jian, Thank you for your input. 1. Qt-generated Debug projects: It's interesting that for Qt-generated Debug projects, it runs properly from QtCreator application run, but not in Debugger. Black screen if running such projects from Xcode. 2. Qt-generated Release projects: Launch

Re: [Interest] Setting current QOpenGLContext with an EGLContext

2015-09-29 Thread Thomas Sevaldrud
It works if I add a dummy OffscreenSurface and make my context current on this before making the PBuffer current. Not sure if this is the best way of doing it though? - Thomas On Tue, Sep 29, 2015 at 11:37 AM, Thomas Sevaldrud wrote: > Hi, > > I'm still working on the

Re: [Interest] QCameraViewfinder & screen orientation changed on iOS

2015-09-29 Thread Daniel França
I'd a problem with orientation using QML VideoOutput, not exactly the same, but the autoOrientation had some bugs, i.e: Doesn't recognize the Qt .InvertedPortraitOrientation orientation. I tried to fix it, instead assigning the angle in the events: onWidthChanged onHeightChanged Maybe it can

[Interest] Strategies to create dialog boxes dynamically in Qml

2015-09-29 Thread Nuno Santos
Hi, I’m trying to implement a custom dialog box on qml using dynamic object creation methods. I’m using the javascript approach to create the component and then the object. The object appears on the scene and it has two buttons. The question is. What are the strategies available to receive the

[Interest] [Qt3D] Node's parent-child relationship clarification, please?

2015-09-29 Thread Émeric MASCHINO
Hi, In classical scenegraph approach, the path to a node gives the relationships between the nodes. For example, the following path root -> transform -> mesh means that the mesh node will be applied the transform given by the transform node. The scenegraph's root is the parent of the transform

[Interest] Show window without 'active' or 'focus'

2015-09-29 Thread Nesuan Taiso
How do I show a window without making it 'active' or giving it 'focus'. If I understand correctly: - a widget may be 'active' in which case it is drawn differently, for example an 'active' QTextEdit has a blinking cursor. - a widget may have 'focus' in which case it is the recipient of keyboard

[Interest] Setting current QOpenGLContext with an EGLContext

2015-09-29 Thread Thomas Sevaldrud
Hi, I'm still working on the EGL PBuffer/DirectX integration through Qt that I posted about last week :-) Thanks to good help from this list I now have the PBuffer and DirectX texture set up with the share handle. I also have a QOpenGLContext which I have used to set up the EGL PBuffer. I don't

[Interest] QAbstractVideoSurface as viewfinder on iOS

2015-09-29 Thread Igor Mironchik
Hi guys, I decided to implement my custom video surface and use it as view finder with QCamera. I wrote: ViewFinderSurface::ViewFinderSurface( const QCamera & camera, QObject * parent ) :QAbstractVideoSurface( parent ) ,m_camera( camera ) { } bool

Re: [Interest] Setting current QOpenGLContext with an EGLContext

2015-09-29 Thread Agocs Laszlo
Well, there’s no nice solution since QOffscreenSurface is backed by a window, not a pbuffer on Windows. (arguably this should be changed in some future release, for ANGLE at least, but that won’t help you now) You can make a QOpenGLContext current with a QOffscreenSurface, then call

Re: [Interest] How are High DPI Icons supposed to work?

2015-09-29 Thread Philippe
Well, an application should be able to enable or disable HDPI support at Qt startup, programatically. Philippe On Tue, 29 Sep 2015 08:42:44 -0700 Thiago Macieira wrote: > On Tuesday 29 September 2015 05:55:01 Adam Light wrote: > > On Tue, Sep 29, 2015 at 1:20 AM,

Re: [Interest] How are High DPI Icons supposed to work?

2015-09-29 Thread Thiago Macieira
On Tuesday 29 September 2015 17:49:29 Philippe wrote: > Well, an application should be able to enable or disable HDPI support at > Qt startup, programatically. Agreed. But that means an API, not an environment variable. Qt Creator did the same thing: it set the variable via qputenv in its main

Re: [Interest] system, general and fixed font on Linux

2015-09-29 Thread Thiago Macieira
On Tuesday 29 September 2015 15:18:09 René J.V. Bertin wrote: > Hi, > > Looking at the output from the qtdiag app from a newly built Qt 5.5.0 > install (installed into /opt/local), I noticed that its system, general and > fixed width fonts were fonts I apparently chose one way or another, at some

Re: [Interest] Strategies to create dialog boxes dynamically in Qml

2015-09-29 Thread Nuno Santos
Thanks guys for your replies! It helped a lot! :) > On 29 Sep 2015, at 14:09, Mark Tucker wrote: > > Hello Nuno, > > In finishUIDDialogCreation() (after your check for it being null) you can > connect the signals you're emitting from your dialog to another function

Re: [Interest] How are High DPI Icons supposed to work?

2015-09-29 Thread Thiago Macieira
On Tuesday 29 September 2015 05:55:01 Adam Light wrote: > On Tue, Sep 29, 2015 at 1:20 AM, Julius Bullinger < > > julius.bullin...@asctec.de> wrote: > > On Tuesday, 29 September 2015 08:32 Thiago Macieira wrote: > > > And QT_DEVICE_PIXEL_RATIO is deprecated -- it will print a qWarning in > > > >

[Interest] QJSEngine leaking memory from QObjects until eval() is complete

2015-09-29 Thread Andrew Mulbrook
I'm toying with an application that uses QJSEngine to perform queries and build reports. Mostly, I was curious how well JavaScript + QObjects would be up to the job. So far, it's been going great. However, I ran into a small hurdle today. It appears that QJSEngine when garbage collecting

[Interest] Animation control and high DPI effects

2015-09-29 Thread Bob Hood
Hi, guys. This may be a little rambling, so I apologize. I recently re-wrote an older, stand-alone application that was using a fairly archaic framework to use Qt5. In designing the UI, I implemented some animation support (via QPropertyAnimation) on the widgets on the interface. I found

Re: [Interest] QCameraViewfinder & screen orientation changed on iOS

2015-09-29 Thread Igor Mironchik
Problem is still actual. I refused from QCameraViewfinder. The main problem is that QCameraViewfinder eat resourses and on UI rotation widget doesn't updates its layouts and so on. In my implementation of view finder before drawing frame I invoke QCoreApplication::processEvents(). Without it

Re: [Interest] iOS Simulator QMenuBar font.

2015-09-29 Thread Igor Mironchik
Solved. This is because I use graphics effect set on menu bar. On iOS don't use any graphics effects on widgets, because drawing will be ugly, especially of fonts... On 24.09.2015 10:42, Igor Mironchik wrote: > Hi, > > Why on iOS QMenuBar draws text so ugly? And look on the submenu... > There

[Interest] QCamera and different resolution for view finder and capturing...

2015-09-29 Thread Igor Mironchik
Hi, I found that if set resolution for view finder, and set capture mode of camera to CaptureViewfinder then capturing of images is going in the same resolution. In my case this is small one. What I do. I set resolution of view finder to some small one. It's ok. When user press capture button

Re: [Interest] QAbstractVideoSurface as viewfinder on iOS

2015-09-29 Thread Igor Mironchik
Solved. The solution is simple: I didn't map QVideoFrame. That is why frame was empty... On 29.09.2015 14:21, Igor Mironchik wrote: > Hi guys, > > I decided to implement my custom video surface and use it as view > finder with QCamera. > > I wrote: > > ViewFinderSurface::ViewFinderSurface(

Re: [Interest] Qt 5.5 WinRT x64 VS2013 applications fail WACK Direct3D tests

2015-09-29 Thread Andrew Knight
Hi Alexander, First of all, thanks for bringing this to our attention. The lack of Trim() was a regression we let in 5.5.0, although the additional D3D tests failures are caused by new items in the Windows 10 WACK. The fix is now in the 5.5.1 branch of qtbase and will be part of the 5.5.1