Re: [Interest] black screen with iOS app over airplay?

2017-05-24 Thread Tor Arne Vestbø

https://bugreports.qt.io/browse/QTBUG-56768

On 13/05/2017 18:56, Patrick Stinson wrote:

Hmm. This did not work for me and I am starting to realize that there
are more problems in the Qt code than we may be aware.

One problem, and maybe the main problem, is that Qt seems to incorrectly
rely on the OS view that is created when the app is created, but this
view doesn’t persist when airplay is engaged or when it is disengaged. I
think any of us could see this problem when you disable airplay
mirroring while running a Qt app and the app crashes.

This problem also appears to prevent Reflector 2 from showing the
mirrored view of the iPad app when running the Qt app, which I can only
interpret to mean that the Qt view is not complying with the OS’s
standardized view API. Reflector works fine when another app or
launchpad (desktop) is shown.

So there is some work to do here…I wish I was better with UIKit to
troubleshoot.



On May 12, 2017, at 2:11 PM, bralche...@ics.com
 wrote:

Yes, I think that’s the one.


Regards,
Boris Ralchenko.






On May 12, 2017, at 5:08 PM, Patrick Stinson mailto:patrickk...@gmail.com>> wrote:

Do you mean QMainWindow? That is the class that I am deriving from.

On May 12, 2017, at 1:38 PM, bralche...@ics.com
 wrote:


On main window, in our case it was derived from QQuickView.

Regards,
Boris Ralchenko.






On May 12, 2017, at 4:33 PM, Patrick Stinson mailto:patrickk...@gmail.com>> wrote:

Oh excellent. Which object do you call setGeometry on?

On May 12, 2017, at 1:13 PM, bralche...@ics.com
 wrote:


Patrick,

you have to setGeometry(QRect screenGeometry) explicitly.
screenGeometry should be queried from iOS directly, like this:

constCGRectr=[[UIScreenmainScreen]bounds];
returnQRect(0,0,r.size.width,r.size.height);


We had similar problem, black screen with AirPlay or with HDMI
dongle. This solved it for us.

Regards,
Boris Ralchenko.






On May 11, 2017, at 9:16 PM, Patrick Stinson
mailto:patrickk...@gmail.com>> wrote:

Hello! Has anyone else had a problem with Qt apps only showing as
a black screen when mirroring an iOS device over airplay? Other
apps display fine, but then the AirPlay display turns black when
the Qt app is brought to the front.

Granted, I am using Reflector 2 to show the iPad screen on my Mac
with latest macOS Sierra, (in order to show the iPad on a
projector), but it just uses the AirPlay protocol on the iOS end
so I assume it is a problem with the Qt iOS view.

Thanks!___
Interest mailing list
Interest@qt-project.org 
http://lists.qt-project.org/mailman/listinfo/interest











___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] black screen with iOS app over airplay?

2017-05-16 Thread Patrick Stinson
Mange takk, Tor Arne. I’ll follow the issue there.

> On May 16, 2017, at 11:10 AM, Tor Arne Vestbø  wrote:
> 
> https://bugreports.qt.io/browse/QTBUG-56768 
> 
> 
> On 13/05/2017 18:56, Patrick Stinson wrote:
>> Hmm. This did not work for me and I am starting to realize that there
>> are more problems in the Qt code than we may be aware.
>> 
>> One problem, and maybe the main problem, is that Qt seems to incorrectly
>> rely on the OS view that is created when the app is created, but this
>> view doesn’t persist when airplay is engaged or when it is disengaged. I
>> think any of us could see this problem when you disable airplay
>> mirroring while running a Qt app and the app crashes.
>> 
>> This problem also appears to prevent Reflector 2 from showing the
>> mirrored view of the iPad app when running the Qt app, which I can only
>> interpret to mean that the Qt view is not complying with the OS’s
>> standardized view API. Reflector works fine when another app or
>> launchpad (desktop) is shown.
>> 
>> So there is some work to do here…I wish I was better with UIKit to
>> troubleshoot.
>> 
>> 
>>> On May 12, 2017, at 2:11 PM, bralche...@ics.com
>>> > wrote:
>>> 
>>> Yes, I think that’s the one.
>>> 
>>> 
>>> Regards,
>>>Boris Ralchenko.
>>> 
>>> 
>>> 
>>> 
>>> 
 On May 12, 2017, at 5:08 PM, Patrick Stinson >>> 
 >> wrote:
 
 Do you mean QMainWindow? That is the class that I am deriving from.
 
 On May 12, 2017, at 1:38 PM, bralche...@ics.com 
 > wrote:
 
> On main window, in our case it was derived from QQuickView.
> 
> Regards,
>Boris Ralchenko.
> 
> 
> 
> 
> 
>> On May 12, 2017, at 4:33 PM, Patrick Stinson > 
>> >> wrote:
>> 
>> Oh excellent. Which object do you call setGeometry on?
>> 
>> On May 12, 2017, at 1:13 PM, bralche...@ics.com 
>> 
>> > wrote:
>> 
>>> Patrick,
>>> 
>>> you have to setGeometry(QRect screenGeometry) explicitly.
>>> screenGeometry should be queried from iOS directly, like this:
>>> 
>>> constCGRectr=[[UIScreenmainScreen]bounds];
>>> returnQRect(0,0,r.size.width,r.size.height);
>>> 
>>> 
>>> We had similar problem, black screen with AirPlay or with HDMI
>>> dongle. This solved it for us.
>>> 
>>> Regards,
>>>Boris Ralchenko.
>>> 
>>> 
>>> 
>>> 
>>> 
 On May 11, 2017, at 9:16 PM, Patrick Stinson
 mailto:patrickk...@gmail.com> 
 >> wrote:
 
 Hello! Has anyone else had a problem with Qt apps only showing as
 a black screen when mirroring an iOS device over airplay? Other
 apps display fine, but then the AirPlay display turns black when
 the Qt app is brought to the front.
 
 Granted, I am using Reflector 2 to show the iPad screen on my Mac
 with latest macOS Sierra, (in order to show the iPad on a
 projector), but it just uses the AirPlay protocol on the iOS end
 so I assume it is a problem with the Qt iOS view.
 
 Thanks!___
 Interest mailing list
 Interest@qt-project.org  
 >
 http://lists.qt-project.org/mailman/listinfo/interest 
 


smime.p7s
Description: S/MIME cryptographic signature
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] black screen with iOS app over airplay?

2017-05-13 Thread Patrick Stinson
Hmm. This did not work for me and I am starting to realize that there are more 
problems in the Qt code than we may be aware.

One problem, and maybe the main problem, is that Qt seems to incorrectly rely 
on the OS view that is created when the app is created, but this view doesn’t 
persist when airplay is engaged or when it is disengaged. I think any of us 
could see this problem when you disable airplay mirroring while running a Qt 
app and the app crashes.

This problem also appears to prevent Reflector 2 from showing the mirrored view 
of the iPad app when running the Qt app, which I can only interpret to mean 
that the Qt view is not complying with the OS’s standardized view API. 
Reflector works fine when another app or launchpad (desktop) is shown.

So there is some work to do here…I wish I was better with UIKit to troubleshoot.


> On May 12, 2017, at 2:11 PM, bralche...@ics.com wrote:
> 
> Yes, I think that’s the one. 
> 
> 
> Regards,
> Boris Ralchenko.
> 
> 
> 
> 
> 
>> On May 12, 2017, at 5:08 PM, Patrick Stinson > > wrote:
>> 
>> Do you mean QMainWindow? That is the class that I am deriving from.
>> 
>> On May 12, 2017, at 1:38 PM, bralche...@ics.com  
>> wrote:
>> 
>>> On main window, in our case it was derived from QQuickView. 
>>> 
>>> Regards,
>>> Boris Ralchenko.
>>> 
>>> 
>>> 
>>> 
>>> 
 On May 12, 2017, at 4:33 PM, Patrick Stinson >>> > wrote:
 
 Oh excellent. Which object do you call setGeometry on?
 
 On May 12, 2017, at 1:13 PM, bralche...@ics.com 
  wrote:
 
> Patrick,
> 
> you have to setGeometry(QRect screenGeometry) explicitly. screenGeometry 
> should be queried from iOS directly, like this:
> 
> const CGRect r = [[UIScreen mainScreen] bounds];
> return QRect(0, 0, r.size.width, r.size.height);
> 
> 
> We had similar problem, black screen with AirPlay or with HDMI dongle. 
> This solved it for us.
>
> Regards,
> Boris Ralchenko.
> 
> 
> 
> 
> 
>> On May 11, 2017, at 9:16 PM, Patrick Stinson > > wrote:
>> 
>> Hello! Has anyone else had a problem with Qt apps only showing as a 
>> black screen when mirroring an iOS device over airplay? Other apps 
>> display fine, but then the AirPlay display turns black when the Qt app 
>> is brought to the front.
>> 
>> Granted, I am using Reflector 2 to show the iPad screen on my Mac with 
>> latest macOS Sierra, (in order to show the iPad on a projector), but it 
>> just uses the AirPlay protocol on the iOS end so I assume it is a 
>> problem with the Qt iOS view.
>> 
>> Thanks!___
>> Interest mailing list
>> Interest@qt-project.org 
>> http://lists.qt-project.org/mailman/listinfo/interest 
>> 
> 
>>> 
> 



smime.p7s
Description: S/MIME cryptographic signature
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] black screen with iOS app over airplay?

2017-05-12 Thread bralchenko
Yes, I think that’s the one. 


Regards,
Boris Ralchenko.





> On May 12, 2017, at 5:08 PM, Patrick Stinson  wrote:
> 
> Do you mean QMainWindow? That is the class that I am deriving from.
> 
> On May 12, 2017, at 1:38 PM, bralche...@ics.com  
> wrote:
> 
>> On main window, in our case it was derived from QQuickView. 
>> 
>> Regards,
>> Boris Ralchenko.
>> 
>> 
>> 
>> 
>> 
>>> On May 12, 2017, at 4:33 PM, Patrick Stinson >> > wrote:
>>> 
>>> Oh excellent. Which object do you call setGeometry on?
>>> 
>>> On May 12, 2017, at 1:13 PM, bralche...@ics.com  
>>> wrote:
>>> 
 Patrick,
 
 you have to setGeometry(QRect screenGeometry) explicitly. screenGeometry 
 should be queried from iOS directly, like this:
 
 const CGRect r = [[UIScreen mainScreen] bounds];
 return QRect(0, 0, r.size.width, r.size.height);
 
 
 We had similar problem, black screen with AirPlay or with HDMI dongle. 
 This solved it for us.

 Regards,
 Boris Ralchenko.
 
 
 
 
 
> On May 11, 2017, at 9:16 PM, Patrick Stinson  > wrote:
> 
> Hello! Has anyone else had a problem with Qt apps only showing as a black 
> screen when mirroring an iOS device over airplay? Other apps display 
> fine, but then the AirPlay display turns black when the Qt app is brought 
> to the front.
> 
> Granted, I am using Reflector 2 to show the iPad screen on my Mac with 
> latest macOS Sierra, (in order to show the iPad on a projector), but it 
> just uses the AirPlay protocol on the iOS end so I assume it is a problem 
> with the Qt iOS view.
> 
> Thanks!___
> Interest mailing list
> Interest@qt-project.org 
> http://lists.qt-project.org/mailman/listinfo/interest 
> 
 
>> 

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] black screen with iOS app over airplay?

2017-05-12 Thread Patrick Stinson
Do you mean QMainWindow? That is the class that I am deriving from.

> On May 12, 2017, at 1:38 PM, bralche...@ics.com wrote:
> 
> On main window, in our case it was derived from QQuickView. 
> 
> Regards,
> Boris Ralchenko.
> 
> 
> 
> 
> 
>> On May 12, 2017, at 4:33 PM, Patrick Stinson  wrote:
>> 
>> Oh excellent. Which object do you call setGeometry on?
>> 
>>> On May 12, 2017, at 1:13 PM, bralche...@ics.com wrote:
>>> 
>>> Patrick,
>>> 
>>> you have to setGeometry(QRect screenGeometry) explicitly. screenGeometry 
>>> should be queried from iOS directly, like this:
>>> 
>>> const CGRect r = [[UIScreen mainScreen] bounds];
>>> return QRect(0, 0, r.size.width, r.size.height);
>>> 
>>> 
>>> We had similar problem, black screen with AirPlay or with HDMI dongle. This 
>>> solved it for us.
>>>
>>> Regards,
>>> Boris Ralchenko.
>>> 
>>> 
>>> 
>>> 
>>> 
 On May 11, 2017, at 9:16 PM, Patrick Stinson  wrote:
 
 Hello! Has anyone else had a problem with Qt apps only showing as a black 
 screen when mirroring an iOS device over airplay? Other apps display fine, 
 but then the AirPlay display turns black when the Qt app is brought to the 
 front.
 
 Granted, I am using Reflector 2 to show the iPad screen on my Mac with 
 latest macOS Sierra, (in order to show the iPad on a projector), but it 
 just uses the AirPlay protocol on the iOS end so I assume it is a problem 
 with the Qt iOS view.
 
 Thanks!___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest
>>> 
> 
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] black screen with iOS app over airplay?

2017-05-12 Thread bralchenko
On main window, in our case it was derived from QQuickView. 

Regards,
Boris Ralchenko.





> On May 12, 2017, at 4:33 PM, Patrick Stinson  wrote:
> 
> Oh excellent. Which object do you call setGeometry on?
> 
> On May 12, 2017, at 1:13 PM, bralche...@ics.com  
> wrote:
> 
>> Patrick,
>> 
>> you have to setGeometry(QRect screenGeometry) explicitly. screenGeometry 
>> should be queried from iOS directly, like this:
>> 
>> const CGRect r = [[UIScreen mainScreen] bounds];
>> return QRect(0, 0, r.size.width, r.size.height);
>> 
>> 
>> We had similar problem, black screen with AirPlay or with HDMI dongle. This 
>> solved it for us.
>>
>> Regards,
>> Boris Ralchenko.
>> 
>> 
>> 
>> 
>> 
>>> On May 11, 2017, at 9:16 PM, Patrick Stinson >> > wrote:
>>> 
>>> Hello! Has anyone else had a problem with Qt apps only showing as a black 
>>> screen when mirroring an iOS device over airplay? Other apps display fine, 
>>> but then the AirPlay display turns black when the Qt app is brought to the 
>>> front.
>>> 
>>> Granted, I am using Reflector 2 to show the iPad screen on my Mac with 
>>> latest macOS Sierra, (in order to show the iPad on a projector), but it 
>>> just uses the AirPlay protocol on the iOS end so I assume it is a problem 
>>> with the Qt iOS view.
>>> 
>>> Thanks!___
>>> Interest mailing list
>>> Interest@qt-project.org 
>>> http://lists.qt-project.org/mailman/listinfo/interest 
>>> 
>> 

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] black screen with iOS app over airplay?

2017-05-12 Thread Patrick Stinson
Oh excellent. Which object do you call setGeometry on?

> On May 12, 2017, at 1:13 PM, bralche...@ics.com wrote:
> 
> Patrick,
> 
> you have to setGeometry(QRect screenGeometry) explicitly. screenGeometry 
> should be queried from iOS directly, like this:
> 
> const CGRect r = [[UIScreen mainScreen] bounds];
> return QRect(0, 0, r.size.width, r.size.height);
> 
> 
> We had similar problem, black screen with AirPlay or with HDMI dongle. This 
> solved it for us.
>
> Regards,
> Boris Ralchenko.
> 
> 
> 
> 
> 
>> On May 11, 2017, at 9:16 PM, Patrick Stinson  wrote:
>> 
>> Hello! Has anyone else had a problem with Qt apps only showing as a black 
>> screen when mirroring an iOS device over airplay? Other apps display fine, 
>> but then the AirPlay display turns black when the Qt app is brought to the 
>> front.
>> 
>> Granted, I am using Reflector 2 to show the iPad screen on my Mac with 
>> latest macOS Sierra, (in order to show the iPad on a projector), but it just 
>> uses the AirPlay protocol on the iOS end so I assume it is a problem with 
>> the Qt iOS view.
>> 
>> Thanks!___
>> Interest mailing list
>> Interest@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
> 
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] black screen with iOS app over airplay?

2017-05-12 Thread bralchenko
Patrick,

you have to setGeometry(QRect screenGeometry) explicitly. screenGeometry should 
be queried from iOS directly, like this:

const CGRect r = [[UIScreen mainScreen] bounds];
return QRect(0, 0, r.size.width, r.size.height);


We had similar problem, black screen with AirPlay or with HDMI dongle. This 
solved it for us.
   
Regards,
Boris Ralchenko.





> On May 11, 2017, at 9:16 PM, Patrick Stinson  wrote:
> 
> Hello! Has anyone else had a problem with Qt apps only showing as a black 
> screen when mirroring an iOS device over airplay? Other apps display fine, 
> but then the AirPlay display turns black when the Qt app is brought to the 
> front.
> 
> Granted, I am using Reflector 2 to show the iPad screen on my Mac with latest 
> macOS Sierra, (in order to show the iPad on a projector), but it just uses 
> the AirPlay protocol on the iOS end so I assume it is a problem with the Qt 
> iOS view.
> 
> Thanks!___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] black screen with iOS app over airplay?

2017-05-11 Thread Patrick Stinson
Hello! Has anyone else had a problem with Qt apps only showing as a black 
screen when mirroring an iOS device over airplay? Other apps display fine, but 
then the AirPlay display turns black when the Qt app is brought to the front.

Granted, I am using Reflector 2 to show the iPad screen on my Mac with latest 
macOS Sierra, (in order to show the iPad on a projector), but it just uses the 
AirPlay protocol on the iOS end so I assume it is a problem with the Qt iOS 
view.

Thanks!

smime.p7s
Description: S/MIME cryptographic signature
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest