Re: [Interest] QtWayland Compositor cannot start from tty

2020-05-08 Thread Selastin George
Thanks, I will check it out.

On Sat, May 9, 2020, 12:55 AM Shawn Rutledge  wrote:

>
> On 2020 May 8, at 19:55, Selastin George  wrote:
>
> I built a qtWayland compositor and I was able to run it from my desktop
> session.
>
> Is there any way to start my compositor from tty (like just after boot)?.
>
> When I tried to run it with --platform eglfs it gives error like
>
> Unable to initialize egl display.
>
>
> Yes that should work in general.  Something is wrong with your system
> apparently.
>
> https://doc.qt.io/qt-5/embedded-linux.html
>
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWayland Compositor cannot start from tty

2020-05-08 Thread Shawn Rutledge

> On 2020 May 8, at 19:55, Selastin George  wrote:
> 
> I built a qtWayland compositor and I was able to run it from my desktop 
> session.
> 
> Is there any way to start my compositor from tty (like just after boot)?.
> 
> When I tried to run it with --platform eglfs it gives error like
> 
> Unable to initialize egl display.

Yes that should work in general.  Something is wrong with your system 
apparently.

https://doc.qt.io/qt-5/embedded-linux.html 


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


[Interest] QtWayland Compositor cannot start from tty

2020-05-08 Thread Selastin George
I built a qtWayland compositor and I was able to run it from my desktop
session.

Is there any way to start my compositor from tty (like just after boot)?.

When I tried to run it with --platform eglfs it gives error like

Unable to initialize egl display.

All I want is to launch my compositor from tty like Weston does
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] unexpected result from QString::compare

2020-05-08 Thread Thiago Macieira
On Friday, 8 May 2020 05:05:43 PDT Hamish Moffatt wrote:
> On 8/5/20 6:54 pm, Florian Bruhin wrote:
> > On Fri, May 08, 2020 at 08:51:19AM +, Hamish Moffatt wrote:
> >> On 8/5/20 5:13 pm, Fabrice Mousset | GEOCEPT GmbH wrote:
> >>> Perhaps you should use QString::localeAwareCompare() ?
> >> 
> >> Thanks, I didn't know about that. Maybe the QString::compare()
> >> documentation could mention it...
> >> 
> >  From https://doc.qt.io/qt-5/qstring.html#compare :
> >Case sensitive comparison is based exclusively on the numeric Unicode
> >values of the characters and is very fast, but is not what a human
> >would expect. Consider sorting user-visible strings with
> >localeAwareCompare().
> 
> Oh thanks, I'm at 0/2 today it seems. I looked at the compare() overload
> I'm using and missed this reference further up.
> 
> localeAwareCompare() is working as expected.

Consider QCollator too.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel System Software Products



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


Re: [Interest] unexpected result from QString::compare

2020-05-08 Thread Hamish Moffatt

On 8/5/20 6:54 pm, Florian Bruhin wrote:


On Fri, May 08, 2020 at 08:51:19AM +, Hamish Moffatt wrote:

On 8/5/20 5:13 pm, Fabrice Mousset | GEOCEPT GmbH wrote:

Perhaps you should use QString::localeAwareCompare() ?


Thanks, I didn't know about that. Maybe the QString::compare() documentation
could mention it...

 From https://doc.qt.io/qt-5/qstring.html#compare :

   Case sensitive comparison is based exclusively on the numeric Unicode values
   of the characters and is very fast, but is not what a human would expect.
   Consider sorting user-visible strings with localeAwareCompare().

Oh thanks, I'm at 0/2 today it seems. I looked at the compare() overload 
I'm using and missed this reference further up.


localeAwareCompare() is working as expected.

Hamish
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] unexpected result from QString::compare

2020-05-08 Thread Florian Bruhin
On Fri, May 08, 2020 at 08:51:19AM +, Hamish Moffatt wrote:
> On 8/5/20 5:13 pm, Fabrice Mousset | GEOCEPT GmbH wrote:
> > Perhaps you should use QString::localeAwareCompare() ?
> 
> 
> Thanks, I didn't know about that. Maybe the QString::compare() documentation
> could mention it...

From https://doc.qt.io/qt-5/qstring.html#compare :

  Case sensitive comparison is based exclusively on the numeric Unicode values
  of the characters and is very fast, but is not what a human would expect.
  Consider sorting user-visible strings with localeAwareCompare().

Florian

-- 
m...@the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org 
   https://bruhin.software/ | https://github.com/sponsors/The-Compiler/
   GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
 I love long mails! | https://email.is-not-s.ms/


signature.asc
Description: PGP signature
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] unexpected result from QString::compare

2020-05-08 Thread Hamish Moffatt

On 8/5/20 5:13 pm, Fabrice Mousset | GEOCEPT GmbH wrote:

Perhaps you should use QString::localeAwareCompare() ?



Thanks, I didn't know about that. Maybe the QString::compare() 
documentation could mention it...



Hamish

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


Re: [Interest] unexpected result from QString::compare

2020-05-08 Thread Fabrice Mousset | GEOCEPT GmbH
Perhaps you should use QString::localeAwareCompare() ?

BR

Fabrice

> -Ursprüngliche Nachricht-
> Von: Interest  Im Auftrag von Hamish
> Moffatt
> Gesendet: Freitag, 8. Mai 2020 08:27
> An: Qt Interest 
> Betreff: [Interest] unexpected result from QString::compare
> 
> I'm trying to sort a list of strings where umlauts are involved, and not 
> getting
> the answer I expect from QString::compare(). My sample code is:
> 
>          auto a = QStringLiteral("Äbc");
>          auto b = QStringLiteral("BCD");
>          auto c = a.compare(b);
>          qDebug() << a << b << c;
> 
> This produces the output:
> 
> "Äbc" "BCD" 130
> 
> which indicates that Äbc should be sorted after "BCD".
> 
> I get the same result when I load the strings through QTranslator so I don't
> believe there's any editor/encoding issue going on.
> 
> I seem to get the right result when I let QListWidget sort the items for me
> though.
> 
> 
> What am I missing?
> 
> 
> thanks,
> 
> Hamish
> 
> 
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] unexpected result from QString::compare

2020-05-08 Thread Hamish Moffatt
I'm trying to sort a list of strings where umlauts are involved, and not 
getting the answer I expect from QString::compare(). My sample code is:


        auto a = QStringLiteral("Äbc");
        auto b = QStringLiteral("BCD");
        auto c = a.compare(b);
        qDebug() << a << b << c;

This produces the output:

"Äbc" "BCD" 130

which indicates that Äbc should be sorted after "BCD".

I get the same result when I load the strings through QTranslator so I 
don't believe there's any editor/encoding issue going on.


I seem to get the right result when I let QListWidget sort the items for 
me though.



What am I missing?


thanks,

Hamish


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