Re: [Interest] L Word

2021-04-30 Thread Ben Haller via Interest
+1. I am mostly a lurker on this list, but I have asked a few questions and learned a bunch of things.  I would like to remain subscribed to it; it is useful to me.  But Roland is destroying the list.  As Benjamin writes below, at least some of the issues Roland raises are valid, and the larg

[Interest] More than one type of main window

2021-01-10 Thread Ben Haller via Interest
Hi all. I have a Qt Widgets based app that runs on both macOS and Linux. So far, it has only had one kind of “main window”, with a menu bar of its own. On macOS I want the app to look native, with a global menu bar at the top of the screen; on Linux, at least on the Linux variants I’m familia

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

2020-12-08 Thread Ben Haller via Interest
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 built on macOS 10.15 apparently does not run properly on m

Re: [Interest] Debugging a double dealloc

2020-09-23 Thread Ben Haller via Interest
> Hi Ben, Hi Tony, Lot’s of questions here! Let’s see: > There may indeed be an issue with fonts being tied to having at least one > window present, which causes you grief when you delete the main window. > > Have you tried the suggestion from your other thread to just hide the main > window

Re: [Interest] Debugging a double dealloc

2020-09-23 Thread Ben Haller via Interest
. Oh well. Cheers, -B. Benjamin C. Haller Messer Lab Cornell University > On Sep 23, 2020, at 12:40 PM, Ben Haller via Interest > wrote: > > Sorry for all the emails; this is proving to be quite a difficult problem and > I’m really hoping somebody has insight into it. >

Re: [Interest] Debugging a double dealloc

2020-09-23 Thread Ben Haller via Interest
I’m stuck. Cheers, -B. Benjamin C. Haller Messer Lab Cornell University > On Sep 23, 2020, at 12:04 PM, Ben Haller via Interest > wrote: > > Hi all. I’m starting a new thread since the focal question has completely > changed. I’ve tracked down the cause of the crash that

Re: [Interest] Debugging a double dealloc

2020-09-23 Thread Ben Haller via Interest
sly there’s something about memory management in Qt that I don’t understand, because I don’t see anything wrong with this code! :-> Thanks for any help. Cheers, -B. Benjamin C. Haller Messer Lab Cornell University > On Sep 23, 2020, at 7:50 AM, Ben Haller via Interest > wrote: >

Re: [Interest] Debugging a double dealloc

2020-09-23 Thread Ben Haller via Interest
. :-> Cheers, -B. Benjamin C. Haller Messer Lab Cornell University > On Sep 23, 2020, at 8:41 AM, Giuseppe D'Angelo via Interest > wrote: > > Il 23/09/20 14:08, Ben Haller via Interest ha scritto: >> Thanks for the suggestion. However, this problem is only on macOS

Re: [Interest] Debugging a double dealloc

2020-09-23 Thread Ben Haller via Interest
“preliminary” support will work on it, I guess. But if there is another debugging technique that doesn’t depend on Valgrind, it would make my life much easier...) Cheers, -B. Benjamin C. Haller Messer Lab Cornell University > On Sep 23, 2020, at 8:08 AM, Ben Haller via Interest >

Re: [Interest] Debugging a double dealloc

2020-09-23 Thread Ben Haller via Interest
gt; Valgrind. > >> -Original Message- >> From: Interest On Behalf Of Ben Haller via >> Interest >> Sent: Wednesday, September 23, 2020 7:50 AM >> To: qt qt >> Subject: [Interest] Debugging a double dealloc >> >> [External] >> >

[Interest] Debugging a double dealloc

2020-09-23 Thread Ben Haller via Interest
Hi all. I’m trying to figure out what appears to be a double dealloc problem of some sort. I’m sure the actual bug is in my code (I’m trying to get a window with complex subsidiary windows, etc., to disassemble and free the things it owns, without freeing itself), but the backtrace at the poin

Re: [Interest] QActions not moved to application menu properly

2020-09-22 Thread Ben Haller via Interest
You are a good guesser, Sean! I tried commenting out the call I make to: setAttribute(Qt::WA_DeleteOnClose); when I’m setting up my main windows. With that commented out, things work fine. I’m leaking the document window and everything it owns, of course, so that isn’t great; but it work

Re: [Interest] QActions not moved to application menu properly

2020-09-22 Thread Ben Haller via Interest
A little followup; sorry, this should have been in my first email. It would probably be useful to show more code; here’s the method where I create the global menu bar: void QtSLiMAppDelegate::makeGlobalMenuBar(void) { #ifdef __APPLE__ if (!windowlessMenuBar) { windowlessMenuBa

[Interest] QActions not moved to application menu properly

2020-09-22 Thread Ben Haller via Interest
Hi all. I’m on Qt 5.14.2, with a Qt Widgets based app that runs on both macOS and Linux. I’m having trouble getting my menu bar to work. So that things work smoothly on Linux platforms where there is a menu bar in each main window, I have a menu bar in the .ui file that contains my main windo

Re: [Interest] Disable automatic shortcuts for certain widgets?

2020-06-09 Thread Ben Haller via Interest
Why not just replace ‘&’ with ‘&&’ in the string the user inputs, before setting it as the name on the tab? Cheers, -B. Benjamin C. Haller Messer Lab Cornell University > On Jun 9, 2020, at 11:39 AM, Murphy, Sean wrote: > > In our application, we have a QTabWidget. We allow the users to rena

Re: [Interest] Crash due to missing symbol

2020-06-05 Thread Ben Haller via Interest
Hi Alex. Do you have the “deployment target” set to 10.10, not 10.14, in your project? In Xcode this is in the project settings; in Qt Creator it’s a setting in the .pro file. You can’t set it to be any earlier than the Qt version you are running against, however, or precisely this sort of th

Re: [Interest] Link failure with undefined references, on Ubuntu but not macOS

2020-04-30 Thread Ben Haller via Interest
gt; wrote: > > On Wednesday, 29 April 2020 18:57:24 PDT Ben Haller via Interest wrote: >> Aha! And I figured out that the order in which I declare the dependencies >> in my .pro file determines the order in which those dependencies appear in >> the link command. I fixed t

Re: [Interest] Link failure with undefined references, on Ubuntu but not macOS

2020-04-29 Thread Ben Haller via Interest
Hi Thiago, > On Apr 29, 2020, at 8:48 PM, Thiago Macieira > wrote: > > On Wednesday, 29 April 2020 15:16:49 PDT Ben Haller via Interest wrote: >> -ltskit -lQt5OpenGL -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread >> >> And here’s the beginning of the link err

[Interest] Link failure with undefined references, on Ubuntu but not macOS

2020-04-29 Thread Ben Haller via Interest
Hi folks. I’ve got a subdirs-type Qt Widgets project that lives here: https://github.com/MesserLab/SLiM/tree/qtslim (Note that’s the qtslim branch of a project named SLiM; the Qt stuff is all on the branch until I get it completely working.) I build it with qmake and then make, with no further

Re: [Interest] Crash when signal fires

2020-04-22 Thread Ben Haller via Interest
> On Apr 22, 2020, at 11:19 AM, Thiago Macieira > wrote: > > On Tuesday, 21 April 2020 17:09:45 PDT Ben Haller via Interest wrote: >> Unfortunately, I’m on macOS 10.15.3 and Valgrind is not there yet (I think >> at present they have “preliminary” support for macOS 10.

Re: [Interest] Crash when signal fires

2020-04-22 Thread Ben Haller via Interest
> On Apr 22, 2020, at 11:17 AM, Thiago Macieira > wrote: > > On Tuesday, 21 April 2020 16:44:19 PDT Ben Haller via Interest wrote: >>connect(qApp, &QApplication::focusChanged, [this]() { >> updateUIEnabling(); }); > > Your object probably outlived QAppli

Re: [Interest] Crash when signal fires

2020-04-21 Thread Ben Haller via Interest
> On Apr 21, 2020, at 7:51 PM, Giuseppe D'Angelo via Interest > wrote: > > On 4/22/20 1:44 AM, Ben Haller via Interest wrote: >> Hi folks. I’m seeing something weird that I don’t understand. I have a >> connection defined for the main window of my Qt Widgets app,

[Interest] Crash when signal fires

2020-04-21 Thread Ben Haller via Interest
[ I realized I ought to supply the crash backtrace; I have appended it below my signature. ] Hi folks. I’m seeing something weird that I don’t understand. I have a connection defined for the main window of my Qt Widgets app, like so: connect(qApp, &QApplication::focusChanged, [this]() { up

[Interest] Crash when signal fires

2020-04-21 Thread Ben Haller via Interest
Hi folks. I’m seeing something weird that I don’t understand. I have a connection defined for the main window of my Qt Widgets app, like so: connect(qApp, &QApplication::focusChanged, [this]() { updateUIEnabling(); }); I’m seeing a 100% reproducible crash as a result of this. When the f

Re: [Interest] Mac Qt Creator 4.11.2 consistently periodically hangs

2020-04-06 Thread Ben Haller via Interest
Well, it’s the first time I’ve looked at a sample from a Qt app, so I don’t really know what’s typical, but I do see that the app is running with several threads and more than one is sitting in a function named qt_safe_poll(). I wonder if there could be some kind of thread deadlock issue, or re

Re: [Interest] Mac Qt Creator 4.11.2 consistently periodically hangs

2020-04-06 Thread Ben Haller via Interest
I’m running Qt Creator 4.11.2 on macOS 10.15.4 without any problems with hangs. Normally one can sample a process to see what it’s doing, like: sample “Qt Creator” 10 in Terminal, but if your whole machine is hung maybe that won’t work. Still, it might be worth a try starting a sample before