[Interest] Should Q_INVOKABLE functions be marked as such in the documentation ?

2017-02-22 Thread Pierre-Yves Siret
of the class (thanks to the Woboq people for easing that pain). Is there a reason to hide this information ? Cheers, Pierre-Yves Siret ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Should Q_INVOKABLE functions be marked as such in the documentation ?

2017-02-22 Thread Pierre-Yves Siret
Done : https://bugreports.qt.io/browse/QTBUG-59083 2017-02-22 13:08 GMT+01:00 Bo Thorsen <b...@vikingsoft.eu>: > Den 22-02-2017 kl. 11:13 skrev Pierre-Yves Siret: > >> Hello, >> >> Reading the doc, there is no indication that a function is Q_INVOKABLE. >> It

Re: [Interest] QAbstractItemModel and Qml - modelData is null

2017-10-16 Thread Pierre-Yves Siret
2017-10-16 20:11 GMT+02:00 Nuno Santos : > Hi, > > I have for the first time defined a QAbstractItemModel to use on Qml > because I needed to have a filtered version of this model > using QSortFilterProxyModel. > > I have the documentation here ->

Re: [Interest] Black magic or voodoo?

2017-11-15 Thread Pierre-Yves Siret
Hi, I guess you are using QRC then and you are including one via your .pri file. Did you check that the prefix + base path of your existing files are the same that your qml file in the qrc of your test app? Regards, Pierre-Yves 2017-11-15 12:37 GMT+01:00 Nuno Santos :

Re: [Interest] Android: Better way of asserting permanent permission refusal

2018-06-27 Thread Pierre-Yves Siret
quot;Camera needed for selfies" >> >> The "UI" is operating system grant dialog. >> >> >> *Sent:* Tuesday, June 26, 2018 at 5:02 PM >> *From:* "René Hansen" >> *To:* "Pierre-Yves Siret" >> *Cc:* interest >> *Subject:*

Re: [Interest] Android: Better way of asserting permanent permission refusal

2018-06-26 Thread Pierre-Yves Siret
uot; previously. At least not without calling requestPermissions. Why do you want to check this? If you want to show a rationale to thw user about why the app need a permission, you can use QtAndroid::shouldShowRequestPermissionRationale. It will return true if the user previously denied the permissi

Re: [Interest] How to get instance of qml singleton on C++ side

2018-01-15 Thread Pierre-Yves Siret
You could do an usual c++ singleton Foo& Foo::instance() { static Foo foo; return foo; } And use that in c++ and also in the singleton provider for QML : qmlRegisterSingletonType("com.example", 1, 0, "Foo", ::create); QObject* Foo::create(QQmlEngine*, QJSEngine*) { Foo* foo = ();

Re: [Interest] Using connect/disconnect with lambdas

2018-02-19 Thread Pierre-Yves Siret
2018-02-19 5:59 GMT+01:00 Tom Isaacson via Interest : > I'm replacing some old SIGNAL/SLOT connects with the new Qt5 format and I > need to use lambdas for some of them. > > Scenario 1: > > public slots: > void RouteEditName(); > void RouteEditName(QString name);

Re: [Interest] Is there a QML way for doing web requests? Just for data, not for rendering.

2017-12-29 Thread Pierre-Yves Siret
I guess you could easily make a higher level component (only for JSON though) by combining CuteHack's DuperAgent and https://github.com/benlau/qsyncable (the QML JsonListModel should be enough). If you update your json data, QSyncable will update it and won't issue a whole modelReset signal, it

Re: [Interest] How to style Dialog QML component?

2018-07-25 Thread Pierre-Yves Siret
2018-07-25 10:56 GMT+02:00 Nuno Santos : > Hi, > > I’m trying to style a QML Dialog component but it seems that I’m only able > to style the header, content and footer items. > > However I need to style the dialog frame, right now it appears as a white > box with a 1px width black border. I want

Re: [Interest] RowLayout with Text with wrap mode

2018-03-05 Thread Pierre-Yves Siret
You should always set a width for Text items (and a wrapMode and/or elide mode), unless you want your text to have no horizontal limit. In your case you need to correct your code (it's not a workaround since it's the intended behaviour) is to set a width for your Texts (the 3). Do this by using

Re: [Interest] RowLayout with Text with wrap mode

2018-03-05 Thread Pierre-Yves Siret
- > *From:* gr3...@gmail.com <gr3...@gmail.com> on behalf of Pierre-Yves > Siret <py.si...@gmail.com> > *Sent:* Monday, March 5, 2018 9:00 AM > *To:* Jérôme Godbout > *Cc:* Igor Mironchik; Qt Project > > *Subject:* Re: [Interest] RowLayout with Text wit

Re: [Interest] numeric keyboard android/ios

2018-12-11 Thread Pierre-Yves Siret
Le mar. 11 déc. 2018 à 14:38, Duane a écrit : > Setting a QLineEdit's input hint to digits only triggers a numeric > keyboard. With android, there is a "done" button on the bottom left. > With ios, there is not a done button but something that appears to be a > language selector. > > What is

Re: [Interest] How to show always a done button

2019-03-20 Thread Pierre-Yves Siret
> > Hi, > > I try to always show a done or similar button on top of the onscreen > keyboard. > > To do this I tried the following as an example for a Textfield: > > inputMethodHints: Qt.ImhDigitsOnly > EnterKey.type: Qt.EnterKeyDone > > but there is no done key shown. > > Any hints? > I suppose

Re: [Interest] Binding based on typeof doesn't work any more

2019-10-18 Thread Pierre-Yves Siret
Can't you do the load after the setContextProperty? That is what is usually done. Your problem is a usecase for the suggestion I did there : https://bugreports.qt.io/browse/QTBUG-77926 The code would then become : Controller?.successfulSteps ?? "" Le jeu. 17 oct. 2019 à 09:22, a écrit : >

Re: [Interest] OpenCV + Qt iOS: Wrong JPEG library version: library is 62, caller expects 80

2020-01-22 Thread Pierre-Yves Siret
Le mer. 22 janv. 2020 à 01:29, Jason H a écrit : > Does anyone know how to handle this? I'm not sure who is using which > version. > What I did: linked OpenCV into an iOS Qt app. Tape a picture and > onImageSaved handler, set an Image element source property to > "file://"+path, then it crashes

Re: [Interest] iOS 14 little green dot

2020-10-08 Thread Pierre-Yves Siret
The indicator is meant to tell if an app is using the camera, it appears you are in fact using it ("In our app, we start the Qt camera stack") so the green dot showing is normal. Can't you delay the Camera instantiation until you actually need it? If you can't, have you tried setting the

Re: [Interest] Is there any way to use QSortFilterProxyModel with QQmlTableModel & QML TableView 2 ?

2020-07-28 Thread Pierre-Yves Siret
> > ... or I have to do sorting / filtering manually for such a combination? > What's stopping you? You can set the sort or filter key column in a QSortFilterProxyModel. ___ Interest mailing list Interest@qt-project.org

Re: [Interest] QML figure with editable input fields for entering dimensions

2020-11-30 Thread Pierre-Yves Siret
Le lun. 30 nov. 2020 à 06:59, Megidd Git a écrit : > Hi! > > Can anybody help with this question? > > https://stackoverflow.com/q/65068666/3405291 > > Thanks > Where's the difficulty and what have you tried ? This seems pretty basic. Use TextField or SpinBox for the fields, figure out where to

Re: [Interest] QML defining an object property

2021-06-01 Thread Pierre-Yves Siret
Le lun. 31 mai 2021 à 19:59, Alexander Dyagilev a écrit : > Hello, > > Am I right that this is not possible in QML? > > readonly property var mainTbImg: { > up: "some string", > up_check: "some another string" > } > The problem is that QML doesn't know how to parse it, it can't know