[Interest] on bumping the minimum Android API level to Android 8.0 API 26

2023-04-05 Thread Maxim
Minimum supported API level recently raised from 21 (Qt 5.15) to 23 (Qt
6.0) then to 26 (Qt 6.5?) without details behind it, so possibility of
deploying to devices with lower API level is unclean. I guess raising level
23 API may be caused by implementation of runtime permissons, but whats
behind raising it to 26?

"While changes in CI are not being made at this stage, we need to move
forward with setting user's expectations that they can no longer rely on
Qt remains compatible with Android versions that are no longer
maintained by Google." https://codereview.qt-project.org/c/qt/qtdoc/+/466788
What means no longer maintained by Google? Google supports development for
wide range of Android API levels, their recent LTS NDK r25 still supports
level 19+ API, they provide various 'Compat' classes for support lower APIs
levels.

To favor focus of Qt on more recent Android versions, while still keeping
possibility of building Qt applications for devices with lower API levels,
i think there should be multiple documented minimal API levels:
-general minimal supported API level (e.g. 26) of Qt framework (favored in
test configurations, bug priority, etc.)
-individual minimal API level requirements of Qt modules (e.g. for qtcore
level 23 or maybe even lower in some cases)
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QML singleton properties are undefined if file placed in subdirectory

2023-03-07 Thread Maxim
Maybe i did not cleary note at question: I placing all qml files related to
module (main.qml, Style.qml) into "qml" subdirectory (it was working
until i try to use singletons)
If i add ".qml" to the URI then QQmlApplicationEngine fails to load
component from either QUrl url1(u"qrc:/untitled/qml/main.qml"_qs),
url2(u"qrc:/untitled/main.qml"_qs)

CMakeLists.txt:
...
qt_add_executable(untitled main.cpp )
set_source_files_properties(Style.qml PROPERTIES QT_QML_SINGLETON_TYPE TRUE)

qt_add_qml_module(untitled
URI untitled.qml
VERSION 1.0
QML_FILES
  qml/main.qml
  qml/Style.qml
)
...

On Tue, Mar 7, 2023 at 2:55 PM Ulf Hermann via Interest <
interest@qt-project.org> wrote:

> > Qt 6.4.2 QML singleton's properties undefined if singleton QML file
> > placed in subdirectory e.g "/qml" (${CMAKE_SOURCE_DIR}/qml/Style.qml)
>
> You should not place your QML files in a different directory than the
> module (as denoted by the generated qmldir file). Otherwise their
> implicit import is not the same as the module they belong to, which then
> leads to effects like this.
>
> The implicit import is the way you can use QML components placed in .qml
> files in the same directory without importing anything.
>
> The component in question is a singleton in the module since it has a
> "singleton" line in the qmldir. It is, however, a regular non-singleton
> component in the implicit import since the implicit import does not see
> the qmldir.
>
> You can move the whole QML module into the "qml" subdirectory and add
> ".qml" to the URI to avoid this. Or you can move all the .qml files into
> the base directory of the module.
>
> best regards,
> Ulf
> ___
> 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] QML singleton properties are undefined if file placed in subdirectory

2023-03-06 Thread Maxim
Qt 6.4.2 QML singleton's properties undefined if singleton QML file placed
in subdirectory e.g "/qml" (${CMAKE_SOURCE_DIR}/qml/Style.qml)


set_source_files_properties(Style.qml PROPERTIES QT_QML_SINGLETON_TYPE TRUE)

qt_add_qml_module(untitled
URI untitled
VERSION 1.0
QML_FILES qml/main.qml qml/Style.qml
)

Is it Qt bug or an something extra should be declared when qml files not
lay directly in project root?
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] What don't you like about Qt?

2016-09-30 Thread Maxim
Some things that i don't like:
-Qt uses own container classes (QList, QVector, etc.) instead STL
containers (or some kind of STL derived containers).
-Qt on Android: still big output APK size


On Sat, Sep 17, 2016 at 11:20 PM, Sérgio Martins 
wrote:

> Hi,
>
>
> It's not unusual for us developers and contributors to lose
> perspective of what's important.
> After many years spent on very particular implementation details, it
> becomes difficult to see outside of the box.
>
> And because we already know the good aspects I'm asking only about the bad.
> No need to discuss or reach an agreement, just go ahead and enumerate
> what you don't like.
>
>
> Personally, I don't know (too much time inside the box), but after
> googling these came up frequently:
>
>
> - C++ is difficult, Qt lacks quality bindings for mainstream languages
> - moc (on build systems that don't automate this step)
> - FUD around licensing
>
>
>
> Please state your top ones, even if it was already stated by someone
> else, so we have an idea about which ones matter more.
>
>
> Regards,
> Sérgio Martins
> ___
> 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] QList to QML transfer optimization

2016-05-30 Thread Maxim Bescherevnykh
Hello,
Is possible to transfer QList to QML (to Map path) without
temporary copy conversion to QVariantList?

What is fastest way to convert QList to QVariantList?
Currently i doing it that way:

QVariantList tmp;

tmp.reserve(data.size());

for (const QGeoCoordinate& i: data)

tmp.push_back(QVariant::fromValue(i));

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


[Interest] QtPositioning high delay on QGeoPositionInfoSource::startUpdates

2016-04-01 Thread Maxim Bescherevnykh
QGeoPositionInfoSource::startUpdates startup time vary in high range 2 ms ~
1 ms sometimes there is very high delays that freeze UI:

"Looper Thread startup time in ms: 1189"
"Looper Thread startup time in ms: 20"
"Looper Thread startup time in ms: 8189"
...
values from Android device (Nexus 5)

Is there way to reduce those delays or only solution is to move
QGeoPositionInfoSource
in separate thread?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Qt 5.6 high DPI scaling & resources

2016-02-18 Thread Maxim Bescherevnykh
In Qt Quick Controls 1 i can use an ldpi/mdpi/hdpi/etc. icon image
depending on target screen DPI and icons looks perfect with proper size.
Qt Quick Controls 2 designed to be used with Qt::AA_EnableHighDpiScaling
at least on X11, Windows, Android, Eglfs. But i don't realise whats the
right way to deal with icon resources in Qt Quick Controls 2 app.

Also looks like scaling works weird with QtQuick Map (need to test that).
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] [SOLVED] Re: Cannot resolve qt_plugin_instance in QQmlExtensionPlugin

2013-04-17 Thread Maxim Kouprianov
Found that in my .pro file:

QMAKE_CXXFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden

That's making qt_plugin_instance symbol hidden by default.
Problem is solved.

Maxim Kouprianov пишет:
 Hi all.

 I'm trying to write some QML extension plugin (QQmlExtensionPlugin, Qt5.0).

 But it fails to load completely:

 plugin cannot be loaded for module MyPlugin.MyClass: Cannot resolve
 symbol qt_plugin_instance in
 imports/MyPlugin/MyClass/libmypluginmyclassplugin.so:
 (Symbol not found: ).

 Plugin source: https://gist.github.com/Xlab/2558aa068d49f0a2b6aa
 What additional information shall I provide?
 How to debug that cases?

 Please help :(
 Thanks in advance.


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


[Interest] Cannot resolve qt_plugin_instance in QQmlExtensionPlugin

2013-04-16 Thread Maxim Kouprianov
Hi all.

I'm trying to write some QML extension plugin (QQmlExtensionPlugin, Qt5.0).

But it fails to load completely:

  plugin cannot be loaded for module MyPlugin.MyClass: Cannot resolve
  symbol qt_plugin_instance in
  imports/MyPlugin/MyClass/libmypluginmyclassplugin.so:
  (Symbol not found: ).

Plugin source: https://gist.github.com/Xlab/2558aa068d49f0a2b6aa
What additional information shall I provide?
How to debug that cases?

Please help :(
Thanks in advance.

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