[Interest] QOpenGLShaderProgram: could not create shader program

2015-05-22 Thread Nuno Santos
Hi, I have build qt statically with the following configure command: configure -prefix c:\qt\5.4\msvc2013_opengl_x86_static -commercial -release -static -nomake examples -nomake tools -nomake tests -opengl desktop -skip webkit -skip multimedia -skip activeqt Now that I’m trying to run a progra

Re: [Interest] QtQuickControls not available under qml/QtQuick on a static built qt

2015-05-22 Thread Nuno Santos
I think I have just found the reason, by executing make under Src\qtquickcontrols: "Some of the required modules (contains(QT_CONFIG, accessibility)) are not available" I have configured with -no-accessibility On 22/05/2015 20:00, Nuno Santos wrote: > Hi, > > I'm adding the necessary plugins t

[Interest] QtQuickControls not available under qml/QtQuick on a static built qt

2015-05-22 Thread Nuno Santos
Hi, I'm adding the necessary plugins to my static built dll and I have just realized that I couldn't found QtQuickControls dir under qml/QtQuick Do I need any special configuration flag to have this kind of tools included in the build? Regards, Nuno

Re: [Interest] How to deploy a qml app with Qt built statically?

2015-05-22 Thread Thiago Macieira
On Friday 22 May 2015 19:07:59 Nuno Santos wrote: > This is a tricky one. Documentation SHOULD be fixed in order to avoid > time waste. Right, the doc there applied to Qt 4, where the plugin file name and the import name were the same. They are not in Qt 5. Did you have QTPLUGIN += ico in your

Re: [Interest] How to deploy a qml app with Qt built statically?

2015-05-22 Thread Thiago Macieira
On Friday 22 May 2015 18:58:05 Nuno Santos wrote: > Q_IMPORT_PLUGIN(qico) Q_IMPORT_PLUGIN(QICOPlugin) -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center ___ Interest mailing list Interest@qt-p

Re: [Interest] How to deploy a qml app with Qt built statically?

2015-05-22 Thread Nuno Santos
Now I know! :) But as I said in my last email, the documentation leads to this error. On 22/05/2015 19:08, Thiago Macieira wrote: > On Friday 22 May 2015 17:59:20 Nuno Santos wrote: >> Q_IMPORT_PLUGIN(qwindows) > It's not "qwindows". The name of the class you need to import is not the same > as t

Re: [Interest] How to deploy a qml app with Qt built statically?

2015-05-22 Thread Thiago Macieira
On Friday 22 May 2015 17:59:20 Nuno Santos wrote: > Q_IMPORT_PLUGIN(qwindows) It's not "qwindows". The name of the class you need to import is not the same as the file name. Try QWindowsIntegrationPlugin. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Sourc

Re: [Interest] How to deploy a qml app with Qt built statically?

2015-05-22 Thread Nuno Santos
I think I have just found the problem and this is due to errors in documentation: *http://doc.qt.io/qt-5/qtplugin.html* The linker was complaining about the missing function *qt_static_plugin_qico* I have dumped the lib symbols to a file and searched for qt_static_plugin_something and what

Re: [Interest] How to deploy a qml app with Qt built statically?

2015-05-22 Thread Nuno Santos
Hi, I have a tried all the ways and means. I can have the linker to link successfully. I have decided to use qico plugin just to be even simpler. c++ source file: #include Q_IMPORT_PLUGIN(qico) .pro file: QTPLUGIN += qico win32 { CONFIG += dll LIBS += qico.lib } build output: er

Re: [Interest] Sorting QSortFilterProxyModel with QML

2015-05-22 Thread Shantanu Tushar
I use a QSortFilterProxyModel with a TableView and using http://doc.qt.io/qt-5/qml-qtquick-controls-tableview.html#sortIndicatorColumn-prop like this- TableView { ... ... sortIndicatorVisible: true onSortIndicatorColumnChanged: model.sort(getColumn(sortIndicatorColumn).role, sortIndicatorOrder) ..

Re: [Interest] How to deploy a qml app with Qt built statically?

2015-05-22 Thread Nuno Santos
Thiago, After reading about it on: http://doc.qt.io/qt-5/qtplugin.html In .pro file I have added: QTPLUGIN += qwindows And in one of the source files I have added: #include Q_IMPORT_PLUGIN(qwindows) And the result was: error LNK2019: unresolved external symbol "struct QStaticPlugin const

Re: [Interest] How to deploy a qml app with Qt built statically?

2015-05-22 Thread Thiago Macieira
On Friday 22 May 2015 16:37:27 Nuno Santos wrote: > Hi, > > I have compiled Qt statically. In this process I have found two > difficulties: > > - If I don't compile it with -developer-build I don't have the plugins > compiled That's a bug, please report. > - When I finally got plugins compiled,

Re: [Interest] Is QLocalSocket reentrant?

2015-05-22 Thread Thiago Macieira
On Friday 22 May 2015 14:35:05 Calogero Mauceri wrote: > Hi all, > > sorry if this is a stupid question, but I'm having some weird memory > corruption problems when using QLocalSocket in multiple threads. It follows the same as all other QObject classes: they are reentrant if you operate on diff

Re: [Interest] Building qt from source statically: Unknown module(s) in QT: qml quick

2015-05-22 Thread Thiago Macieira
On Friday 22 May 2015 09:26:00 Nuno Santos wrote: > Hi, > > I have compiled Qt from source for Windows using the information from > the following links: > > http://doc.qt.io/qt-5/windows-building.html > http://doc.qt.io/qt-5/configure-options.html > > It was built successfully at first using the

Re: [Interest] aarch64-linux-android-g++: error: unrecognized command line option

2015-05-22 Thread Thiago Macieira
On Friday 22 May 2015 15:49:42 Jason H wrote: > I'm not. Qmake is. I don't have those options anywhere in my .pro The point is that you did something to cause it. Those flags are enabled with the conditional: equals(ANDROID_TARGET_ARCH, armeabi-v7a): ANDROID_TARGET_ARCH is set either in your .p

Re: [Interest] How to deploy a qml app with Qt built statically?

2015-05-22 Thread Nuno Santos
Hey, Thanks for your reply. Seemed pretty easy until I got this: error LNK2019: unresolved external symbol "struct QStaticPlugin const __cdecl qt_static_plugin_qwindows(void)" (?qt_static_plugin_qwindows@@YA?BUQStaticPlugin@@XZ) referenced in function "public: __thiscall StaticqwindowsPlugi

[Interest] Sorting QSortFilterProxyModel with QML

2015-05-22 Thread Mathias Baumann
Hello, I am using a QSortFilterProxyModel with QML. I with it from my c++ code by doing for example: sf_server_model.setSourceModel(&server_model); sf_server_model.setDynamicSortFilter(true); sf_server_model.setSortRole(ServerModel::Ping); sf_server_model.sort(0); However, it bec

Re: [Interest] How to deploy a qml app with Qt built statically?

2015-05-22 Thread Konstantin Tokarev
22.05.2015, 18:37, "Nuno Santos" : > Hi, > > I have compiled Qt statically. In this process I have found two > difficulties: > > - If I don't compile it with -developer-build I don't have the plugins > compiled > - When I finally got plugins compiled, they are static libs > > When my program is a

[Interest] How to deploy a qml app with Qt built statically?

2015-05-22 Thread Nuno Santos
Hi, I have compiled Qt statically. In this process I have found two difficulties: - If I don't compile it with -developer-build I don't have the plugins compiled - When I finally got plugins compiled, they are static libs When my program is about to start it asks about plugin windows (i assume

Re: [Interest] SingletonType functions not visible in QML

2015-05-22 Thread Dmitry Volosnykh
Example is fine. On Fri, May 22, 2015 at 6:00 PM, rpzrpz...@gmail.com wrote: > Hello: > > So do we need a static Sing* in the singleton provider or is the example > in the documentation correct? > > I would guess the provider is called ONCE by the QML engine and not > multiple times, but I am us

Re: [Interest] SingletonType functions not visible in QML

2015-05-22 Thread rpzrpz...@gmail.com
Hello: So do we need a static Sing* in the singleton provider or is the example in the documentation correct? I would guess the provider is called ONCE by the QML engine and not multiple times, but I am usually mistaken. But I guess the static allocation will remove all doubt? Ben Lau -> Than

Re: [Interest] SingletonType functions not visible in QML

2015-05-22 Thread Samuel Stirtzel
2015-05-22 16:30 GMT+02:00 Dmitry Volosnykh : > Samuel, what you ask is explained here: > http://doc.qt.io/qt-5/qqmlengine.html#qmlRegisterSingletonType-2 > > citation: > > NOTE: A QObject singleton type instance returned from a singleton type > provider is owned by the QML engine. For this reason,

Re: [Interest] Let's talk about the upcoming Camera breakage in 5.4.2

2015-05-22 Thread Michael R Nelson
Jason makes some good points: 1. Developers trying to use Qt for mobile are indeed tracking the latest patch builds 2. If we're on mobile, good chance we're doing image captures Mike -Original Message- From: interest-bounces+mnelson=sutron@qt-project.org [mailto:interest-bounces+m

Re: [Interest] SingletonType functions not visible in QML

2015-05-22 Thread Dmitry Volosnykh
Samuel, what you ask is explained here: http://doc.qt.io/qt-5/qqmlengine.html#qmlRegisterSingletonType-2 citation: NOTE: A QObject singleton type instance returned from a singleton type provider is owned by the QML engine. For this reason, the singleton type provider function should not be implem

Re: [Interest] SingletonType functions not visible in QML

2015-05-22 Thread Samuel Stirtzel
2015-05-22 16:27 GMT+02:00 Samuel Stirtzel : > 2015-05-22 15:56 GMT+02:00 mark diener : > >> static QObject *singprovider(QQmlEngine *gengine, QJSEngine *gscriptEngine) >> { >> Q_UNUSED(gengine) >> Q_UNUSED(gscriptEngine) >> Sing* gsing = new Sing(); >> return gsing; >> } > > Is the

Re: [Interest] SingletonType functions not visible in QML

2015-05-22 Thread Samuel Stirtzel
2015-05-22 15:56 GMT+02:00 mark diener : > static QObject *singprovider(QQmlEngine *gengine, QJSEngine *gscriptEngine) > { > Q_UNUSED(gengine) > Q_UNUSED(gscriptEngine) > Sing* gsing = new Sing(); > return gsing; > } Is the return value of the function cached in qt internally? Or

Re: [Interest] SingletonType functions not visible in QML

2015-05-22 Thread Dmitry Volosnykh
Also try naming your functions with first letter lowercased. On Fri, May 22, 2015 at 5:06 PM, Ben Lau wrote: > > > On 22 May 2015 at 21:56, mark diener wrote: > >> Hello: >> >> I have a test qmlRegisterSingletonType project as listed below. >> >> The singleton Q_INVOKABLE functions are somehow

Re: [Interest] SingletonType functions not visible in QML

2015-05-22 Thread Ben Lau
On 22 May 2015 at 21:56, mark diener wrote: > Hello: > > I have a test qmlRegisterSingletonType project as listed below. > > The singleton Q_INVOKABLE functions are somehow not visible or in > "scope". > > Anybody have ideas about this? > > # sing.h > > #include > > #include > > #include >

[Interest] SingletonType functions not visible in QML

2015-05-22 Thread mark diener
Hello: I have a test qmlRegisterSingletonType project as listed below. The singleton Q_INVOKABLE functions are somehow not visible or in "scope". Anybody have ideas about this? # sing.h #include #include #include #include class Sing : public QObject { Q_OBJECT public:

Re: [Interest] aarch64-linux-android-g++: error: unrecognized command line option

2015-05-22 Thread Jason H
I'm not. Qmake is. I don't have those options anywhere in my .pro > Sent: Thursday, May 21, 2015 at 4:00 PM > From: "Thiago Macieira" > To: interest@qt-project.org > Subject: Re: [Interest] aarch64-linux-android-g++: error: unrecognized > command line option > > On Thursday 21 May 2015 19:57:5

Re: [Interest] Let's talk about the upcoming Camera breakage in 5.4.2

2015-05-22 Thread Jason H
I've just confirmed via Commercial support that the changes cannot be handled app-side, which means anyone doing camera capture properly in 5.4.1 will not be able to do camera capture on Qt 5.4.2 Since 5.4.2 will break what is agreed as "proper" capture, I BEG THE TROLLS TO LEAVE IT AS IT IS IN

[Interest] Qt World Summit call for papers extended

2015-05-22 Thread Kojo Tero
Hello, By popular demand, we're extending the Qt World Summit 2015 Call for Papers deadline by one week - May 31, 2015. http://blog.qt.io/blog/2015/05/22/window-of-opportunity-qt-world-summit-2015-call-for-papers/ Best regards, Tero ___ Interest mailin

Re: [Interest] Is QLocalSocket reentrant?

2015-05-22 Thread Calogero Mauceri
Il 5/22/2015 2:35 PM, Calogero Mauceri ha scritto: > Hi all, > > sorry if this is a stupid question, but I'm having some weird memory > corruption problems when using QLocalSocket in multiple threads. > > I have a server process, accepting connections from client processes > through a QLocalServe

[Interest] Is QLocalSocket reentrant?

2015-05-22 Thread Calogero Mauceri
Hi all, sorry if this is a stupid question, but I'm having some weird memory corruption problems when using QLocalSocket in multiple threads. I have a server process, accepting connections from client processes through a QLocalServer instance. Every time a new connection is accepted by the QLo

[Interest] Building qt from source statically: Unknown module(s) in QT: qml quick

2015-05-22 Thread Nuno Santos
Hi, I have compiled Qt from source for Windows using the information from the following links: http://doc.qt.io/qt-5/windows-building.html http://doc.qt.io/qt-5/configure-options.html It was built successfully at first using the following configure command: configure -prefix c:\Qt\5.4\msvc2014

Re: [Interest] Qt 5.4 and java (not Android)

2015-05-22 Thread MONDON Daniel
Hi, Thank you for the responses ! Regards Daniel. 20.05.2015, 18:28, "Nuno Santos" : > Daniel, > > In order to communicate between Java and Qt (C++) you will need to use JNI. > > Qt abstracts some of the JNI calls. Give a look to QtAndroidExtras: > > http://doc.qt.io/qt-5/qtandroidextras-index.

Re: [Interest] dealing with high-DPI on Windows

2015-05-22 Thread Robert Iakobashvili
On Mon, May 4, 2015 at 11:02 AM, Hamish Moffatt wrote: > Does anyone have any suggestions for dealing with high-DPI environments > in Qt on Windows? Does Qt have anything built-in which helps? > > On Mac we drop in @2x images, enable Qt::AA_UseHighDpiPixmaps and life > is mostly good. But I don't