Re: [Interest] Using C# with QML/QtQuick, introducing Qml.Net.

2018-08-10 Thread Jesus Fernandez
It looks really cool. Good work.


Best regards,

Jesús


From: Interest  on 
behalf of Paul Knopf 
Sent: Friday, August 10, 2018 7:48:58 AM
To: interest@qt-project.org
Subject: [Interest] Using C# with QML/QtQuick, introducing Qml.Net.

I have been hard at work on Qml.Net and I think it is at a point that I'd like 
to share it with you guys for your feedback.

https://github.com/pauldotknopf/Qml.Net

This project is similar to PyOtherSide, except for C#/.NET.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] WebGL platform and audio

2018-04-23 Thread Jesus Fernandez
Hi Glen,


There is no plan ATM to support audio. You could add a suggestion to the Qt bug 
tracker to request it.


Best regards,

Jesús



From: Interest  on 
behalf of Glen Mabey 
Sent: Friday, April 13, 2018 22:33
To: interest@qt-project.org
Subject: [Interest] WebGL platform and audio

Hello,

I'm using 5.10.1 for a very simple QML application that also instantiates a 
QAudioOutput instance and sends data to it.

Not too surprisingly, the audio comes out on the machine running the executable 
and not the one running the webbrowser.

I see that there is some concept of basic audio playback in WebGL, but don't 
know anything more than that:  https://docs.unity3d.com/Manual/webgl-audio.html
[https://unity3d.com/files/images/ogimg.jpg]

Unity - Manual: Using Audio In 
WebGL
docs.unity3d.com
Audio in WebGL is done differently then on all other platforms. On other 
platforms we use FMOD internally to supply audio playback and mixing. Since the 
WebGL platform does not support threads, we need to use a different 
implementation, which is internally based on the Web Audio API, which lets the 
...




Is that the expected behavior for the Qt webgl platform?  Any prospect of that 
changing soon?

Thank you --
Glen
___
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] Issue with expanding an environmental variable.

2017-03-03 Thread Jesus Fernandez
Are you using QString::fromUtf8 to decode the received QByteArray?

On Friday, March 03, 2017 04:35:50 PM jschneider...@gog.com wrote:
> In an application we’re developing, we need to expand some environmental 
> variables. We’re using the Qt 5.6  function qgetenv to do that. However, on 
> our test code when an environmental variable contains some non-ANSI 
> characters, e.g. Ξ♣♤ᛝᛞ๏฿Ξ , it is expanded to ?¦?? . These are the 
> contents we see when viewing it in the Visual Studio Debugger. Is this a 
> known issue or perhaps something we’re doing incorrectly?
> 
> Thanks,
> 
> John Schneiderman
> Senior Software Engineer
> GOG.com
> 

-- 

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


Re: [Interest] Send POST request with QOAuth2AuthorizationCodeFlow

2017-02-23 Thread Jesus Fernandez
On Wednesday, February 22, 2017 10:43:23 PM Juhani Matilainen wrote:
> But it seems refreshAccessToken -request doesn’t contains client_id and 
> client_secret parameters that are required to refreshing an access token (at 
> least with Google login) …  and setModifyParametersFunction is available in 
> refreshAccessToken method.

Sounds like a bug! ;)

-- 

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


Re: [Interest] Send POST request with QOAuth2AuthorizationCodeFlow

2017-02-22 Thread Jesus Fernandez
On Wednesday, February 22, 2017 10:19:06 AM Juhani Matilainen wrote:
> Another question: Google login requires ’access_type=offline’ parameter in 
> authorization request to get refresh token. Which function should be used to 
> set it?

You can use QAbstractOAuth::setModifyParametersFunction to add custom 
parameters.

https://doc.qt.io/qt-5/qabstractoauth.html#setModifyParametersFunction

-- 

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


Re: [Interest] Send POST request with QOAuth2AuthorizationCodeFlow

2017-02-21 Thread Jesus Fernandez
On Monday, February 20, 2017 04:24:10 PM Juhani Matilainen wrote:
> Hello,
> 
> Qt 5.8 contains new QtNetwork Auth module (as a technology preview). I 
> successfully login to Google and get a data from Google Drive. But I haven’t 
> figured out how to use post() -function. There is no QByteArray or 
> QHttpMultiPart arguments but only QVariantMap. How I can send data with 
> QOAuth2AuthorizationCodeFlow?
> 
> QNetworkReply *QOAuth2AuthorizationCodeFlow::post(const QUrl , const 
> QVariantMap  = QVariantMap())
> 
> Regards,
> Juhani
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

Hello Juhani,

You should use the parameters argument to send the parameters you want. 
Internally it will converted to a QByteArray.

-- 

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


Re: [Interest] Is Qt/QML suitable for me?

2016-08-30 Thread Jesus Fernandez
Yeah!

You can create your app with Qt Quick  (Qml + Javascript) ??

Best regards,
Jesus

From: Артур Истомин
Sent: Tuesday, August 30, 21:11
Subject: [Interest] Is Qt/QML suitable for me?
To: interest@qt-project.org

I want to convert my POS (point of sale) software (long ugly shell-scripts) to 
GUI-software for mobile (Android) and desktop (Linux/Windows) devices. I don't 
know C++ but know some JS. So is it possible to write my application, POS, 
entirely on JavaScript? Almost all application logic are sql transactions with 
local sqlite database. Thank you! 
___ 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] localstorage metadata via sqlite_master

2016-05-11 Thread Jesus Fernandez
On Tuesday, May 10, 2016 02:46:16 PM Kevin Mcintyre wrote:
> I see that sqlite has table information via sqlite_master
> 
> http://www.sqlite.org/faq.html#q7
> 
> Is this table available in Qt localstorage?

Hi!

I modified the sample from the documentation:

To get the info you should query this as a table, for example to show current 
tables in the 
database:

import QtQuick 2.5
import QtQuick.Window 2.2
import QtQuick.LocalStorage 2.0

Window {
visible: true


Text {
text: "?"
anchors.horizontalCenter: /parent/.horizontalCenter

function /findGreetings/() {
var /db/ = LocalStorage.openDatabaseSync("QQmlExampleDB",
   "1.0",
   "The Example QML SQL!",
   100);

/db/.transaction(function(tx) {
// Create the database if it doesn't already exist
/tx/.executeSql('CREATE TABLE IF NOT EXISTS '
  + 'Greeting(salutation TEXT, salutee TEXT)');

// Show all tables
var /rs/ = /tx/.executeSql('SELECT name FROM sqlite_master '
   + 'WHERE type="table"');

var /r/ = ""
for(var /i/ = 0; /i/ < /rs/.rows.length; /i/++) {
/r/ += /rs/.rows.item(/i/).name + "\n"
}
/text/ = /r/
}
)
}

Component.onCompleted: /findGreetings/()
}
}



-- 

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


Re: [Interest] QML id

2016-04-11 Thread Jesus Fernandez
Hi!

You can store the items in a custom JavaScript variable:

import QtQuick 2.5
import QtQuick.Window 2.2

Window {
property var rowItems
visible: true

Component.onCompleted: {
/rowItems/ = [];

for (var /i/ = 0; /i/ < 64; ++/i/) {
/rowItems/[/i/] = /Qt/.createQmlObject(
'import QtQuick 2.0; Rectangle {color: "red"; width: 
20; height: 20}',
/column/);
}

/rowItems/[10].color = "green";
}

Column {
id: /column/;
}
}



On Monday, April 11, 2016 12:49:11 PM Igor Mironchik wrote:
> Look. I want to generate chess board - rectangles (8x8). And I want to
> place numbers an letters on the sides. This numbers and letters should
> be anchored to centers of rectangles. I.e. I want to have something like:
> 
> Text {
>  anchor.horizontalCenter: cell00.horizontalCenter
> }
> 
> ...
> 
> On 11.04.2016 12:40, Gian Maxera wrote:
> > Hello,
> > I don’t think so.
> > Why do you need it ? Maybe we can suggest to you an alternative solution.
> > 
> > Ciao,
> > Gianluca.
> > 
> >> On 11 Apr 2016, at 10:38, Igor Mironchik 
> >> wrote:
> >> 
> >> Hello,
> >> 
> >> Is it possible to generate id of item in Repeater, for example?
> >> 
> >> Thank you.
> >> ___
> >> 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

-- 

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


Re: [Interest] Building Qt from Sources

2012-02-21 Thread Jesus Fernandez
Hello,

I have a RHEL5 workstation at work.

For building Qt Creator I use 2 scripts:
bin cat buildQt
#!/bin/sh
export
LD_LIBRARY_PATH=/users/fernajes/paks/dbus/dbus-1.4.16/deploy/lib:/local/paks/gcc-4.6.0/deploy/lib:/local/paks/gmp\-4.3.2/deploy/lib:/local/paks/mpc-0.8.1/deploy/lib:/local/paks/mpfr-2.4.2/.libs:$LD_LIBRARY_PATH
export PATH=/local/paks/gcc-4.6.0/deploy/bin:$PATH
./configure -developer-build -commercial -confirm-license -no-qt3support
-dbus-linked -no-multimedia -no-audio-backend -no-phonon -no-openssl
-no-opengl -nomake demos -nomake examples -no-nis -no-cups -no-gtkstyle -I
/local/paks/dbus/dbus\-1.4.16/deploy/include/dbus-1.0
make -j 13

bin cat buildQtCreator
#!/bin/bash
oldDir=$PWD
#qtDir=/local/paks/qt-everywhere-opensource-src-4.8.0
qtDir=/local/paks/qt-everywhere-opensource-src-4.7.4
deployDirectory=$oldDir/$1_deploy
echo Old directory $oldDir
echo Building Qt Creator please wait...\n
export
LD_LIBRARY_PATH=/local/paks/gcc-4.6.0/deploy/lib:/local/paks/mpc-0.8.1/deploy/lib:/local/paks/mpfr-2.4.2/.libs:$LD_LIBRARY_PATH
export PATH=/local/paks/gcc-4.6.0/deploy/bin:$PATH
echo Using: 
$qtDir/bin/qmake --version
cd $1
$qtDir/bin/qmake
make -j 13
make INSTALL_ROOT=$deployDirectory install -j 13
cp $qtDir/bin/qhelpgenerator $deployDirectory/bin

As you can see there is some dependencies that I need to resolve before
building Qt (dbus; gcc; mpc; mpfr)

I hope it helps you.

GL
2012/2/21 Thiago Macieira thi...@kde.org

 On segunda-feira, 20 de fevereiro de 2012 21.38.28, Szalata, Zenon M.
 wrote:
  I am working at a Laboratory where RedHat Enterprise Linux 5 or 6 are the
  only Unix OS used on desktop computers.  Presently, installing qt 4.8
 from
  SDK package fails.  So I am trying to install from sources.  I have
  successfully installed qt 4.8.0 from
  qt-everywhere-opensource-src-4.8.0.tar.gz.  This works. I have configured
  this to install in non standard location.  The designer seems to work
 fine.
   Examples are also working.  The only problem is that this installation
  does not include qtcreator. So, I found qt-creator-2.4.1-src.tar.gz.  I
  can't build it because it seems to want the SDK installation, which I
 can't
  have.

 Why do you think it wants the SDK installation? Are you getting an error
 message? I have qt-creator built here from sources and have done so for 3
 years, before the SDK was invented.

  Is it possible to have both qt 4.8 built from sources and qtcreator also
  built from sources so that they work together?

 Yes. That's how both Qt and Qt Creator are themselves developed :-)

  If the answer is yes, I
  need some guidance as to how this can be done. Are there other source
  packages that might include qt 4.8 and qtcreator?

 There is no extra guidance because this should be quite simple. The
 commands
 you listed below should have worked. You need to tell us why they didn't.

  Unpacked qt-creator-2.4.1-src.tar.gz in the third directory and
  cd /opt/qt/qtc-2.4.1
  qmake /opt/qt/qt-creator-2.4.1-src/qtcreator.pro
  and this last command fails and I suspect that it needs the SDK
 installation
  of qt 4.7.4 or higher.

 Qt Creator requires a recent Qt to build. Check that you ran the qmake from
 the Qt 4.8.0 that you've just compiled, not a previous, older version of Qt
 that you might have in your system.

 --
 Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
  PGP/GPG: 0x6EF45358; fingerprint:
  E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

 ___
 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