Re: [Interest] QtLocation and API key

2023-08-07 Thread Sze Howe Koh
Hello Petric,

The OpenStreetMap plugin originally did not require an API key.
However, the previous tile server stopped working, so a new tile
server (Thunderforest) was chosen to replace it. Thunderforest wants
an API key, which is why you see the watermark.

Qt Location needs to be updated to pass an API key to Thunderforest. See:
* https://bugreports.qt.io/browse/QTBUG-114118
* https://bugreports.qt.io/browse/QTBUG-115742


Regards,
Sze-Howe


On Mon, 7 Aug 2023 at 20:49, Petric Frank  wrote:
>
> Hello,
>
> i compiled the example "minimal_map". It runs well except there is a watermark
> "API Key Required" at the picture.
>
> By reading some web pages (here: 
> https://uxper.gitbook.io/wp-golo/faqs/how-to-create-an-api-key-for-openstreetmap)
>  it seems you can obtain one from MapBox.
> But how to integrate it into the (example) application ?
>
> Or am i on the wrong track ?
>
> kind regards
>   Petric
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Per-language lupdate options not possible with qt_add_lupdate CMake helper?

2023-08-07 Thread Elvis Stansvik
Filed another suggestion about these macros relating to applications
with sources spread across multiple CMake targets:
https://bugreports.qt.io/browse/QTBUG-115846

Den mån 7 aug. 2023 kl 19:55 skrev Elvis Stansvik :
>
> Thanks Alexandru,
>
> => https://bugreports.qt.io/browse/QTBUG-115845
>
> Den mån 7 aug. 2023 kl 09:42 skrev Alexandru Croitor 
> :
> >
> > Hi,
> >
> > Unless i'm misreading the code, i don't think it's currently possible to 
> > pass per-file / per-lang
> > separate options for a single target with qt_add_lupdate.
> >
> > You could try to work around it by having separate targets per language, 
> > but that's clearly sub-optimal.
> >
> > You should be fine with using qt_create_translation as long as it meets 
> > your needs, we likely won't remove
> > any deprecated api until there is a good enough replacement.
> >
> > Having said that, I suggest you file a suggestion on the bug tracker, so we 
> > can keep track of the use case.
> >
> >
> > > On 6. Aug 2023, at 15:21, Elvis Stansvik  wrote:
> > >
> > > Hi all,
> > >
> > > Porting our application to Qt 6 and I'm a little confused by the new
> > > qt_add_lupdate CMake helper.
> > >
> > > When we run lupdate to generate/update our English translation .ts
> > > files, since our source strings are in English, we want to pass
> > > -pluralonly to lupdate, to only have plural forms for translators to
> > > "translate". We don't want to do this for other languages.
> > >
> > > It seems this is not possible with qt_add_lupdate which takes a target
> > > argument and adds a ${target}_lupdate target, since I assume that with
> > > two successive calls to qt_add_lupdate for the same target (first with
> > > our English .ts files and second with the others), the second call
> > > would trample of what the first one did?
> > >
> > > How should this be done in Qt 6? Surely someone else must be in the same 
> > > boat?
> > >
> > > I know that the non-target based qt_create_translation still exists,
> > > but it's deprecated so not something we want to use.
> > >
> > > Thanks in advance,
> > > Elvis
> > > ___
> > > 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


Re: [Interest] Per-language lupdate options not possible with qt_add_lupdate CMake helper?

2023-08-07 Thread Elvis Stansvik
Thanks Alexandru,

=> https://bugreports.qt.io/browse/QTBUG-115845

Den mån 7 aug. 2023 kl 09:42 skrev Alexandru Croitor :
>
> Hi,
>
> Unless i'm misreading the code, i don't think it's currently possible to pass 
> per-file / per-lang
> separate options for a single target with qt_add_lupdate.
>
> You could try to work around it by having separate targets per language, but 
> that's clearly sub-optimal.
>
> You should be fine with using qt_create_translation as long as it meets your 
> needs, we likely won't remove
> any deprecated api until there is a good enough replacement.
>
> Having said that, I suggest you file a suggestion on the bug tracker, so we 
> can keep track of the use case.
>
>
> > On 6. Aug 2023, at 15:21, Elvis Stansvik  wrote:
> >
> > Hi all,
> >
> > Porting our application to Qt 6 and I'm a little confused by the new
> > qt_add_lupdate CMake helper.
> >
> > When we run lupdate to generate/update our English translation .ts
> > files, since our source strings are in English, we want to pass
> > -pluralonly to lupdate, to only have plural forms for translators to
> > "translate". We don't want to do this for other languages.
> >
> > It seems this is not possible with qt_add_lupdate which takes a target
> > argument and adds a ${target}_lupdate target, since I assume that with
> > two successive calls to qt_add_lupdate for the same target (first with
> > our English .ts files and second with the others), the second call
> > would trample of what the first one did?
> >
> > How should this be done in Qt 6? Surely someone else must be in the same 
> > boat?
> >
> > I know that the non-target based qt_create_translation still exists,
> > but it's deprecated so not something we want to use.
> >
> > Thanks in advance,
> > Elvis
> > ___
> > 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] QtLocation and API key

2023-08-07 Thread Petric Frank
Hello,

i compiled the example "minimal_map". It runs well except there is a watermark
"API Key Required" at the picture.

By reading some web pages (here: 
https://uxper.gitbook.io/wp-golo/faqs/how-to-create-an-api-key-for-openstreetmap)
 it seems you can obtain one from MapBox.
But how to integrate it into the (example) application ?

Or am i on the wrong track ?

kind regards
  Petric




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


Re: [Interest] Per-language lupdate options not possible with qt_add_lupdate CMake helper?

2023-08-07 Thread Alexandru Croitor via Interest
Hi,

Unless i'm misreading the code, i don't think it's currently possible to pass 
per-file / per-lang
separate options for a single target with qt_add_lupdate.

You could try to work around it by having separate targets per language, but 
that's clearly sub-optimal.

You should be fine with using qt_create_translation as long as it meets your 
needs, we likely won't remove
any deprecated api until there is a good enough replacement.

Having said that, I suggest you file a suggestion on the bug tracker, so we can 
keep track of the use case.


> On 6. Aug 2023, at 15:21, Elvis Stansvik  wrote:
> 
> Hi all,
> 
> Porting our application to Qt 6 and I'm a little confused by the new
> qt_add_lupdate CMake helper.
> 
> When we run lupdate to generate/update our English translation .ts
> files, since our source strings are in English, we want to pass
> -pluralonly to lupdate, to only have plural forms for translators to
> "translate". We don't want to do this for other languages.
> 
> It seems this is not possible with qt_add_lupdate which takes a target
> argument and adds a ${target}_lupdate target, since I assume that with
> two successive calls to qt_add_lupdate for the same target (first with
> our English .ts files and second with the others), the second call
> would trample of what the first one did?
> 
> How should this be done in Qt 6? Surely someone else must be in the same boat?
> 
> I know that the non-target based qt_create_translation still exists,
> but it's deprecated so not something we want to use.
> 
> Thanks in advance,
> Elvis
> ___
> 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