Re: [Interest] Qt6 build on Raspi

2024-03-26 Thread Hamish Moffatt via Interest
Hi Alexander, All the modules are available - see in https://archive.raspbian.org/raspbian/pool/main/q/ Hamish Sent from Nine<http://www.9folders.com/> From: Alexander Carôt Sent: Monday, March 25, 2024 16:06 To: Hamish Moffatt Cc: interest@qt-proje

Re: [Interest] Qt6 build on Raspi

2024-03-09 Thread Hamish Moffatt via Interest
On 9/3/24 20:57, Alexander Carôt via Interest wrote: ... or build on a system with sufficient RAM. I see – can I use any ARM based machine in order to work on a Raspi4 or are there specific requirements ? Furthermore, I might have missed something but are there probably pre-built Qt6

Re: [Interest] [Qt bugreports] Updates for QTBUG-122109: QTreeWidget's columns do not seem to resize properly after upgrading from Qt6.5.3 to Qt6.1.1

2024-03-05 Thread Hamish Moffatt via Interest
On 6/3/24 17:40, Jani Heikkinen via Interest wrote: Hi! Yeah, no snapshot or release yet having this fix. The fix will be in Qt 6.7.0 RC, which should be released soon, most probably at the beginning of next week Jira says it is fixed in 6.5.5, which isn't correct. Hamish

Re: [Interest] Modeless dialog issue on Mac

2023-11-15 Thread Hamish Moffatt via Interest
On 15/11/23 21:01, Calogero Mauceri wrote: The problem of using Qt::WindowStaysOnTopHint is that the dialog stays on top of any desktop application while it has to be on top of the application level only. Here is what I mean We grappled with this too. It actually worked well in earlier

Re: [Interest] QEvent::Quit vs. QEvent::Close

2023-10-23 Thread Hamish Moffatt via Interest
On 24/10/23 06:10, Alexander Dyagilev wrote: I would prefer for an additional event to be used when the user triggers Quit. E.g. something like QEvent::QuitByUser. For now, it seems I will have to involve some additional ugly logics (something like setting a global variable) More code

Re: [Interest] Qt Installer Framework - add menu entries under Linux

2023-09-12 Thread Hamish Moffatt via Interest
On 9/9/23 19:14, Petric Frank wrote: Hello, there is an example to add start menu entries for the windows platform. But how to do it for the Linux platform - here: Debian 12 (Bookworm) ? Platform: Debian 12 WM: KDE Plasma Qt 5.15.2 (by Online Installer from qt.io) You need to create a

Re: [Interest] slower compilation with Qt6

2023-07-24 Thread Hamish Moffatt via Interest
On 24/7/23 17:01, Cristian Adam wrote: The compilation time degradation is being tracked at [QTBUG-97601] Compilation speed decrease with Qt 6.2 compared to Qt 5.15.2 - Qt Bug Tracker For Qt Creator I use https://ccache.dev/ (yes, it works with

[Interest] slower compilation with Qt6

2023-07-23 Thread Hamish Moffatt via Interest
I've just finished porting my application from Qt 5.15 to 6.5, and I'm finding that compilation is significantly slower now - builds take twice as long or more. For example a linux-g++ build of a project with ~650 .o files has gone from 45 seconds to 100. I see similar increases on Windows

Re: [Interest] unresolved WinMain on porting to Qt 6

2023-06-25 Thread Hamish Moffatt via Interest
On 23/6/23 22:16, Henry Skoglund wrote: On 2023-06-23 07:15, Hamish Moffatt via Interest wrote: If I add the linker flag /ENTRY:mainCRTStartup then it builds. What's the correct Qt solution for this though? The fact that adding /ENTRY:mainCRTStartup helped implies that you're linking

[Interest] unresolved WinMain on porting to Qt 6

2023-06-22 Thread Hamish Moffatt via Interest
I'm porting my applications to Qt6, from 5.15. Still using qmake. My console applications build and run fine, but my widgets applications fail to link with an error (Windows, VS 2022): 1>MSVCRTD.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol WinMain referenced in function

Re: [Interest] Qt 6.4.3 compiler warnings in QTaggedPointer

2023-03-23 Thread Hamish Moffatt via Interest
On 23/3/23 18:15, Thiago Macieira wrote: On Wednesday, 22 March 2023 18:19:59 HST Hamish Moffatt via Interest wrote: static constexpr quint8 tagBits = QtPrivate::qConstexprCountTrailingZeroBits(alignment); So would you fix it with a cast, or by changing the variable type to int to match

Re: [Interest] Qt 6.4.3 compiler warnings in QTaggedPointer

2023-03-22 Thread Hamish Moffatt via Interest
On 23/3/23 05:00, Thiago Macieira wrote: I don't see any changes since v6.4 that would fix that. It looks trivial though to apply an explicit cast to silence that warning. Any chance you can contribute it? I started with a bug report, anyway: QTBUG-11. static constexpr quint8 tagBits =

Re: [Interest] Qt 6.4.3 compiler warnings in QTaggedPointer

2023-03-22 Thread Hamish Moffatt via Interest
On 22/3/23 18:12, Thiago Macieira wrote: On Tuesday, 21 March 2023 20:18:17 HST Hamish Moffatt via Interest wrote: I'm porting from Qt 5.15.12 to 6.4.3, and now MSVC 2019 is giving me a ton of compiler warnings about QTaggedPointer. [cut] Any suggestions on how to shut it up? Stop using 2019

[Interest] Qt 6.4.3 compiler warnings in QTaggedPointer

2023-03-22 Thread Hamish Moffatt via Interest
I'm porting from Qt 5.15.12 to 6.4.3, and now MSVC 2019 is giving me a ton of compiler warnings about QTaggedPointer. I don't know what that is, except I see it used in qproperty.h and I use a lot of Q_GADGET classes with Q_PROPERTYs. I'm using /W3 in MSVC and compiling for 64-bit. I've

Re: [Interest] can't dump QStringList with qDebug()

2023-03-07 Thread Hamish Moffatt via Interest
On 8/3/23 14:45, Thiago Macieira wrote: On Tuesday, 7 March 2023 17:21:11 PST Hamish Moffatt via Interest wrote: I said gcc 10 earlier, but I meant to say clang 11. But I also see it in clang 14, and in VS 2019 (17.5.1 - latest). Cannot reproduce with those files with GCC 11, 12, 13 or Clang

Re: [Interest] can't dump QStringList with qDebug()

2023-03-07 Thread Hamish Moffatt via Interest
On 8/3/23 04:15, Thiago Macieira wrote: On Monday, 6 March 2023 22:15:01 PST Hamish Moffatt via Interest wrote: ../../../../Qt6.4.2/6.4.2/gcc_64/include/QtCore/qdebug.h:217:53: note: candidate template ignored: requirement 'std::conjunction_v, QString>, QTypeTraits::has_ostream_opera

Re: [Interest] can't dump QStringList with qDebug()

2023-03-07 Thread Hamish Moffatt via Interest
On 7/3/23 20:11, Kai Köhne wrote: Hi, This looks like a compiler issue to me. const auto connections = QSqlDatabase::connectionNames(); qDebug() << "Closing open connections:" << connections; claiming that ../../../src/server/server_database.cpp:691:45: error: invalid operands to

[Interest] can't dump QStringList with qDebug()

2023-03-06 Thread Hamish Moffatt via Interest
I'm porting my code to Qt6 (6.4.2) (from 5.15) and ran into this mysterious problem; this code doesn't compile:     const auto connections = QSqlDatabase::connectionNames();     qDebug() << "Closing open connections:" << connections; claiming that

Re: [Interest] use of deleted function errors in QList / qarraydataops.h

2023-02-27 Thread Hamish Moffatt via Interest
On 28/2/23 12:00, Hamish Moffatt via Interest wrote: Qt5's documentation (like Qt6's) does say "QVector's value type must be an assignable data type", so the mystery here is perhaps why our code works with Qt5. Even in Qt6, it compiles with other things in the struct that aren't

Re: [Interest] use of deleted function errors in QList / qarraydataops.h

2023-02-27 Thread Hamish Moffatt via Interest
On 28/2/23 11:49, Thiago Macieira wrote: On Monday, 27 February 2023 16:22:46 PST Hamish Moffatt via Interest wrote: How and when would Qt5 show an error? We have the above code working and in production, and I'm able resize, copy and change, force a detach - operations where QVector would need

Re: [Interest] use of deleted function errors in QList / qarraydataops.h

2023-02-27 Thread Hamish Moffatt via Interest
On 28/2/23 11:14, Thiago Macieira wrote: On Monday, 27 February 2023 13:05:01 PST Hamish Moffatt via Interest wrote: On 28/2/23 04:14, Thiago Macieira wrote: On Sunday, 26 February 2023 23:24:43 PST Hamish Moffatt via Interest wrote: Is there a solution? Remove the const in: struct S

Re: [Interest] use of deleted function errors in QList / qarraydataops.h

2023-02-27 Thread Hamish Moffatt via Interest
On 28/2/23 04:14, Thiago Macieira wrote: On Sunday, 26 February 2023 23:24:43 PST Hamish Moffatt via Interest wrote: Is there a solution? Remove the const in: struct S { const QVector v; // compiles if not const }; If S is not copyable, then QVector can't copy

[Interest] use of deleted function errors in QList / qarraydataops.h

2023-02-26 Thread Hamish Moffatt via Interest
I have some code which boils down to this: #include void test() {     struct S     {         const QVector v; // compiles if not const     };     QVector> pv; // doesn't compile with this     //std::vector> pv; // compiles with this     pv.push_back(std::make_pair({}, {})); } This

Re: [Interest] MSVC not-the-latest: are you using it? why?

2023-01-26 Thread Hamish Moffatt via Interest
On 26/1/23 03:52, Thiago Macieira wrote: The reason I asked about VS2019, aside from the simple learning of many things I did not anticipate, is that we're seeing it have C++ compliance issues. This is not even C++20 or 17; it's a plain constexpr function that should have worked with C++14. Is

[Interest] QScopedPointer::create

2023-01-18 Thread Hamish Moffatt via Interest
Is there any reason why QScopedPointer doesn't have a create static method, like QSharedPointer does? I didn't see any requests for it in jira. Should I just use unique_ptr instead? Hamish ___ Interest mailing list Interest@qt-project.org

Re: [Interest] Qt 6.5 Is Irrelevant...

2022-12-22 Thread Hamish Moffatt via Interest
On 21/12/22 06:38, Allan Sandfeld Jensen wrote: On Montag, 19. Dezember 2022 16:59:41 CET Michael Jackson wrote: So not really a “jolt every 3 years”. You have had 3 _total_ jolts over the course of 30 years. Except them dropping support for pre-AVX, pre-AVX2 CPUs, Big Sur (macOS 11),

Re: [Interest] Official linuxdeployqt ?

2022-08-09 Thread Hamish Moffatt via Interest
On 9/8/22 23:50, Roland Hughes via Interest wrote: On 8/9/22 05:00, Vadim Peretokin wrote: Just to correct some biases here, in my opinion as a software publisher AppImage is still the simplest way for a user to run your app.? To get Mudlet (a FOSS text games client) all you need to do is go

Re: [Interest] Official linuxdeployqt ?

2022-08-08 Thread Hamish Moffatt via Interest
On 8/8/22 16:09, Jörg Bornemann wrote: Mitch already pointed you to QTBUG-74940.  The biggest question regarding a linuxdeployqt is: what exactly is the deployment format going to be?  There's no standard way of deploying Linux applications. There are many. The community contributions create

Re: [Interest] QtWebEngine crash after codesign

2022-04-29 Thread Hamish Moffatt via Interest
On 30/4/22 00:56, Alexander Carôt wrote: codesign --options=runtime --deep ./simplebrowser.app -s "Developer ID Application:–xyz" The hardened runtime (--options=runtime) causes the web engine to crash. You need to add entitlements while signing it. See:

Re: [Interest] webengine for iOS

2022-04-28 Thread Hamish Moffatt via Interest
On 29/4/22 15:32, Alexander Carôt wrote: >>>Apple don't allow the use of any browser on iOS except the the system web view. Wow – again I am "amazed" by the tough iOS restrictions. I have never experienced such huge amount of regulations before. Well, it has its pros and cons, however, from

Re: [Interest] webengine for iOS

2022-04-28 Thread Hamish Moffatt via Interest
On 29/4/22 04:30, Alexander Carôt wrote: >>There is no qtwebenigne on ios , use qtwebview instead. Ah – ok, good to know but I'd also be curious to know why. Apple don't allow the use of any browser on iOS except the the system web view. Hamish

Re: [Interest] macdeployqt on Monterey 12.3.1

2022-04-27 Thread Hamish Moffatt via Interest
On 27/4/22 18:25, Hamish Moffatt wrote: On 27/4/22 17:05, Alexander Carôt wrote: >>That's not guaranteed to work. Major versions 7 and 8 are unlikely to be compatible (else they wouldn't have changed the version number with all the difficulty that creates). Agreed, however, the qu

Re: [Interest] macdeployqt on Monterey 12.3.1

2022-04-27 Thread Hamish Moffatt via Interest
On 27/4/22 17:05, Alexander Carôt wrote: >>That's not guaranteed to work. Major versions 7 and 8 are unlikely to be compatible (else they wouldn't have changed the version number with all the difficulty that creates). Agreed, however, the question is if anyone else besides me can reproduce the

Re: [Interest] macdeployqt on Monterey 12.3.1

2022-04-26 Thread Hamish Moffatt via Interest
On 26/4/22 15:56, Alexander Carôt wrote: Thanks for the pointer, however, it looks rather trivial as if it is asking for lib versions not existent on Monterey. In order to make it workI simply created symbolic links to the current ones: sudo ln -s libffi.8.dylib libffi.7.dylib sudo ln -s

Re: [Interest] qtwebbroser questions

2022-04-12 Thread Hamish Moffatt via Interest
On 11/4/22 22:52, Alexander Carôt wrote: Thus, I decided to continue using the minibrowser code which already is Qt6 ready and worked out fine for me so far. However, here I have the problem that it does not store cookies. I did some research and found e.g.

Re: [Interest] qtwebbroser questions

2022-04-12 Thread Hamish Moffatt via Interest
On 11/4/22 22:52, Alexander Carôt wrote: Thus, I decided to continue using the minibrowser code which already is Qt6 ready and worked out fine for me so far. However, here I have the problem that it does not store cookies. I did some research and found e.g.

Re: [Interest] can't debug 64bit intel windows app on ARM CPU

2022-01-25 Thread Hamish Moffatt via Interest
On 26/1/22 05:49, Cristian Adam wrote: Hi, Please open a bug report at https://bugreports.qt.io/ Which Windows version are you using? Only Windows 11 has support for x64 virtualization for Arm64 machines. It sounds like a Visual Studio installation issue and nothing to do with Qt

Re: [Interest] SQLite database: avoid high memory usage?

2022-01-24 Thread Hamish Moffatt via Interest
On 24/1/22 19:40, Alexander Dyagilev wrote: Hello, Let's suppose we have a database file of 16GB in size. We open it using this code: m_db = QSqlDatabase::addDatabase( "QSQLITE", dbConnectionName()); m_db.setConnectOptions("PRAGMA jounal_mode=WAL;");

Re: [Interest] Please let us choose Qt Creator version in the online installer

2022-01-09 Thread Hamish Moffatt via Interest
On 27/12/21 01:46, Pavel Koshevoy wrote: Also, the maintenance tool needs to be smart enough not to install an incompatible build of Qt Creator on an older version of macos where it can't even run. It would be even better if the installer didn't force you to install Creator at all. We

Re: [Interest] SSL & Let's Encrypt certificate expiration

2021-10-06 Thread Hamish Moffatt via Interest
On 7/10/21 02:53, Thiago Macieira wrote: On Wednesday, 6 October 2021 02:41:39 PDT Hamish Moffatt via Interest wrote: I upgraded to 1.0.2u and added the X1 root directly to Qt. Now the application works. But the instructions from OpenSSL say to also remove the X3 root which I'm not able to do

Re: [Interest] SSL & Let's Encrypt certificate expiration

2021-10-06 Thread Hamish Moffatt via Interest
On 7/10/21 02:48, Thiago Macieira wrote: On Tuesday, 5 October 2021 17:03:43 PDT Hamish Moffatt via Interest wrote: We have had some difficulty here with Windows 10's "lazy loading" of the root certificates. Unless users have been to a site that uses the ISRG X1 root certificate us

Re: [Interest] SSL & Let's Encrypt certificate expiration

2021-10-06 Thread Hamish Moffatt via Interest
On 6/10/21 20:02, Christophe Thomas wrote: Thank you for the hint, I found this link that talks about it: https://community.letsencrypt.org/t/isrg-root-lazy-loading-problem-missing-from-random-updated-windows-10-versions/141550/2 We've also tested on an old linux (ubuntu 16), when trying to

Re: [Interest] SSL & Let's Encrypt certificate expiration

2021-10-05 Thread Hamish Moffatt via Interest
On 6/10/21 06:13, Thiago Macieira wrote: On Tuesday, 5 October 2021 11:45:23 PDT Christophe Thomas wrote: For the cert chain we are currently using the default LE setting so we currently provide the X1 Cross signed with expired X3. Netherless, the issue is that strangely we need to force

[Interest] QJSEngine won't evaluate octal literal

2021-08-03 Thread Hamish Moffatt via Interest
I have the following test code to evaluate an octal literal which I'm running on Qt 5.12 and 5.15;             QJSEngine eng;             auto jsv = eng.evaluate("(function(){return 011;})()");             qDebug() << jsv.isError() << jsv.toString() << jsv.toVariant(); This outputs: true

Re: [Interest] Qt Creator: is it possible to use Visual C++ 2019 with 5.12.10?

2021-05-17 Thread Hamish Moffatt
On 17/5/21 8:24 pm, Alexander Dyagilev wrote: Hello, Is it OK on Windows to install Qt Creator + Qt 5.12.10 + Visual C++ 2019? I know that 2017 and 2019 are binary compatible. But anyway will Qt Creator build without any errors in such configuration? I don't use Creator, but we've been

Re: [Interest] Interest Digest, Vol 114, Issue 38

2021-03-27 Thread Hamish Moffatt
On 27/3/21 9:04 pm, Roland Hughes wrote: If I read Scott's original posts correctly, the compelling reason is a roughly $1 billion multi-year project was started and the OS physically cannot be changed out until that many year project is over. The UI can be updated and new functionality added.

Re: [Interest] the path forward - that 7 year thing - was willy-nilly

2021-03-26 Thread Hamish Moffatt
On 27/3/21 11:47 am, Scott Bloom wrote: Sorry for top posting... But I disagree here. Even for mac, Qt 5 is 9 years old, 4 lived 6 (4.0->4.8 LTS initial release, 4.8 lived for 3 years) Im not saying we go to a Qt Major version for every mac system style change. But if they produce a SDK

Re: [Interest] the path forward - that 7 year thing - was willy-nilly

2021-03-26 Thread Hamish Moffatt
On 27/3/21 11:23 am, Scott Bloom wrote: To be clear. Roland and I are talking about very different issues. To me, Qt should continue to support OS's/Compilers for the life of a Major version of Qt. if it built on Qt 5.0 it should build on that OS/Compiler in 5.15 If Qt decides that modern

Re: [Interest] the path forward - that 7 year thing - was willy-nilly

2021-03-25 Thread Hamish Moffatt
On 26/3/21 6:38 am, Roland Hughes wrote: According to the FDA fact sheet. https://www.fda.gov/about-fda/fda-basics/fact-sheet-fda-glance There are currently 25,864 registered FDA medical device facilities. Not one of them can change a single approved process without going through the FDA

Re: [Interest] Mixing Commercial and Open Source license for, different, projects

2021-03-19 Thread Hamish Moffatt
On 18/3/21 10:41 pm, Christian Gagneraud wrote: My main grief is that Qt doesn't seem to care about C++. What was their last contribution to the standard? I find that to be a bit of a weird comment. Qt needs to work with the compilers/standard libraries that we the users have now. Why would

Re: [Interest] Qt 6 Ubuntu package

2021-01-28 Thread Hamish Moffatt
On 28/1/21 5:56 pm, Florian Bruhin wrote: Hey, On Thu, Jan 28, 2021 at 12:08:44PM +0530, Nibedit Dey wrote: I am looking for a way to install Qt6 without downloading the *qt-unified-linux-x86-4.0.1-online.run* file. Is there a Qt 6 Ubuntu package like the one for Qt 5? e.g.:- *sudo apt-get

Re: [Interest] Compiling Qt5 (any version past 5.99) for Apple Silicon/M1

2021-01-13 Thread Hamish Moffatt
On 14/1/21 6:28 am, Michael Jackson wrote: Has anybody successfully compiled any version of Qt5 as a native arm64 set of frameworks on a MacOS M1 machine yet? If so could you share your configure command. https://bugreports.qt.io/browse/QTBUG-85279 Hamish

Re: [Interest] Will a Qt 5.x release support macOS 11?

2020-12-09 Thread Hamish Moffatt
On 9/12/20 8:11 pm, coroberti wrote: Dear Hamish, Yes, this is the case. Some bugs like in webengine (chromium) have been filed, but it could be there are others. After getting the new HW, we'll be more knowledgeable. Regarding the native compilation, it seems that there are good patches

Re: [Interest] Will a Qt 5.x release support macOS 11?

2020-12-09 Thread Hamish Moffatt
Interesting. If it doesn't work on the M1, isn't that a Rosetta bug? I assume you haven't compiled for M1 yet given the Qt support is not released. Hamish Sent from Nine From: coroberti Sent: Wednesday, 9 December 2020 19:28 To: Qt Interest Cc: Hamish Moffatt

Re: [Interest] Will a Qt 5.x release support macOS 11?

2020-12-09 Thread Hamish Moffatt
On 9/12/20 6:07 pm, Ben Haller via Interest wrote: Hi all. Just wondering whether there is any plan for any Qt 5.x release to support macOS 11. At present, Qt 5.15 supports only through macOS 10.15 (https://doc.qt.io/qt-5/macos.html#supported-versions), as far as I can tell, and my app

Re: [Interest] Qt5 font size issue with fontconfig

2020-11-12 Thread Hamish Moffatt
On 12/11/20 8:47 pm, Florian Bruhin wrote: On Thu, Nov 12, 2020 at 12:37:33AM +, Hamish Moffatt wrote: On 12/11/20 2:46 am, Thiago Macieira wrote: NEVER calculate font sizes in pixels. Your design is wrong. Delete this function and use point sizes throughout. Too bad the Qt Widget

Re: [Interest] Qt5 font size issue with fontconfig

2020-11-11 Thread Hamish Moffatt
On 12/11/20 2:46 am, Thiago Macieira wrote: NEVER calculate font sizes in pixels. Your design is wrong. Delete this function and use point sizes throughout. Too bad the Qt Widget stylesheet function only supports point sizes for fonts. Points don't work for any other measurements, Hamish

Re: [Interest] Qt Creator debugger does not flush "Application Output" on every log call?

2020-09-20 Thread Hamish Moffatt
On 21/9/20 6:13 am, David M. Cotter wrote: Do you develop on mac? Do you print stuff to console (qDebug) to aid with debugging? When you hit a breakpoint, do you find that, quite often, your log hasn't been flushed? ie: you can't see the latest logging, the "Application Output" is stuck

Re: [Interest] wss:// on localhost

2020-08-02 Thread Hamish Moffatt
On 3/8/20 9:05 am, Alexander Carôt wrote: I repeat: whatever you do, don't ship a private key. Allright - will consider alternative ideas. Consider generating your own root CA certificate and asking your users to install that in their browser. Then sign the site certificate (for a

Re: [Interest] qt 5.15.0 msvc 2019

2020-07-30 Thread Hamish Moffatt
Phillipe, On 31/7/20 5:47 am, maitai wrote: Hi all, I am a bit confused with qt 5.15.0 on Windows. The downloader proposes either MSVC2015 or MSVC2019, why not MSVC2017, mystery. I chose 2019, and installed relevant MSVC/Visual basic suites. All good, build ok, etc. Installer installs

Re: [Interest] how to use Qt debug libraries in Xcode

2020-07-23 Thread Hamish Moffatt
On 23/7/20 6:38 pm, Tor Arne Vestbø wrote: Does your Qt install have the _debug version of the libraries? The binary SDK download nowadays is release only, but with separate debug info. If you need to debug Qt you may need to build it from source. Thanks, I didn't know this (that page I

[Interest] how to use Qt debug libraries in Xcode

2020-07-23 Thread Hamish Moffatt
Hi, I need to run with the Qt debug libraries in Xcode in order to debug a weird problem I'm having side Qt. https://doc.qt.io/qt-5/debug.html says to set DYLD_IMAGE_SUFFIX=_debug, but my attempts at this are not working. In the Xcode project's run/debug scheme, DYLD_IMAGE_SUFFIX is

Re: [Interest] [Development] Windows 7 support will be dropped in Qt 6

2020-06-11 Thread Hamish Moffatt
On 12/6/20 10:17 am, Scott Bloom wrote: Why is Win7 being dropped? I (my company) has gotten burned pretty hard by the dropping of CentOS 6, similar reasons listed for win7.. It's funny that there's so much discussion about dropping Windows 7 which was released 11 years ago. Yet Qt 5.15

Re: [Interest] how to get 3 pixel focus ring?

2020-06-09 Thread Hamish Moffatt
On 10/6/20 5:18 am, David M. Cotter wrote: if you prefer forums with screen shots, see this forum post: https://forum.qt.io/topic/105740/focus-ring-around-tree-table-views/33 It may be that the Qt Windows style is working hard to prevent you from doing this, because it's not common Windows

Re: [Interest] unexpected result from QString::compare

2020-05-11 Thread Hamish Moffatt
On 9/5/20 12:35 am, Thiago Macieira wrote: On Friday, 8 May 2020 05:05:43 PDT Hamish Moffatt wrote: localeAwareCompare() is working as expected. Unfortunately, it doesn't allow the case sensitivity to be specified (unlike QCollator::compare() and QString::compare()), which makes it less

Re: [Interest] unexpected result from QString::compare

2020-05-08 Thread Hamish Moffatt
On 8/5/20 6:54 pm, Florian Bruhin wrote: On Fri, May 08, 2020 at 08:51:19AM +, Hamish Moffatt wrote: On 8/5/20 5:13 pm, Fabrice Mousset | GEOCEPT GmbH wrote: Perhaps you should use QString::localeAwareCompare() ? Thanks, I didn't know about that. Maybe the QString::compare

Re: [Interest] unexpected result from QString::compare

2020-05-08 Thread Hamish Moffatt
On 8/5/20 5:13 pm, Fabrice Mousset | GEOCEPT GmbH wrote: Perhaps you should use QString::localeAwareCompare() ? Thanks, I didn't know about that. Maybe the QString::compare() documentation could mention it... Hamish ___ Interest mailing list

[Interest] unexpected result from QString::compare

2020-05-08 Thread Hamish Moffatt
I'm trying to sort a list of strings where umlauts are involved, and not getting the answer I expect from QString::compare(). My sample code is:         auto a = QStringLiteral("Äbc");         auto b = QStringLiteral("BCD");         auto c = a.compare(b);         qDebug() << a << b << c; This

Re: [Interest] [SPAM] build from source does not build qtsvg

2020-04-20 Thread Hamish Moffatt
On 21/4/20 9:23 am, Thiago Macieira wrote: On Monday, 20 April 2020 14:28:45 PDT Hamish Moffatt wrote: I did, initially. But qtsvg was being silently ignored and I couldn't figure out why, so eventually I downloaded everything in case there was a dependency on another module that I'd omitted

Re: [Interest] [SPAM] build from source does not build qtsvg

2020-04-20 Thread Hamish Moffatt
On 21/4/20 1:56 am, Thiago Macieira wrote: On Sunday, 19 April 2020 22:45:27 MDT Hamish Moffatt wrote: -skip qtactiveqt \ This incredibly long list of skips tells me you're doing something wrong. Instead of opting out of everything you don't want, opt in to the things yuo do. Just

Re: [Interest] build from source does not build qtsvg

2020-04-20 Thread Hamish Moffatt
On 20/4/20 2:45 pm, Hamish Moffatt wrote: I haven't built Qt5 from source in ages, but I need to test something on 5.15. Everything builds OK, but QtSVG doesn't get built, and I can't figure out why. There's absolutely no mention of it in config.log. It seems to be just being ignored. It's

[Interest] [SPAM] build from source does not build qtsvg

2020-04-19 Thread Hamish Moffatt
Spam detection software, running on the system "mx.qt-project.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details.

[Interest] transaction modes in QtSql

2020-04-14 Thread Hamish Moffatt
Some database engines allow you to set properties of a database transaction, like read only versus read/write, isolation level etc. It looks like in Postgres you would use an SQL command line like 'start transaction isolation level repeatable read;'. In Firebird/Interbase, you have to parse

Re: [Interest] OSX codesign question

2020-04-09 Thread Hamish Moffatt
On 9/4/20 1:15 am, "Alexander Carôt" wrote: So - I received the new certificate, installed it on my keychain tool and this is what happened again: soulalex@alexandarotsMBP SJC % codesign --deep --force --verify --verbose --timestamp --options runtime --sign "Developer ID Application: Alexander

Re: [Interest] Qt Creator licensing for companies with Qt, Commercial developers

2020-04-01 Thread Hamish Moffatt
On 31/3/20 6:09 am, Roland Hughes wrote: Just be aware that UltraEdit like many other PC originating editors gets tabs wrong. When you set tabs to spaces and set their width to 4, hitting when cursor is in first column of the line has to put the cursor in column 4, not 5 like far too many PC

Re: [Interest] Qt5 connect signal to signal

2020-03-10 Thread Hamish Moffatt
On 10/3/20 7:04 pm, Johannes Lochmann wrote: Hi Hamish, Yes, you are right. Link Tipp: https://wiki.qt.io/New_Signal_Slot_Syntax Thanks Johannes, Actually the SIGNAL to SIGNAL case does not seem to be covered in that article, which is why I asked. Did I miss it? Hamish

[Interest] Qt5 connect signal to signal

2020-03-09 Thread Hamish Moffatt
In the old syntax one could: connect(source, SIGNAL(readProgress(int)), SIGNAL(progress(int))); In the new syntax, is it equivalent to use connect(source, ::readProgress, this, ::progress); ... assuming that all of this is on a single thread? I'm not quite clear what thread context the

Re: [Interest] Crash when creating QNetworkAccessManager in qt 5.14.x

2020-02-09 Thread Hamish Moffatt
On 7/2/20 2:21 am, maitai wrote: I had somewhere an old directory "bearer" containing old dlls from 5.9.1 and qt was loading those instead of 5.14.1 Ugh, we used to have this problem all the time in the 5.6 days. It would be good if Qt were more fussy about loading plugins from mismatched

Re: [Interest] Mac OS - AVCaptureDevice requestAccessForMediaType:AVMediaTypeVideo crashes application

2020-01-09 Thread Hamish Moffatt
On 10/1/20 4:03 am, Nuno Santos wrote: Hi, I’m trying to setup camera usage permission request for 10.14 (Mojave) and 10.15 (Catalina). I have added the camera and microphone permissions in the Info.plist as in below: NSCameraUsageDescription This application uses the video camera to

Re: [Interest] Qt Mac OS - App crashes when opening camera - Namespace TCC, Code 0x0

2019-12-17 Thread Hamish Moffatt
On 18/12/19 9:18 am, Nuno Santos wrote: Hamish, Thanks for your reply. I’ve have .plist entries for camera and microphone already. Can you point me which api call is necessary? Some keywords so that I can google faster? I didn't write our code that does this, but I see the following calls

Re: [Interest] Qt Mac OS - App crashes when opening camera - Namespace TCC, Code 0x0

2019-12-17 Thread Hamish Moffatt
On 17/12/19 10:24 pm, Jason H wrote: I've had this working before... But have not tried it on a recent version of Qt. You need a plist entry, which I thought is how you get the permission request. It's just like in iOS. You need a plist entry, AND you need to call the API to request

Re: [Interest] Tricks to improve moc performance?

2019-12-09 Thread Hamish Moffatt
On 10/12/19 9:14 am, Adam Light wrote: When I previously analyzed the sampling data during a moc.exe run, it was clear that the vast majority of the time was spent satisfying the includes, and most of that was checking whether a concatenation of an include path and a file name are a valid

Re: [Interest] No access to MySql and MariaDB databases with Qt

2019-10-13 Thread Hamish Moffatt
On 11/10/19 10:22 pm, Marius Kittler wrote: I tried to manually build the MySQL driver but failed because configure not only looks for libmysql.* but also for a config.win32 (why). I use the following patch for my builds: https://github.com/Martchus/

Re: [Interest] how to programmatically create QIcon for use with QToolButton?

2019-09-24 Thread Hamish Moffatt
On 24/9/19 3:23 pm, David M. Cotter wrote: Does |QToolButton| use the normal / selected / disabled states of a |QIcon| that is programmatically created from |QPixmaps|? ie: when the user clicks in the |QToolButton|, shouldn't it show the "selected" icon variant? and when the window is

Re: [Interest] equivalent of python glob

2019-08-26 Thread Hamish Moffatt
On 27/8/19 12:33 am, Jérôme Godbout wrote: This is what I did for pathJoin const QString SEPARATOR("/"); QString FileSystemUtil::pathJoin(const QStringList& paths) Thanks. You could do that simpler with QDir::cleanPath() and QDir::toNativeSeparators() I think (and not have to hardcode the

Re: [Interest] equivalent of python glob

2019-08-25 Thread Hamish Moffatt
On 24/8/19 12:38 am, Bob Hood wrote: On 8/23/2019 12:46 AM, Hamish Moffatt wrote: Hi, In Python one can write the expression: glob.glob("/usr/bin/*") and get a list of such files. I am looking for something similar in Qt (in C++). I have look at QDir::entryList() and ent

[Interest] equivalent of python glob

2019-08-23 Thread Hamish Moffatt
Hi, In Python one can write the expression: glob.glob("/usr/bin/*") and get a list of such files. I am looking for something similar in Qt (in C++). I have look at QDir::entryList() and entryInfoList(), but it seems I would have to extract the path first and provide it to QDir. I can't use

Re: [Interest] Qt free software policy

2019-08-18 Thread Hamish Moffatt
On 15/8/19 6:28 am, Thiago Macieira wrote: PS: Qt 5.12 will switch to OpenSSL 1.1 in the binary builds. Indeed 5.12.4 already did. Hamish ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest

Re: [Interest] [SPAM] Is it safe to call qRegisterMetaType() before main()?

2019-07-23 Thread Hamish Moffatt
On 24/7/19 9:45 am, Hamish Moffatt wrote: On 24/7/19 12:27 am, Nikos Chantziaras wrote: Ugh. Having the call happen on every object creation sounds even uglier. It seems it's best to roll our own. Probably a lazily initialized global static object that you can add functors to before main

Re: [Interest] [SPAM] Is it safe to call qRegisterMetaType() before main()?

2019-07-23 Thread Hamish Moffatt
On 24/7/19 12:27 am, Nikos Chantziaras wrote: Ugh. Having the call happen on every object creation sounds even uglier. It seems it's best to roll our own. Probably a lazily initialized global static object that you can add functors to before main() and then run all functors of that object in

Re: [Interest] [SPAM] Is it safe to call qRegisterMetaType() before main()?

2019-07-22 Thread Hamish Moffatt
On 22/7/19 10:56 pm, Nikos Chantziaras wrote: In order to avoid calling qRegisterMetaType() in main() (with the possibility of forgetting to do so,) I instead call it before the program enters main(), in the implementation file of whoever is the owner of the type. There's several ways to do

Re: [Interest] Q_ATOMIC_INT64_IS_SUPPORTED: Qt Compile errors on macOS

2019-06-26 Thread Hamish Moffatt
On 25/6/19 7:28 pm, Christian Kandeler wrote: On Mon, 24 Jun 2019 23:25:38 + Hamish Moffatt wrote: On 25/6/19 8:46 am, Thiago Macieira wrote: On Monday, 24 June 2019 08:24:25 PDT Thiago Macieira wrote: Anyway, let's stop speculating. Until we can reliably reproduce this problem

Re: [Interest] Q_ATOMIC_INT64_IS_SUPPORTED: Qt Compile errors on macOS

2019-06-24 Thread Hamish Moffatt
On 25/6/19 8:46 am, Thiago Macieira wrote: On Monday, 24 June 2019 08:24:25 PDT Thiago Macieira wrote: Anyway, let's stop speculating. Until we can reliably reproduce this problem to understand what's going on, we're shooting in the dark. I managed to reproduce this once. It was a left-over

Re: [Interest] notarizing builds for Mac - enabling hardened runtime

2019-06-21 Thread Hamish Moffatt
On 21/6/19 9:13 pm, Elvis Stansvik wrote: Den fre 21 juni 2019 09:13Kai Köhne > skrev: For the time being, it seems you've to execute the codesign call yourself. This is what I've done at work to prepare our builds for this. We use CMake though and we're

[Interest] notarizing builds for Mac - enabling hardened runtime

2019-06-21 Thread Hamish Moffatt
Apple says that all apps will need to be notarized (viewed) by them to be run on macOS 10.15 once released. Apps must have the hardened runtime enabled in Xcode before they can be notarized. Is there any way to get qmake to enable that project option? Hamish

Re: [Interest] Online doc URL improvement

2019-06-07 Thread Hamish Moffatt
On 7/6/19 9:58 am, Sze Howe Koh wrote: On Thu, 6 Jun 2019 at 10:09, Christian Gagneraud wrote: Hi there, I quite often read the documentation online, b/c the urls are quite short and simple i usually type them in directly in the URL bar. I also use the online docs a lot, but I rarely edit

Re: [Interest] known issues with QFontDatabase::addApplicationFontFromData in Qt/Mac 5.9?

2019-05-26 Thread Hamish Moffatt
On 24/5/19 6:35 pm, René J.V. Bertin wrote: Hi, Is there a known issue when using QFDb::addApplicationFontFromData() or QFDb::addApplicationFont() with an embedded resource path in Qt 5.9 on Mac? I'm getting a crash; as far as I can tell the CTFontRef creation from the font data succeeds but

Re: [Interest] My first 5 years with Qt and 2 suggestions

2019-05-12 Thread Hamish Moffatt
On 11/5/19 6:49 am, Richard Weickelt wrote: On 10.05.2019 21:13, Thiago Macieira wrote: On Thursday, 9 May 2019 16:58:47 PDT Hamish Moffatt wrote: For my use I rebuilt the Qt packages from https://launchpad.net/~beineri for stretch; they install into /opt rather than replacing the system

Re: [Interest] My first 5 years with Qt and 2 suggestions

2019-05-09 Thread Hamish Moffatt
On 10/5/19 9:42 am, Lisandro Damián Nicanor Pérez Meyer wrote: With my Debian maintainer hat on: thanks for this. But I also have to say that we (Debian) currently lack certain infrastructure that would allow us to provide semi-official packages, like PPAs. It is normally not to difficult to

Re: [Interest] My first 5 years with Qt and 2 suggestions

2019-05-09 Thread Hamish Moffatt
On 9/5/19 6:04 pm, Shawn Rutledge wrote: Of course on Linux there are usually distro packages so it’s already easy (as long as you don’t mind them often being a bit outdated: shame on distros who still didn’t upgrade to 5.12 yet). And macOS has brew. Actually, I'd turn this around and say

  1   2   3   >