Re: [Interest] Can't add PySide2

2019-09-11 Thread Tom Isaacson
> iirc you need to remove the quotes from "pyside2"

No difference.

> Are you certain that the virtualenv where your pipenv installed pyside2 is 
> the same one from which your python interpreter comes from?

Yes.

> Can you do a pip list or look inside the interpreters site-packages if you 
> see the PySide2 directory?

pipenv shell
pip list
Package Version
--- -
PySide2 5.13.1

I tried removing the Pipfile.lock and deleting the cache but no luck. I ended 
up copying my code to a new directory and setting up from scratch and that 
seems to have fixed it, so must have been a Pipenv problem.

Thanks.

Tom Isaacson

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


[Interest] iPadOS Support

2019-09-11 Thread Jason H
https://www.theverge.com/2019/9/10/20859208/apple-ipados-ipad-os-september-30-release-date-install-air-pro-mini

I'm assuming this will be supported? By which Qt version?
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Why can't I sort QTreeView?

2019-09-11 Thread Matthew Woehlke
On 11/09/2019 15.52, Matthew Woehlke wrote:
> I have a QTreeView. The model is set to a subclass of
> QAbstractSortFilterProxyModel, which is in turn proxying a subclass of
> QAbstractItemModel.
> 
> I've set sortingEnabled, but for the life of me, I can't get sorting to
> actually work (under user control); no sorting indicator is shown, and
> clicking on the column headers does nothing.
> 
> What am I missing?

Um.. okay, answering my own question, sort-of, QHeaderView::restoreState
borked it somehow. So, I can work around it by nuking the "bad"
settings, but what did QHeaderView::restoreState to bork it, and how
would I fix it in code?

-- 
Matthew
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Why can't I sort QTreeView?

2019-09-11 Thread Matthew Woehlke
Okay, this is driving me nuts...

I have a QTreeView. The model is set to a subclass of
QAbstractSortFilterProxyModel, which is in turn proxying a subclass of
QAbstractItemModel.

I've set sortingEnabled, but for the life of me, I can't get sorting to
actually work (under user control); no sorting indicator is shown, and
clicking on the column headers does nothing.

What am I missing?

-- 
Matthew
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Android Tooling (Qt 5.12.1 --> Qt 5.13.1)

2019-09-11 Thread Jérôme Godbout
I have the following working with Qt 5.13.1:
- SDK 28 rev 6
- SDK Built tools 28.0.3
- SDK Platform tools 28.0.3
- Android SDK tools 26.1.1
- NDK 19.2.535600
Others:
- OpenSSL 1.1.1.c, I have a custom script from 
https://github.com/KDAB/android_openssl

-Original Message-
From: Interest  On Behalf Of ekke
Sent: September 11, 2019 5:18 AM
To: Android Development ; 
interest@qt-project.org
Subject: [Interest] Android Tooling (Qt 5.12.1 --> Qt 5.13.1)

just upgrading from Qt 5.12.1 to 5.13.1
on macOS 10.13.6 (will switch to 10.14 soon)

what are the recommended tools ?

on Qt 5.12.1 this worked perfect for me:

SDK Platform 28
SDK Tools 25.2.5
NDK r18b
Manifest Min SDK 18, Target SDK 28
openSSL 1.0.0.x

on Qt 5.13.1 is this OK ?

SDK Platform 29
SDK Platform Tools 28.0.1
NDK r19c or r20 ???
Manifest Min SDK 21, Target 29
openSSL 1.1.1.x

should I create new Templates in QtC and overwrite the existing templates from 
5.12.1 ?

BTW: I don't have Android Studio installed, NDK downloaded from Google, SDK 
using native SDK Manager inside QtC

With Qt 5.13.1 I also want to deploy APKs for 32bit and 64bit to fullfill 
Googles PlayStore requirements. Before I only deployed 32 Bit APKs

want to blog about and to be sure that it's all correct

thanks for any tips and input

ekke

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


Re: [Interest] Can't add PySide2

2019-09-11 Thread Cristián Maureira-Fredes
Hello Tom,

On 9/11/19 7:49 AM, Tom Isaacson wrote:
> I just started trying to use Qt for Python but failed at the first hurdle. 
> I'm using VSCode on Ubuntu 18.04 x64 with Python 3.6 and Pipenv. I added:
>  [packages]
>  "pyside2" = "*"

iirc you need to remove the quotes from "pyside2"

> 
> to my Pipfile and ran "pipenv update" and it installed PySide2 fine. I then 
> added:
>  from PySide2.QtCore import QSettings
> 
> to my Python file. But when I try to run VSCode says:
> "Exception has occurred: ModuleNotFoundError"
> No module named 'PySide2'

Are you certain that the virtualenv where your pipenv installed pyside2
is the same one from which your python interpreter comes from?

Can you do a pip list or look inside the interpreters site-packages
if you see the PySide2 directory?

> 
> It's loading the other modules from Pipenv fine. Does anyone have any 
> suggestions?
> 
> Tom Isaacson

Cheers

-- 
Dr. Cristian Maureira-Fredes
Software Engineer

The Qt Company GmbH
Erich-Thilo-Str. 10
D-12489 Berlin

Geschäftsführer: Mika Pälsi,
Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin,
Registergericht: Amtsgericht
Charlottenburg, HRB 144331 B
--
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Android Tooling (Qt 5.12.1 --> Qt 5.13.1)

2019-09-11 Thread ekke
just upgrading from Qt 5.12.1 to 5.13.1
on macOS 10.13.6 (will switch to 10.14 soon)

what are the recommended tools ?

on Qt 5.12.1 this worked perfect for me:

SDK Platform 28
SDK Tools 25.2.5
NDK r18b
Manifest Min SDK 18, Target SDK 28
openSSL 1.0.0.x

on Qt 5.13.1 is this OK ?

SDK Platform 29
SDK Platform Tools 28.0.1
NDK r19c or r20 ???
Manifest Min SDK 21, Target 29
openSSL 1.1.1.x

should I create new Templates in QtC and overwrite the existing
templates from 5.12.1 ?

BTW: I don't have Android Studio installed, NDK downloaded from Google,
SDK using native SDK Manager inside QtC

With Qt 5.13.1 I also want to deploy APKs for 32bit and 64bit to
fullfill Googles PlayStore requirements. Before I only deployed 32 Bit APKs

want to blog about and to be sure that it's all correct

thanks for any tips and input

ekke

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


Re: [Interest] QML and mac system menu

2019-09-11 Thread Mitch Curtis
> -Original Message-
> From: Andreas Pakulat 
> Sent: Tuesday, 10 September 2019 10:20 PM
> To: Mitch Curtis 
> Cc: Alexander Dyagilev ; interestqt-project.org
> 
> Subject: Re: [Interest] QML and mac system menu
> 
> Hi,
> 
> On Tue, Sep 10, 2019 at 3:26 PM Mitch Curtis   > wrote:
> 
> 
>   > -Original Message-
>   > From: Interest mailto:interest-
> boun...@qt-project.org> > On Behalf Of Alexander
>   > Dyagilev
>   > Sent: Tuesday, 10 September 2019 3:11 PM
>   > To: interestqt-project.org 
> mailto:interest@qt-project.org> >
>   > Subject: [Interest] QML and mac system menu
> 
>   > 2) Is there a way to add my custom menu items to the first menu
> element of
>   > my app system menu (which is bold). E.g. "untitled" in my case: .
> "Quit"
>   > menu goes there automatically despite it's in "File" menu really,
> according to
>   > the QML code.
>   >
> 
>   In my experience the Quit menu item goes where it wants to. It
> seems to be a feature of macOS.
> 
> 
> 
> I don't know for QtQuick Controls, but at least for QWidgets its not 'where it
> wants to', but 'where Qt decides to put it'. There's special logic in the 
> native
> code for binding QMenu and it's items to macOS menu items that handles
> actions with the (translated) text 'Quit', 'About', and 'About Qt' and moves
> them to the applications' menu. So you can have a quit action in your file
> menu by not calling it 'Quit' (or 'Exit'). Maybe 'Terminate' would work.
> 
> I suspect the same logic is being applied to menus created via QtQuick
> Controls.
> 
> Andreas

Yeah, so... you still don't have control over it as long as it's named a 
certain way, which was my point.

If you think Qt is doing something wrong, then please report it as a bug. I 
assume we're following design guidelines for macOS.
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest