Re: [Interest] [Announcement] QtWebKit Technology Preview 5

2017-02-07 Thread Adrian Jäkel

Hi,
thats great news - thanks for your work ont this! Is there any chance it 
will be available as msys2 package?


Regards,
Adrian

Am 06.02.2017 um 17:35 schrieb Konstantin Tokarev:

Hi all,

QtWebKit Technology Preview 5 is out.

Highlights of these release are:

* WebGL, accelerated compositing and accelerated 2D canvas are supported now. 
Accelerated compositing is disabled by default for now, it is known to cause 
minor artifacts on some sites.

* MinGW compiler is now fully supported on Windows

This improves feature parity with previous releases of QtWebKit [1]. The only 
major remining thing is QML API (based on WebKit2) which is being worked on 
right now [2]

You can find more detailed release changelog and binary builds compatible with 
official Qt 5.8 SDK at

https://github.com/annulen/webkit/releases/tag/qtwebkit-tp5

Big thanks to all contributors!


[1] https://github.com/annulen/webkit/wiki/Comparison-with-QtWebKit-5.6
[2] https://github.com/annulen/webkit/tree/wk2
  https://github.com/annulen/webkit/wiki/Building-WebKit2-%28WIP%29



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


[Interest] Shadow Build Question

2017-01-19 Thread Adrian Jäkel
When configuring my project for shadow build and setting my build 
directory to somewhere, i get a warning symbol and message that my build 
directory has to be on the same level as the source directory. Whats the 
reasoning behind that? I cannot remember that it ever was a problem to 
have it somewhere else.


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


Re: [Interest] QML Map Provider MapQuest has disabled direct access

2016-07-19 Thread Adrian Jäkel

Thanks for all the info so far.

Is there any more information about the conflicting parts in the T? Is 
it a about using Google inside lgpl code? Or something about the 
techniques used? Whats the difference to e.g. the "here" maps who also 
need an registered api key, basically in the same way as with an 
registered google maps key.


Adrian

Am 18.07.2016 um 08:19 schrieb Alexander Blasche:

Hi,


Has anyone tried to write a provider
plugin for google maps or has anyone had any success in using the native
Android MapView/MapFragment as well as iOS MapKit alongside QML in their
App?

I know of at least two patches pushed to Gerrit for working Google implementation. Both 
had to be rejected as the Google T did not permit the usage inside Qt. Unless 
Google has drastically changed its T's within the last year, there is no way Qt 
can accept such a plugin.

--
Alex


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


Re: [Interest] Android MinSDK Qt 5.7

2016-07-13 Thread Adrian Jäkel

Thx, i must have missed that :)

Am 13.07.2016 um 18:40 schrieb ekke:

http://doc.qt.io/qt-5/supported-platforms.html

min level is 16 for Qt 5.7


Am 13.07.16 um 18:30 schrieb Adrian Jäkel:

Hi list,

has there been any changes in the Qt libs which requires a minSDK
Level of 16 now on Android Deployment?

I installed Qt 5.7 today and wanted to deploy my android app with the
new libs but it throwed an error of minSDK having to be >= 16

When i switch back to Qt 5.6.0 i can deploy with minSDK = 9 again.

Has anyone experienced this too?

Regards
___
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 mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Android MinSDK Qt 5.7

2016-07-13 Thread Adrian Jäkel

Hi list,

has there been any changes in the Qt libs which requires a minSDK Level 
of 16 now on Android Deployment?


I installed Qt 5.7 today and wanted to deploy my android app with the 
new libs but it throwed an error of minSDK having to be >= 16


When i switch back to Qt 5.6.0 i can deploy with minSDK = 9 again.

Has anyone experienced this too?

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


[Interest] QML Map Provider MapQuest has disabled direct access

2016-07-13 Thread Adrian Jäkel

Hi,

since Monday, July 11, 2016, the direct tile access to MapQuest legacy 
maps has been stopped. See [1].


Is it correct that there are now no out of the box usable map provider 
plugins?


MapQuest now offers a "free" plan for which you need to register. Has 
anyone tried to adapt the osm plugin to be usable with mapquest credentials?


Since my company already pays for a google maps api licence it seems 
heavy unnecessary to also pay MapQuest if we exceed there 15.000 
transaction/month in the free plan. Has anyone tried to write a provider 
plugin for google maps or has anyone had any success in using the native 
Android MapView/MapFragment as well as iOS MapKit alongside QML in their 
App?


Regards,
Adrian Jäkel

[1] 
http://devblog.mapquest.com/2016/06/15/modernization-of-mapquest-results-in-changes-to-open-tile-access/

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


Re: [Interest] Problems with QWebSocketServer

2016-06-22 Thread Adrian Jäkel

Oh,

wow what a stupid mistake. Thanks for the hint, it seems i need more 
sleep :)


Adrian

Am 22.06.2016 um 16:42 schrieb André Hartmann:

Hi,

> void MainWindow::buttonClicked()
> {
> // uncomment this for not working websocketserver in mainwindow
> //  QWebSocketServer server(QStringLiteral("QWebSocketServer"),
> QWebSocketServer::NonSecureMode);
> //  if (!server.listen(QHostAddress::LocalHost, 12345)) {
> //qFatal("Failed to open web socket server.");
> //  }
> }


Your'e creating the server in the stackframe of 
MainWindow::buttonClicked(). As soon as the function is leaved, the 
stackframe is cleared and the destructor of QWebSocketServer is called.


Solution: add a member variable QWebSocketServer *m_server and 
allocate memory for it in the buttonClicked():


m_server = new QWebSocketServer(QStringLiteral("QWebSocketServer"),
> QWebSocketServer::NonSecureMode);

Best regards,
André

PS: I know this problem because I had it same way with QTcpServer :)

Am 22.06.2016 um 16:28 schrieb Adrian Jäkel:

Hi,

i'm having problems starting a QWebSocketServer from within a
QMainWindow. Perhaps i'm missing something obvious?

When starting it from the main.cpp it works correctly and i can connect
to it from my sample html page. But inside a QMainWindow e.g. after
clicking a button my html page refuses to connect with "Error in
connection establishment: net::ERR_CONNECTION_REFUSED"

Below is a small sample app. Just un/comment accordingly when testing
both cases.

Regards,
A. Jäkel

main.cpp

#include 
#include 
#include 

#include "mainwindow.h"

int main(int argc, char** argv)
{
 QApplication app(argc, argv);

 // comment the following lines when trying websocketserver from
mainwindow
 QWebSocketServer server(QStringLiteral("QWebSocketServer"),
QWebSocketServer::NonSecureMode);
 if (!server.listen(QHostAddress::LocalHost, 12345)) {
 qFatal("Failed to open web socket server.");
 }

 MainWindow w;
 w.show();

 return app.exec();
}

mainwindow.cpp

#include "mainwindow.h"

#include 
#include 

MainWindow::MainWindow(QWidget *parent) :
   QMainWindow(parent)
{
// uncomment this for not working websocketserver in mainwindow
//  QPushButton *button = new QPushButton("start server");
//  setCentralWidget(button);
//  connect(button, ::clicked, this,
::buttonClicked);
}

void MainWindow::buttonClicked()
{
// uncomment this for not working websocketserver in mainwindow
//  QWebSocketServer server(QStringLiteral("QWebSocketServer"),
QWebSocketServer::NonSecureMode);
//  if (!server.listen(QHostAddress::LocalHost, 12345)) {
//qFatal("Failed to open web socket server.");
//  }
}

mainwindow.h

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include 

class MainWindow : public QMainWindow
{
   Q_OBJECT

public:
   explicit MainWindow(QWidget *parent = 0);
   ~MainWindow() {}

   void buttonClicked();
};

#endif // MAINWINDOW_H


index.html


 
 
 window.onload = function() {
 var baseUrl = "ws://localhost:12345";

 console.info("Connecting to WebSocket server at " +
baseUrl + ".");
 var socket = new WebSocket(baseUrl);

 socket.onclose = function()
 {
 console.error("web channel closed");
 };
 socket.onerror = function(error)
 {
 console.error("web channel error: " + error);
 };
 socket.onmessage = function(e)
 {
 console.info("message: " + e.data);
 };
 socket.onopen = function()
 {
 console.warn("WebSocket connected.");
 }
 }
 
 
 
 


.pro file
QT += gui widgets websockets

SOURCES += \
 main.cpp \
 mainwindow.cpp

HEADERS += \
 mainwindow.h

DISTFILES += \
 index.html

___
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] Problems with QWebSocketServer

2016-06-22 Thread Adrian Jäkel

Hi,

i'm having problems starting a QWebSocketServer from within a 
QMainWindow. Perhaps i'm missing something obvious?


When starting it from the main.cpp it works correctly and i can connect 
to it from my sample html page. But inside a QMainWindow e.g. after 
clicking a button my html page refuses to connect with "Error in 
connection establishment: net::ERR_CONNECTION_REFUSED"


Below is a small sample app. Just un/comment accordingly when testing 
both cases.


Regards,
A. Jäkel

main.cpp

#include 
#include 
#include 

#include "mainwindow.h"

int main(int argc, char** argv)
{
QApplication app(argc, argv);

// comment the following lines when trying websocketserver from 
mainwindow
QWebSocketServer server(QStringLiteral("QWebSocketServer"), 
QWebSocketServer::NonSecureMode);

if (!server.listen(QHostAddress::LocalHost, 12345)) {
qFatal("Failed to open web socket server.");
}

MainWindow w;
w.show();

return app.exec();
}

mainwindow.cpp

#include "mainwindow.h"

#include 
#include 

MainWindow::MainWindow(QWidget *parent) :
  QMainWindow(parent)
{
// uncomment this for not working websocketserver in mainwindow
//  QPushButton *button = new QPushButton("start server");
//  setCentralWidget(button);
//  connect(button, ::clicked, this, 
::buttonClicked);

}

void MainWindow::buttonClicked()
{
// uncomment this for not working websocketserver in mainwindow
//  QWebSocketServer server(QStringLiteral("QWebSocketServer"), 
QWebSocketServer::NonSecureMode);

//  if (!server.listen(QHostAddress::LocalHost, 12345)) {
//qFatal("Failed to open web socket server.");
//  }
}

mainwindow.h

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include 

class MainWindow : public QMainWindow
{
  Q_OBJECT

public:
  explicit MainWindow(QWidget *parent = 0);
  ~MainWindow() {}

  void buttonClicked();
};

#endif // MAINWINDOW_H


index.html




window.onload = function() {
var baseUrl = "ws://localhost:12345";

console.info("Connecting to WebSocket server at " + baseUrl + ".");
var socket = new WebSocket(baseUrl);

socket.onclose = function()
{
console.error("web channel closed");
};
socket.onerror = function(error)
{
console.error("web channel error: " + error);
};
socket.onmessage = function(e)
{
console.info("message: " + e.data);
};
socket.onopen = function()
{
console.warn("WebSocket connected.");
}
}






.pro file
QT += gui widgets websockets

SOURCES += \
main.cpp \
mainwindow.cpp

HEADERS += \
mainwindow.h

DISTFILES += \
index.html

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


Re: [Interest] Cannot source debug Android on Qt 5.5.1 RC snapshot?

2015-09-24 Thread Adrian Jäkel
Most probably you run into the problems with the recent android sdk. I 
think there is some fix pending: 
https://bugreports.qt.io/browse/QTCREATORBUG-15032


Regards

Am 23.09.2015 um 22:28 schrieb Edward Sutton:
What are things to check when Android source code debugging stops 
working?


I press debug run button then select my USB connected Android 5.1.1 
device.



It deploys to my tablet without problem.  I can run it too.

When Launching Debugger progress bar completes, nothing happens.

Application Output reports debugging has started and finished.

*Debugging starts*
*Debugging has finished*


Compile Output:

Copying 308 dependencies from Qt into package.
3988 KB/s (17992039 bytes in 4.405s)
Installing Android package to device.
Running command "/Users/edward3/android/sdk/platform-tools/adb -s 
08f513c6 install -r 
/Users/edward3/Documents/projects/build-tsr-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//bin/QtApp-debug.apk"

pkg: /data/local/tmp/QtApp-debug.apk
Success
Android package built successfully in 8.656 ms.
-- It can now be run from the selected device/emulator.
-- File: 
/Users/edward3/Documents/projects/build-tsr-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//bin/QtApp-debug.apk
15:18:38: The process 
"/Users/edward3/Qt5.5.1/5.5/android_armv7/bin/androiddeployqt" exited 
normally.

15:18:38: Pulling files necessary for debugging.
15:18:38: Package deploy: Running command 
"/Users/edward3/android/sdk/platform-tools/adb -s 08f513c6 pull 
/system/bin/app_process32 
/Users/edward3/Documents/projects/build-tsr-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/app_process".
15:18:38: Package deploy: Running command 
"/Users/edward3/android/sdk/platform-tools/adb -s 08f513c6 pull 
/system/lib/libc.so 
/Users/edward3/Documents/projects/build-tsr-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/libc.so".

15:18:38: Elapsed time: 00:51.

Thanks,

-Ed

This email and any files transmitted with it from The Charles Machine 
Works, Inc. are confidential and intended solely for the use of the 
individual or entity to which they are addressed. If you have received 
this email in error please notify the sender. Our company accepts no 
liability for the contents of this email, or for the consequences of 
any actions taken on the basis of the information provided, unless 
that information is subsequently confirmed in writing. Please note 
that any views or opinions presented in this email are solely those of 
the author and do not necessarily represent those of the company. 
Finally, the recipient should check this email and any attachments for 
the presence of viruses. The company accepts no liability for any 
damage caused by any virus transmitted by this email.



___
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