Re: [Interest] Building 5.12 on macOS 10.12.6

2018-09-12 Thread Andy
>From the config output:

  macOS version .. 10.12.6
  Xcode version .. 9.2
  Clang version .. Apple LLVM version 9.0.0
(clang-900.0.39.2)
  macOS SDK version .. 10.13.2
  macOS minimum deployment target  10.12

As far as I know this is the latest "everything" I can install on 10.12.6.

---
Andy Maloney  //  https://asmaloney.com
twitter ~ @asmaloney 



On Wed, Sep 12, 2018 at 7:45 PM Thiago Macieira 
wrote:

> On Wednesday, 12 September 2018 10:12:32 PDT Andy wrote:
> > I'm running into problems building 5.12 (git from yesterday) on macOS
> > 10.12.6:
>
> What XCode version are you using and what target SDK is it using? Qt can
> only
> be compiled against the very latest SDK for the Apple OSes.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
>
>
> ___
> 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] Building 5.12 on macOS 10.12.6

2018-09-12 Thread Thiago Macieira
On Wednesday, 12 September 2018 10:12:32 PDT Andy wrote:
> I'm running into problems building 5.12 (git from yesterday) on macOS
> 10.12.6:

What XCode version are you using and what target SDK is it using? Qt can only 
be compiled against the very latest SDK for the Apple OSes.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center



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


[Interest] Dockwidget show/hide animation

2018-09-12 Thread Fábián Kristóf - Szabolcs
Hi,

I want to implement animated showing/hiding (sliding in-out) of a QDockWidget, 
currently I have implemented this: https://www.youtube.com/watch?v=qBkvHQrQBO0 
In this video you can see that when I press the buttons, first I get a darker 
area (I think it's a dock window) shown which changes the layout and then the 
widget itself slides in. Is there any way to get rid of that "darker area" 
behind the widget? Maybe animate it together with the widget maybe.

The code: 
https://github.com/KDE/labplot/commit/3ef13eed12d03ca6f4026f4217b986010096e597

Thanks in advance,

Fabian Kristof

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


[Interest] {macOS} Qt Installer insists on installing 5.11.2 snapshot

2018-09-12 Thread Andy
(Posted in the forum - no response - but thought I'd mention it here as
well to see if others have the same problem.)

macOS 10.12.6

- run maintenance tool (v 3.0.1)
- choose Add or remove components
- deselect all new things (Qt 5.11.2 snapshot)
- deselect an old version of Qt to remove it
- click Continue (it says it's going to use 3.98 GiB of space)
- click Update

It starts installing 5.11.2...

Result: I cannot remove an old version of Qt. (Maybe it would after
installing 5.11.2, but I don't want to install it.)

I wonder if it's a similar problem as
https://forum.qt.io/topic/94409/qt-installation-failed-with-unresolved-dependencies

---
Andy Maloney  //  https://asmaloney.com
twitter ~ @asmaloney 
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Building 5.12 on macOS 10.12.6

2018-09-12 Thread Andy
I'm running into problems building 5.12 (git from yesterday) on macOS
10.12.6:

Undefined symbols for architecture x86_64:
  "_SSLCopyALPNProtocols", referenced from:
  QSslSocketBackendPrivate::continueHandshake() in qsslsocket_mac.o
  "_SSLSetALPNProtocols", referenced from:
  QSslSocketBackendPrivate::initSslContext() in qsslsocket_mac.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[4]: *** [../../lib/QtNetwork.framework/QtNetwork_debug] Error 1
make[3]: *** [debug-all] Error 2
make[2]: *** [sub-network-make_first] Error 2
make[1]: *** [sub-src-make_first] Error 2
make: *** [module-qtbase-make_first] Error 2


Configuration knows it's using Secure Transport:

  SecureTransport  yes
  OpenSSL  no
Qt directly linked to OpenSSL  no
  OpenSSL 1.1  no


Anyone else having this issue?

---
Andy Maloney  //  https://asmaloney.com
twitter ~ @asmaloney 
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt.labs.platform

2018-09-12 Thread Igor Mironchik



On 12.09.2018 17:53, Mitch Curtis wrote:

-Original Message-
From: Interest  On
Behalf Of Igor Mironchik
Sent: Wednesday, 12 September 2018 3:49 PM
To: interest@qt-project.org
Subject: [Interest] Qt.labs.platform

I'm on Linux with static Qt, I link my app to libqtlabsplatformplugin.a

I've got the following error

module "Qt.labs.platform" plugin "qtlabsplatformplugin" not found

Does it mean that I linked with wrong order, or it tells about something
different?

Are you sure the static plugin exists in your Qt build?

Try running the application with QML_IMPORT_TRACE=1 and provide the output here.


QQmlImports(qrc:/qml/app.qml)::addLibraryImport: "Qt.labs.platform" 1.0 
as ""
QQmlImports(qrc:/qml/app.qml)::importExtension: loaded 
"/home/.../Qt5/qml/Qt/labs/platform/qmldir"

...
    qrc:/qml/app.qml:6:1: module "Qt.labs.platform" plugin 
"qtlabsplatformplugin" not found


It's probably not related, but you should also make sure you have QT += widgets 
in your .pro.


___
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] QMAKE_COPY not used anymore for files in INSTALLS. Workaround?

2018-09-12 Thread Thiago Macieira
On Wednesday, 12 September 2018 08:27:04 PDT Olivier B. wrote:
> - Make a renamed backup of the previous target file if it already exists on
> the network share, to avoid some issues (allow to overwrite the installed
> file on the network path, even if some people are currently using that file
> by running the project where it was installed)

This one shouldn't be needed anymore. The "qinstall" should do this for you by 
writing to a temporary file and then doing an atomic rename to clobber the old 
file.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center



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


Re: [Interest] Is it possible to define and inherit component in the same QML file?

2018-09-12 Thread Mitch Curtis
> -Original Message-
> From: Alexander Ivash 
> Sent: Wednesday, 12 September 2018 6:07 PM
> To: Mitch Curtis 
> Subject: Re: [Interest] Is it possible to define and inherit component in the
> same QML file?
> 
> Thanks, that's what I thought, but still hoped. Is this something can be added
> in future?

Somehow I doubt it, but only the QML engine developers can give an 
authoritative answer.

> ср, 12 сент. 2018 г. в 19:05, Mitch Curtis :
> >
> > > -Original Message-
> > > From: Interest 
> > > On Behalf Of Alexander Ivash
> > > Sent: Wednesday, 12 September 2018 6:02 PM
> > > To: interest@qt-project.org
> > > Subject: [Interest] Is it possible to define and inherit component
> > > in the same QML file?
> > >
> > > Like this:
> > >
> > > property Component baseDelegate: Item { }
> > >
> > > property Component textDelegate: baseDelegate { }
> > >
> > > property Component imageDelegate: baseDelegate { } .
> > >
> > > Currently it doesn't work, but maybe there are some tricks to
> > > achieve behaviour like this without moving baseDelegate to
> 'BaseDelegate.qml'.
> > > And yes, I'm aware of composition, but the question is about inheritance.
> >
> > I don't think there's any way to do that without creating a separate file 
> > for
> it first.
> >
> > > ___
> > > 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] Is it possible to define and inherit component in the same QML file?

2018-09-12 Thread Mitch Curtis
> -Original Message-
> From: Interest  On
> Behalf Of Alexander Ivash
> Sent: Wednesday, 12 September 2018 6:02 PM
> To: interest@qt-project.org
> Subject: [Interest] Is it possible to define and inherit component in the same
> QML file?
> 
> Like this:
> 
> property Component baseDelegate: Item {
> }
> 
> property Component textDelegate: baseDelegate { }
> 
> property Component imageDelegate: baseDelegate { } .
> 
> Currently it doesn't work, but maybe there are some tricks to achieve
> behaviour like this without moving baseDelegate to 'BaseDelegate.qml'.
> And yes, I'm aware of composition, but the question is about inheritance.

I don't think there's any way to do that without creating a separate file for 
it first.

> ___
> 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] Is it possible to define and inherit component in the same QML file?

2018-09-12 Thread Alexander Ivash
Like this:

property Component baseDelegate: Item {
}

property Component textDelegate: baseDelegate {
}

property Component imageDelegate: baseDelegate {
}
.

Currently it doesn't work, but maybe there are some tricks to achieve
behaviour like this without moving baseDelegate to 'BaseDelegate.qml'.
And yes, I'm aware of composition, but the question is about
inheritance.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] CONFIGURING Qt5.11.1 in Visual Studio 2017

2018-09-12 Thread Timothy W. Grove
Well, it seemed to go okay after upgrading to 5.11.2, but after this I 
am trying to build PyQt5.11.2 and that fails with:


Re: [PyQt] fatal error configuring PyQt5.11.2: Cannot open include 
file: 'QDataStream': No such file or directory

What an I missing? I configured Qt with:

configure -mediaplayer-backend wmf -opensource -confirm-license 
-make-tool jom -nomake examples -nomake tests

I got the source from git and initiated the repository with:

perl 
init-repository--module-subset=default,-qtwebkit,-qtwebkit-examples,-qtwebengine

Best regards,
Tim


On 11/09/2018 17:36, Thiago Macieira wrote:

On Tuesday, 11 September 2018 08:32:35 PDT Timothy W. Grove wrote:

C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include\type_traits(1271):
error C2338: You've instantiated std::aligned_storage with
an extended alignment (in other words, Align > alignof(max_align_t)).
Before VS 2017 15.8, the member type would non-conformingly have an
alignment of only alignof(max_align_t). VS 2017 15.8 was fixed to handle
this correctly, but the fix inherently changes layout and breaks binary
compatibility (*only* for uses of aligned_storage with extended
alignments). Please define either (1) _ENABLE_EXTENDED_ALIGNED_STORAGE
to acknowledge that you understand this message and that you actually
want a type with an extended alignment, or (2)
_DISABLE_EXTENDED_ALIGNED_STORAGE to silence this message and get the
old non-conformant behavior.

Upgrade to 5.11.2.  This is fixed.

(Yes, I know it's not released)



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


Re: [Interest] QMAKE_COPY not used anymore for files in INSTALLS. Workaround?

2018-09-12 Thread Olivier B.
I do
- Reset windows executable permissions for files with some extensions after
copy (copied on a network share where executable permission is meaningfull
to run the exes), using icacls
- Make a renamed backup of the previous target file if it already exists on
the network share, to avoid some issues (allow to overwrite the installed
file on the network path, even if some people are currently using that file
by running the project where it was installed)

Sidenote, after some search:
Looking at
https://github.com/qt/qtbase/commit/50acc8680490319c8fe45615c8d6521f0101728b#diff-2c05a7d11c42aacde5f92861cc595e07,
i would say the constraint to have only files of only dirs in COPIES in
files_copies.prf can be removed now that the QINSTALL command is the same
for files or folders

Le mer. 12 sept. 2018 à 17:16, Thiago Macieira 
a écrit :

> On Wednesday, 12 September 2018 07:46:59 PDT Olivier B. wrote:
> > Here is another change i noticed when switching from 5.6.2 to 5.11.1
> >
> > I used to tweak QMAKE_COPY and its cousins, to do extra stuff on the
> files
> > installed by INSTALLS variable.
> >
> > Now, files in INSTALLS are installed using 'qmake -install qinstall',
> > stored in QINSTALL variable, written in the makefile directly from a
> > hardocded value in qmake sources.
> >
> > It seems i am able to do something similar that i used to by
> > - adding my install targets in COPIES instead of INSTALLS,
> > - modifying mkspecs/features/file_copies.prf to use my custom copy
> command
> > instead of $(QINSTALL)
> >
> > This has at least the additionnal limitation of forcing me to also split
> > install lists that used to contain files and folder into separate lists
> > because file_copies.prf does not like it for some reason, even though i
> > don't see it doing anything specific for files or folders. Also, i can
> not
> > add to COPIES, when TEMPLATE=subdirs, when i can do it for INSTALLS
> >
> > Is there really not anymore a simple way of specifying a list of files
> and
> > folders to install, using a custom copy command, without modifying qmake
> > internals or reinventing the wheel?
>
> Can you tell us what customisation you needed? There may be a different
> way of
> doing what you want to do.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
>
>
> ___
> 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] QMAKE_COPY not used anymore for files in INSTALLS. Workaround?

2018-09-12 Thread Thiago Macieira
On Wednesday, 12 September 2018 07:46:59 PDT Olivier B. wrote:
> Here is another change i noticed when switching from 5.6.2 to 5.11.1
> 
> I used to tweak QMAKE_COPY and its cousins, to do extra stuff on the files
> installed by INSTALLS variable.
> 
> Now, files in INSTALLS are installed using 'qmake -install qinstall',
> stored in QINSTALL variable, written in the makefile directly from a
> hardocded value in qmake sources.
> 
> It seems i am able to do something similar that i used to by
> - adding my install targets in COPIES instead of INSTALLS,
> - modifying mkspecs/features/file_copies.prf to use my custom copy command
> instead of $(QINSTALL)
> 
> This has at least the additionnal limitation of forcing me to also split
> install lists that used to contain files and folder into separate lists
> because file_copies.prf does not like it for some reason, even though i
> don't see it doing anything specific for files or folders. Also, i can not
> add to COPIES, when TEMPLATE=subdirs, when i can do it for INSTALLS
> 
> Is there really not anymore a simple way of specifying a list of files and
> folders to install, using a custom copy command, without modifying qmake
> internals or reinventing the wheel?

Can you tell us what customisation you needed? There may be a different way of 
doing what you want to do.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center



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


Re: [Interest] Qt.labs.platform

2018-09-12 Thread Mitch Curtis
> -Original Message-
> From: Interest  On
> Behalf Of Igor Mironchik
> Sent: Wednesday, 12 September 2018 3:49 PM
> To: interest@qt-project.org
> Subject: [Interest] Qt.labs.platform
> 
> I'm on Linux with static Qt, I link my app to libqtlabsplatformplugin.a
> 
> I've got the following error
> 
> module "Qt.labs.platform" plugin "qtlabsplatformplugin" not found
> 
> Does it mean that I linked with wrong order, or it tells about something
> different?

Are you sure the static plugin exists in your Qt build?

Try running the application with QML_IMPORT_TRACE=1 and provide the output here.

It's probably not related, but you should also make sure you have QT += widgets 
in your .pro.

> ___
> 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] QMAKE_COPY not used anymore for files in INSTALLS. Workaround?

2018-09-12 Thread Olivier B.
Here is another change i noticed when switching from 5.6.2 to 5.11.1

I used to tweak QMAKE_COPY and its cousins, to do extra stuff on the files
installed by INSTALLS variable.

Now, files in INSTALLS are installed using 'qmake -install qinstall',
stored in QINSTALL variable, written in the makefile directly from a
hardocded value in qmake sources.

It seems i am able to do something similar that i used to by
- adding my install targets in COPIES instead of INSTALLS,
- modifying mkspecs/features/file_copies.prf to use my custom copy command
instead of $(QINSTALL)

This has at least the additionnal limitation of forcing me to also split
install lists that used to contain files and folder into separate lists
because file_copies.prf does not like it for some reason, even though i
don't see it doing anything specific for files or folders. Also, i can not
add to COPIES, when TEMPLATE=subdirs, when i can do it for INSTALLS

Is there really not anymore a simple way of specifying a list of files and
folders to install, using a custom copy command, without modifying qmake
internals or reinventing the wheel?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Qt.labs.platform

2018-09-12 Thread Igor Mironchik

I'm on Linux with static Qt, I link my app to libqtlabsplatformplugin.a

I've got the following error

module "Qt.labs.platform" plugin "qtlabsplatformplugin" not found

Does it mean that I linked with wrong order, or it tells about something 
different?


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


Re: [Interest] CONFIGURING Qt5.11.1 in Visual Studio 2017

2018-09-12 Thread Timothy W. Grove

Thanks. It worked. It took half a day, but it worked!

Tim


On 11/09/2018 17:36, Thiago Macieira wrote:

On Tuesday, 11 September 2018 08:32:35 PDT Timothy W. Grove wrote:

C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include\type_traits(1271):
error C2338: You've instantiated std::aligned_storage with
an extended alignment (in other words, Align > alignof(max_align_t)).
Before VS 2017 15.8, the member type would non-conformingly have an
alignment of only alignof(max_align_t). VS 2017 15.8 was fixed to handle
this correctly, but the fix inherently changes layout and breaks binary
compatibility (*only* for uses of aligned_storage with extended
alignments). Please define either (1) _ENABLE_EXTENDED_ALIGNED_STORAGE
to acknowledge that you understand this message and that you actually
want a type with an extended alignment, or (2)
_DISABLE_EXTENDED_ALIGNED_STORAGE to silence this message and get the
old non-conformant behavior.

Upgrade to 5.11.2.  This is fixed.

(Yes, I know it's not released)



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


Re: [Interest] Painting with QPainter to QPixmap in C++ method invoked from QML

2018-09-12 Thread Guenter Schwann via Interest
On Mittwoch, 12. September 2018 09:40:08 CEST Igor Mironchik wrote:
> Hello.
> 
> Let's say I have C++ code to draw to QPixmap with QPainter.
> 
> This code returns data:image/png;base64,... string that can be used in QML.
> 
> But when I invoke this method from QML I've got
> 
> QPainter::begin: Paint device returned engine == 0, type: 2
> 
> So my question is how can I draw with QPainter in back-end from QML?

I'm not sure what you would like to do.

Do you only show the image in the UI? Then QQuickPaintedItem is probably what 
you would like to use.
For providing images from C++ I write a QQuickImageProvider.

But from your error message I'd check if your paint device (QPixmap) is empty.



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


[Interest] Painting with QPainter to QPixmap in C++ method invoked from QML

2018-09-12 Thread Igor Mironchik

Hello.

Let's say I have C++ code to draw to QPixmap with QPainter.

This code returns data:image/png;base64,... string that can be used in QML.

But when I invoke this method from QML I've got

QPainter::begin: Paint device returned engine == 0, type: 2

So my question is how can I draw with QPainter in back-end from QML?

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