Re: [Interest] QOpenGLWindow inside QSplitter horizontal layout ?

2021-05-21 Thread Matthew Woehlke
On 21/05/2021 00.02, Nicholas Yue wrote: I am learning about QOpenGLWindow I saw examples which utilizes it via QWidget::createWindowContainer() What examples were those? This seems like a really bad technique. I am wondering if there is a way to house it as a widget inside a

Re: [Interest] Qt Designer Plugin : QOpenGLWindow

2021-05-20 Thread Matthew Woehlke
On 20/05/2021 00.41, Nicholas Yue wrote: I am new to Qt Designer Plugin development. I recently wrote a plugin for a QOpenGLWidget derived class It was successful, I can drag and drop the new widget in Qt Designer I am wondering about QOpenGLWindow. Is that something we can also

Re: [Interest] L Word

2021-05-03 Thread Matthew Woehlke
On 30/04/2021 11.20, Jason H wrote: I have mixed feelings about the whole situation. I think Roland is right, or at least has a valid point most of the time, even if it is technical or limited to a specific use case. [...] Personally, I don't understand why if he hates it so much he participates

Re: [Interest] L Word

2021-05-03 Thread Matthew Woehlke
On 29/04/2021 15.24, Ben Haller via Interest wrote: If I'm not mistaken, not a single person has posted to this "L Word" thread in defense of Roland's right to act as he has been acting, have they? Given that we live in a culture where anyone doing so is likely to get banned right alongside

Re: [Interest] L Word

2021-05-03 Thread Matthew Woehlke
On 03/05/2021 11.23, eric.fedosej...@gmail.com wrote: I find this whole argument that Qt is not appropriate for functional safety very puzzling. Aren’t vehicle dashboards QtC’s main market these days? What are vehicle dashboards if not safety critical? Are they? I thought it was infotainment

Re: [Interest] Guide me through the Qt offerings for GUIs

2021-04-20 Thread Matthew Woehlke
TL;DR: We agree that QPlainTextEdit is "bad" (see below for definition of "bad"). We (apparently) disagree on what's required to correctly parse a file for syntax highlighting. On 20/04/2021 15.03, Roland Hughes wrote: On 4/20/21 9:18 AM, Matthew Woehlke wrote: On 20/0

Re: [Interest] Guide me through the Qt offerings for GUIs

2021-04-20 Thread Matthew Woehlke
On 20/04/2021 09.10, Roland Hughes wrote: Close on the heels of that "Why are they highlighting the whole thing?" when you only need the currently visible lines and possibly a screen up/down. Open up a 10,000 line source file in editors using Scintilla or the Electron JavaScript based things,

Re: [Interest] Guide me through the Qt offerings for GUIs

2021-04-16 Thread Matthew Woehlke
On 15/04/2021 06.25, Rui Oliveira wrote: I feel very hesitant to start a project on QWidgets. It feels like starting a project on dead tech. I know QWidgets are no longer "interesting". Even KDE moved on from them... Is there an example of a *serious* application that uses QQC? (I don't

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

2021-03-29 Thread Matthew Woehlke
On 28/03/2021 09.52, Jason H wrote: The developers at Qt Co need to push back and tell Digia "that's not how this works" before we get to the points of users revolting in threads on the forums / lists. *Before*? I guess this thread, and the multiple others like it, are then discussions on

Re: [Interest] The willy-nilly deletion of convenience, methods

2021-03-25 Thread Matthew Woehlke
On 24/03/2021 18.25, Thiago Macieira wrote: On Tuesday, 23 March 2021 09:02:04 PDT Matthew Woehlke wrote: On 23/03/2021 11.44, Volker Hilsheimer wrote: I wished I had seen the level of energy y’all are putting right now into this email thread over the last two years when we discussed where

Re: [Interest] The willy-nilly deletion of convenience,, methods

2021-03-24 Thread Matthew Woehlke
On 24/03/2021 09.45, Volker Hilsheimer wrote: On 24 Mar 2021, at 13:20, Roland Hughes wrote: death of OpenSource LTS Get the patches you need from the dev branch. Wait, so is TQtC *asking* the community to fork Qt? Because that's how this reads: 'TQtC has killed open source LTS; we (TQtC)

Re: [Interest] The willy-nilly deletion of convenience methods (was: Mixing Commercial and Open...)

2021-03-24 Thread Matthew Woehlke
On 24/03/2021 09.46, Giuseppe D'Angelo wrote: And anyways these methods are still fully supported within Qt 5. Tell that to all the people that compile with -Werror. Or just want their code to compile without being full of warning spam. "Just ignore it" may not be an option; sometimes there

Re: [Interest] The willy-nilly deletion of convenience methods (was: Mixing Commercial and Open...)

2021-03-24 Thread Matthew Woehlke
On 24/03/2021 07.17, Giuseppe D'Angelo via Interest wrote: On 22/03/2021 17:19, Thiago Macieira wrote: I thought we'd fixed that and reverted them. Or didn't we add toContainer? Peppe, what was our final conclusion here? There was no conclusion reached, unfortunately, and didn't manage to

Re: [Interest] The willy-nilly deletion of convenience, methods

2021-03-23 Thread Matthew Woehlke
On 23/03/2021 11.44, Volker Hilsheimer wrote: I wished I had seen the level of energy y’all are putting right now into this email thread over the last two years when we discussed where to go with Qt 6, and when the work actually happened. IIRC, I complained plenty about QList at the time. I

Re: [Interest] The willy-nilly deletion of convenience, methods

2021-03-23 Thread Matthew Woehlke
On 23/03/2021 10.36, Benjamen Meyer via Interest wrote: On 3/23/21 10:09 AM, Matthew Woehlke wrote: Also, C++ isn't a dictatorship the way Qt is. Anyone can object to any change, not just on a mailing list, but in person. Anyone can, in theory (in practice, depending on where you live

Re: [Interest] The willy-nilly deletion of convenience, methods

2021-03-23 Thread Matthew Woehlke
On 23/03/2021 09.16, Michael Jackson wrote: Having read this entire conversation I find it interesting that we as developers are complaining about features being deprecated and removed in Qt but yet where is the anger when C++ spec removes features? Oh, it's there. However, C++ is *far* more

Re: [Interest] The willy-nilly deletion of convenience, methods

2021-03-23 Thread Matthew Woehlke
On 23/03/2021 06.59, Roland Hughes wrote: 30 years is __nothing__ for production systems. It is ordinary for a well developed system to run 10+ years without any modifications. On that note, how many people are aware there's a computer that has been running non-stop for almost 45 years? :-D

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

2021-03-23 Thread Matthew Woehlke
On 23/03/2021 01.21, Tuukka Turunen wrote: Feedback on the Qt 6 API is valuable and we are very interested in it. Portability was one of the key design principles and we have avoided making changes when not needed. That said, there can surely be some items that are unnecessarily changed. Why

Re: [Interest] The willy-nilly deletion of convenience methods

2021-03-23 Thread Matthew Woehlke
On 22/03/2021 23.18, Jason H wrote: Qt needs to go back to LGPL, or risk getting abandoned/replaced. Seems like some of the long time users here on this list have come to a similar conclusion. I've said this before, and I'll say it again: Qt needs to go the way of OpenOffice.org. That is,

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

2021-03-19 Thread Matthew Woehlke
On 18/03/2021 08.10, Roland Hughes wrote: https://www.logikalsolutions.com/wordpress/information-technology/qlist/ You can also take a big hit if there happens to be 100+ things referring to this particular value instance when it needs to change. Think a working/scratch object you load a

[Interest] Odd focus behavior with multi-widget item delegate?

2020-11-27 Thread Matthew Woehlke
I have a QTreeView with a complex (consists of multiple widgets) item delegate for some columns. This behaves strangely. For example, the enter key seems to "finish" editing, but causes the cell to render in inactive colors (gray bg), while the rest of the row renders in active colors (blue

Re: [Interest] how to get and purge events from queue?

2020-11-23 Thread Matthew Woehlke
On 05/11/2020 12.24, Jérôme Godbout wrote: Maybe you can add an event filter and remove some of the events if they are happening too close to each others. But I thing doing that logic into the event handler is a betetr idea, where you can either cumulate and delay execution of the behavior.

[Interest] Matching borders between QFrame and QGraphicsView

2020-11-03 Thread Matthew Woehlke
I'm doing some heavily tweaked rendering, and having trouble getting frames to render correctly. In particular, I have (subclasses of) QFrame and QGraphicsView. The QGraphicsView seems "mostly" sane except that I can't get it to use all the way to the widget's outer edge... but that's not

Re: [Interest] QPainter::drawRect incorrectly "rounds" corners

2020-10-21 Thread Matthew Woehlke
On 21/10/2020 13.16, David M. Cotter wrote: are your pixels specified in floating point? have you accounted for the half-pixel offset? Yes (although there's a related story there; sigh). Turns out the default corner style is... unhelpful. Ick. I still think there's a bug; the corners should

[Interest] QPainter::drawRect incorrectly "rounds" corners

2020-10-21 Thread Matthew Woehlke
I'm implementing a custom widget style for an application, and running into a strange problem with QPainter::drawRect. Namely, it is not making the corners square. This may be a problem specific to high-DPI displays and/or using a pen width more than one physical pixel. The corner *should*

Re: [Interest] Suppress titlebar of dock widget?

2020-09-08 Thread Matthew Woehlke
On 08/09/2020 15.41, Sérgio Martins wrote: On 2020-09-08 19:46, Matthew Woehlke wrote: I have a dock widget that cannot be moved, closed or floated (essentially, I need something that takes up the dock corner preferentially), but I want it to *not* have a titlebar. Is there a way to accomplish

Re: [Interest] Suppress titlebar of dock widget?

2020-09-08 Thread Matthew Woehlke
On 08/09/2020 14.46, Matthew Woehlke wrote: I have a dock widget that cannot be moved, closed or floated (essentially, I need something that takes up the dock corner preferentially), but I want it to *not* have a titlebar. Is there a way to accomplish this? Note: I am also implementing my

[Interest] Suppress titlebar of dock widget?

2020-09-08 Thread Matthew Woehlke
I have a dock widget that cannot be moved, closed or floated (essentially, I need something that takes up the dock corner preferentially), but I want it to *not* have a titlebar. Is there a way to accomplish this? Note: I am also implementing my own QStyle. My initial idea was to tweak the

[Interest] Making a bunch of labels the same width?

2020-06-22 Thread Matthew Woehlke
I have a custom widget that internally consists of a couple other widgets, including a QCheckBox, in a horizontal layout. I have another custom widget that provides a collection of these in a vertical layout. I'd like to arrange for everything to line up neatly. (Because of the hierarchy, it

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

2020-06-18 Thread Matthew Woehlke
On 18/06/2020 11.11, Roland Hughes wrote: Could someone from such a background learn enough C syntax to write a student C program like this one? [example program elided] Maybe. To the point various others are making, just because someone hasn't learned the fundamentals doesn't mean they're

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

2020-06-17 Thread Matthew Woehlke
On 16/06/2020 18.59, Jonathan Purol wrote: it's well "known" that you can teach C programmers Java, but you can't teach Java programmers C How is that well known? What studies can you provide for this? No studies, but it seems to be a common attitude among most or all technical

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

2020-06-15 Thread Matthew Woehlke
On 15/06/2020 14.26, Jérôme Godbout wrote: If your developer have hard time learning Qt3 to Qt5, I feel sorry for you You have that backwards. Kids who only learn the new stuff can't be hired to support the old because they cannot even begin to function. I suggest you hired from different

Re: [Interest] Handling of ~ paths

2020-06-11 Thread Matthew Woehlke
On 11/06/2020 14.33, Scott Bloom wrote: On 11/06/2020 14.24, Matthew Woehlke wrote: >> On 11/06/2020 14.03, Scott Bloom wrote:>>> If you are working with a path, for use in QDir, QFileInfo, QFile etc>>> etc, and the path string is using a ~, either of the form ~/foo.txt

Re: [Interest] Handling of ~ paths

2020-06-11 Thread Matthew Woehlke
On 11/06/2020 14.03, Scott Bloom wrote: If you are working with a path, for use in QDir, QFileInfo, QFile etc etc, and the path string is using a ~, either of the form ~/foo.txt or ~user/foo.txt, Qt seems to be treating it as a relative path of the current user, and prepends “/home/scott” in my

Re: [Interest] CMake AUTOMOC & Windows linking

2020-05-15 Thread Matthew Woehlke
On 15/05/2020 11.17, Andy wrote: I'm running into a link problem on Windows. I only have Windows on CI, so debugging this is... challenging. - cmake 3.10+ - AUTOMOC is ON for the project in the top level cmake file - Dynamic Library "A": class LIB_IMPORT_EXPORT Foo { Q_OBJECT

Re: [Interest] Writing custom Qt Widgets is overly complicated

2020-04-29 Thread Matthew Woehlke
On 28/04/2020 06.04, Jonathan Purol wrote: Hello everyone, I'm at a bit of a rough point right now. Up until this point Qt has never disappointed me - everything I wanted to do was possible to do in a seamless and understandable way. Yesterday however I put my hands on trying to implement my

Re: [Interest] How to get icon theme?

2020-04-22 Thread Matthew Woehlke
On 21/04/2020 14.57, Matthew Woehlke wrote: How do I determine what icon theme my application is using? QIcon::themeName() just returns an empty string. (But QIcon::fallbackThemeName() says "breeze"!) I am actually using "breeze-dark", and if I don't do anything, I get i

[Interest] How to get icon theme?

2020-04-21 Thread Matthew Woehlke
How do I determine what icon theme my application is using? QIcon::themeName() just returns an empty string. (But QIcon::fallbackThemeName() says "breeze"!) I am actually using "breeze-dark", and if I don't do anything, I get icons from that theme. I need to know because my application will

Re: [Interest] QVariant compare operator

2020-04-21 Thread Matthew Woehlke
On 20/04/2020 12.21, André Pönitz wrote: On Mon, Apr 20, 2020 at 10:04:38AM -0400, Matthew Woehlke wrote: On 19/04/2020 08.23, André Pönitz wrote: QVariant(TypeA) and QVariant(TypeB) can be ordered for different TypeA and TypeB based e.g. on alphabetical order of their .typeName(). If wanted

Re: [Interest] QVariant compare operator

2020-04-20 Thread Matthew Woehlke
On 19/04/2020 08.23, André Pönitz wrote: QVariant(TypeA) and QVariant(TypeB) can be ordered for different TypeA and TypeB based e.g. on alphabetical order of their .typeName(). If wanted, this can be refined to make e.g. all integral types comparable. No: int{5} <=> JsonObject{...} =>

Re: [Interest] Qt and Open Source

2020-04-09 Thread Matthew Woehlke
On 09/04/2020 08.28, Florian Bruhin wrote: Today, The Qt Company released a quick statement: https://www.qt.io/blog/qt-and-open-source The Qt Company is proud to be committed to [...] open source, and the Qt governance model. Recent actions: [A]fter more and more moves against the

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

2020-04-03 Thread Matthew Woehlke
On 02/04/2020 01.39, Tuukka Turunen wrote: > I know licensing in general can be a challenging topic, but I can't > help thinking if some people are intentionally trying to twist > things around. At least there are quite many who have not been > talking about this in a friendly tone. For me,

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

2020-04-01 Thread Matthew Woehlke
On 31/03/2020 16.12, Krzysztof Kawa wrote: > This got me thinking about quite a simple case that doesn't seem so > simple now: Lets say I make a game using open-source licensed Qt, or > even just open-source licensed Qt Creator. After few years of > development I decide to publish the game. It

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

2020-04-01 Thread Matthew Woehlke
On 31/03/2020 09.46, Andy wrote: > Even a solo developer needs to hire a lawyer before touching anything > Qt-related. Fortunately for the OSS community, you forgot "commercial" in that sentence. > Once you start trying to codify all the different scenarios in your > licensing, it becomes toxic

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

2020-04-01 Thread Matthew Woehlke
On 30/03/2020 13.49, Andy wrote: > That makes no sense. Your license prevents a company from using an > open-source tool? It says "if you license our stuff you cannot use the > open-source tool X"? That is, indeed, what I am hearing, and also how I would interpret the FAQ. > This whole thread is

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

2020-04-01 Thread Matthew Woehlke
On 31/03/2020 14.16, Francis Herne wrote: > Having looked through said document, the relevant sections seem to be: > >> 1. ... “Prohibited Combination” shall mean any means to (i) use, combine, > incorporate, link or integrate Licensed Software with any software created > with or incorporating

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

2020-04-01 Thread Matthew Woehlke
On 27/03/2020 08.55, Tuukka Turunen wrote: > Correct. All users need to have commercial license. It is not allowed for > part of the team to use commercial and part use open-source. Even though Qt > Creator is great, it can feel odd to pay for full Qt license and only use the > Creator IDE. >

Re: [Interest] Qt archives corrupted?

2020-03-30 Thread Matthew Woehlke
On 30/03/2020 16.14, Giuseppe D'Angelo via Interest wrote: > Il 30/03/20 22:02, Matthew Woehlke ha scritto: >> What happened to the Qt archives? I can download 1.41, but 5.2 - 5.8 and >> 5.10 and 5.11 are missing? > > They have been moved here > > https://do

[Interest] Qt archives corrupted?

2020-03-30 Thread Matthew Woehlke
What happened to the Qt archives? I can download 1.41, but 5.2 - 5.8 and 5.10 and 5.11 are missing? -- Matthew ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest

Re: [Interest] Why doesn't my model filter update?

2020-02-19 Thread Matthew Woehlke
On 18/02/2020 18.38, Sze Howe Koh wrote: > The last valid row index is (rows-1), not (rows). Right  > Do I get the other half-cookie? Sure →  -- Matthew ___ Interest mailing list Interest@qt-project.org

Re: [Interest] Why doesn't my model filter update?

2020-02-18 Thread Matthew Woehlke
On 18/02/2020 16.31, Konstantin Shegunov wrote: > On Tue, Feb 18, 2020 at 11:20 PM Matthew Woehlke wrote: >> I wonder if anyone else can spot it? ;-) > > Without knowing anything about the code at all, my best guess based on a > very quick glance would be the range for the da

Re: [Interest] Why doesn't my model filter update?

2020-02-18 Thread Matthew Woehlke
On 18/02/2020 16.16, Marian Beermann wrote: > Are you emitting dataChanged for the relevant roles? A Qt view would > not, generally, care about data changes for user-defined roles, for example. "The filter *does* have filterRole set correctly". That wasn't the problem. -- Matthew

Re: [Interest] Why doesn't my model filter update?

2020-02-18 Thread Matthew Woehlke
On 18/02/2020 15.35, Matthew Woehlke wrote: > I have a QAbstractItemModel. I also have a QSortFilterProxyModel acting > as a filter for the model, which in turn is used to feed a QTreeView. > The filter accepts or rejects rows based on a custom data role of the > source model. >

[Interest] Why doesn't my model filter update?

2020-02-18 Thread Matthew Woehlke
I have a QAbstractItemModel. I also have a QSortFilterProxyModel acting as a filter for the model, which in turn is used to feed a QTreeView. The filter accepts or rejects rows based on a custom data role of the source model. However, when the source model's data changes, the tree view does not

Re: [Interest] Signal/Slot connection fails, even though QMetaObject::activate is called

2020-02-17 Thread Matthew Woehlke
On 15/02/2020 00.40, Max Paperno wrote: > On 2/14/2020 11:19 PM, Tony Rietwyk wrote (in part): >> Both overloads have the following warning: > > No they don't... Looking at doc.qt.io for 5.14 anyway. Only the one with > `context` has the part about the context being destroyed (emphasis mine): >

Re: [Interest] Signal/Slot connection fails, even though QMetaObject::activate is called

2020-02-17 Thread Matthew Woehlke
On 16/02/2020 21.33, Max Paperno wrote: > Happened to stumble upon this clazy check while searching on a > completely different issue. > Seems to explain the reasoning pretty well. > > https://github.com/KDE/clazy/blob/master/docs/checks/README-connect-3arg-lambda.md Thanks for sharing the link!

Re: [Interest] Fwd: Re: Signal/Slot connection fails, even though QMetaObject::activate is called

2020-02-14 Thread Matthew Woehlke
On 07/02/2020 21.37, Jonathan Purol wrote: > After manually removing every line of code to see when a MVCE would > work, I found a loose `blockSignals(true)` flying around that was there > from a debugging session. `git diff`? Stuff like this is why you should use a VCS (it doesn't have to be

Re: [Interest] Signal/Slot connection fails, even though QMetaObject::activate is called

2020-02-14 Thread Matthew Woehlke
On 07/02/2020 19.10, Tony Rietwyk wrote: > Does it work if you don't pass 'this' as the third argument to connect?  > I never use that particular overload of connect. I usually pass the > lambda as the third argument. That scares me. The third argument is the context in which the slot runs, i.e.

[Interest] QInputDialog as item delegate?

2019-11-12 Thread Matthew Woehlke
I have a QTreeView. For one of the columns, rather than editing the data in-place, I want to pop up a QTextEdit. (For now, I'm hoping I'll be able to use QInputDialog, but I may end up needing to roll my own.) Is it reasonable to execute the dialog (QDialog::exec()) in an override of

Re: [Interest] TLS/SSL XML encryption security

2019-10-17 Thread Matthew Woehlke
On 17/10/2019 09.56, Roland Hughes wrote: > This presents the perfect challenge. Once "The Mother Road" it is now > difficult to navigate having many turns, stops and 30 MPH stretches. > Most importantly there are huge sections without cellular/wireless > coverage. Some sections satellite coverage

Re: [Interest] TLS/SSL XML encryption security

2019-10-07 Thread Matthew Woehlke
On 04/10/2019 20.17, Roland Hughes wrote: > On 10/3/19 5:00 AM, Matthew Woehlke wrote: >> On 01/10/2019 20.47, Roland Hughes wrote: >>> To really secure transmitted data, you cannot use an open standard which >>> has readily identifiable fields. Companies needing gr

Re: [Interest] Interest Digest, Vol 96, Issue 19

2019-10-02 Thread Matthew Woehlke
On 01/10/2019 20.47, Roland Hughes wrote: > If you are using XML, JSON or any of the other trendy text based > open standards for data exchange, you've made it easy for the hackers. > They don't have to put any human noodling into determining if they > cracked your transmission or not. It can be

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 > ac

[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

Re: [Interest] Static build of Qt - debug mode and plugins

2019-08-26 Thread Matthew Woehlke
On 26/08/2019 12.18, Elvis Stansvik wrote: > Den mån 26 aug. 2019 17:32Matthew Woehlke skrev: >> ...or just run `make VERBOSE=1`. > > I didn't know if he was using ninja or make, so suggested the solution that > I believe will work with both (with recent versions of CMake) :) Fair point. I'm

Re: [Interest] Q_NAMESPACE is not portable?

2019-08-26 Thread Matthew Woehlke
On 26/08/2019 11.56, Giuseppe D'Angelo wrote: > On 26/08/2019 17:29, Matthew Woehlke wrote: >> BTW, what happened to the doc? Macros aren't class members... > > I'm thinking it's still https://bugreports.qt.io/browse/QTBUG-76822 Could be. >> (Relatedly, any word o

Re: [Interest] Static build of Qt - debug mode and plugins

2019-08-26 Thread Matthew Woehlke
On 25/08/2019 03.09, Elvis Stansvik wrote: > Den sön 25 aug. 2019 kl 02:56 skrev Thiago Macieira: >> On Saturday, 24 August 2019 10:53:45 PDT Jakub Narolewski wrote: >>> [ 1%] Linking CXX executable mrserver_debug >> >> Please expand this line. > > Jakub, to do this you can pass

Re: [Interest] Q_NAMESPACE is not portable?

2019-08-26 Thread Matthew Woehlke
On 23/08/2019 19.02, Giuseppe D'Angelo via Interest wrote: > On 24/08/2019 00:10, Matthew Woehlke wrote: >> Am I doing something wrong, or is it impossible to use Q_NAMESPACE >> correctly without platform-specific PP conditionals? > > I've fixed this in 5.14, see > >&g

[Interest] Q_NAMESPACE is not portable?

2019-08-23 Thread Matthew Woehlke
Am I missing something, or is it impossible to portably use Q_NAMESPACE? If I just use Q_NAMESPACE on its own, e.g.: namespace foo { Q_NAMESPACE } ...then I get unresolved externals on Linux. If I attempt the obvious fix: namespace foo { Q_NAMESPACE extern FOO_EXPORT const

[Interest] Using Q_ENUM_NS?

2019-08-23 Thread Matthew Woehlke
Is it *really* impossible to use Q_ENUM_NS (in the same namespace) in more than one header? If not, how does one do so correctly? If I don't have code that looks *exactly* like this: namespace whatever { Q_NAMESPACE Q_ENUM_NS(...) } ...moc is unhappy. But if Q_NAMESPACE appears in more

Re: [Interest] Qt free software policy

2019-08-21 Thread Matthew Woehlke
On 14/08/2019 16.22, John Weeks wrote: > We are a small company selling a very large and complex application which is > now based on Qt open source. At the time we first considered porting to Qt > (version 4.3?) the license was very expensive for small company (six > programmers) and the

Re: [Interest] Add row to model *with data*?

2019-08-16 Thread Matthew Woehlke
On 16/08/2019 09.27, Jérôme Godbout wrote: > Maybe you can add a type to your model and make a map of type to > Component, when initalizing the view element, use a Loader that will > create the proper Item view based on your type. Not sure this is > what you are looking for. I honestly didn't

[Interest] Add row to model *with data*?

2019-08-15 Thread Matthew Woehlke
So... I have a (subclass of) QAbstractItemModel. This class internally represents data using some other container, which has specific requirements on both the item, and on the order of items. Thus, I can't just add rows anywhere and with no data, to be filled in later. My users are intended to

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

2019-07-03 Thread Matthew Woehlke
On 26/06/2019 21.17, Thiago Macieira wrote: > The whole reason the file exists is to avoid > having to call the compiler to find out its details every time that qmake is > started. In order to do what you are asking for, we need to call out to the > compiler, which defeats the purpose. Can't

Re: [Interest] QMetaObject::invokeMethod thread safety

2019-05-17 Thread Matthew Woehlke
On 17/05/2019 13.47, Thiago Macieira wrote: > On Friday, 17 May 2019 10:25:15 PDT Matthew Woehlke wrote: >> IOW, I have some shared object owner by Thread 1 which is eventually >> deleted. In Thread 2, I want to queue a call to a slot on that object. > > Thread-safety

[Interest] QMetaObject::invokeMethod thread safety

2019-05-17 Thread Matthew Woehlke
Yes, yes, I know the doc says it's thread safe, but I'm still not entirely sure about this particular example: QPointer foop; // global void bar1() { auto* foo = new Foo; foop = foo; QtConcurrent::run(); // ...later... delete foo; } void bar2() {

[Interest] Confused about GL context sharing

2019-03-28 Thread Matthew Woehlke
Let's say I have a QOpenGLWidget in a dock widget. Every time I dock or undock the dock widget, the GL widget gets a new context. I would like to use context sharing so that I only need to create my GL resources (shaders, textures, buffers) once, and reuse them as the widget is docked and

Re: [Interest] Odd crash with QPainter + QOpenGLWidget

2019-03-28 Thread Matthew Woehlke
On 27/03/2019 21.05, Thiago Macieira wrote: > On Wednesday, 27 March 2019 14:48:16 PDT Matthew Woehlke wrote: >> ==12997==by 0x598A728: QOpenGLVertexArrayObjectPrivate::destroy() >> (qopenglvertexarrayobject.cpp:212) > [...] >> ==12997== Address 0x8 is not stack'

[Interest] Odd crash with QPainter + QOpenGLWidget

2019-03-27 Thread Matthew Woehlke
I've cargo-culted some code to render text over a QOpenGLWidget from another project: void MyWidget::paintEvent(QPaintEvent* event) { QOpenGLWidget::paintEvent(event); auto const& text = /* elided */; QPainter painter{this}; painter.setPen(Qt::white);

Re: [Interest] Confused about High-DPI icons...

2019-03-14 Thread Matthew Woehlke
On 13/03/2019 18.41, Sérgio Martins via Interest wrote: > Do you have: > > QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); Uh... *why* is that not the default? Without that, I still get a scaled UI, but it is an ugly mix of stuff that's *properly* scaled (and making use of the higher

[Interest] Confused about High-DPI icons...

2019-03-13 Thread Matthew Woehlke
I'm trying to add High-DPI icons to my application. Currently, I have a bunch of icons as resources, e.g.: :/icons/16x16/open :/icons/16x16/quit ... From reading the documentation, it *sounds* like all I should have to do is add higher resolution icons with "magic" names:

Re: [Interest] Taking back a widget from a QBoxLayout?

2019-02-22 Thread Matthew Woehlke
On 22/02/2019 15.19, Jason H wrote: > 1. > ''' > void QLayout::addItem(QLayoutItem *item) > ... > void QLayout::addWidget(QWidget *w) > Adds widget w to this layout in a manner specific to the layout. > This function uses addItem(). > ''' > > How can addWidget(QWidget *w) use addItem(QLayoutItem

Re: [Interest] Taking back a widget from a QBoxLayout?

2019-02-22 Thread Matthew Woehlke
On 22/02/2019 14.31, Jason H wrote: > addItem: Note: The ownership of item is transferred to the layout, > > and it's the layout's responsibility to delete it. > removeItem: Note: The ownership of widget remains the same as when it > was added. > > So addItem parents it as it's own, then

Re: [Interest] Taking back a widget from a QBoxLayout?

2019-02-22 Thread Matthew Woehlke
On 22/02/2019 14.42, Jason H wrote: >>> https://doc.qt.io/qt-5/layout.html#tips-for-using-layouts > From that: > ''' > When you use a layout, you do not need to pass a parent when > constructing the child widgets. The layout will automatically > reparent the widgets (using QWidget::setParent())

Re: [Interest] Replacement for Qt4 QMatrix4x4?

2019-02-22 Thread Matthew Woehlke
On 22/02/2019 11.39, Jason H wrote: > Well I think if you want such things eigen > (http://eigen.tuxfamily.org/index.php?title=Main_Page) is what you > need. However, I would love to see Qt incorporate some basic > operations. We *almost* had that with QVectorNd and QMatrixNxN... until Qt5 went

Re: [Interest] Replacement for Qt4 QMatrix4x4?

2019-02-22 Thread Matthew Woehlke
On 22/02/2019 04.08, Paolo Angelelli wrote: > You aren't telling us much, except that you need to invert it and multiply > points with it. > If QtPositioning-private is an acceptable dependency instead of pulling in > eigen (or others), > you could probably get away with the private

[Interest] Replacement for Qt4 QMatrix4x4?

2019-02-21 Thread Matthew Woehlke
So... after a full day of debugging, trying to port my Qt4 app to Qt5 and chase down a nasty case of stack clobbering, I discovered that the problem is that QMatrix4x4 changed from qreal to float. (Uh...why? I am not particularly amused by the loss of precision, nor the extremely subtle

Re: [Interest] moc: undefined interface - only on macOS?

2019-02-05 Thread Matthew Woehlke
On 01/02/2019 16.07, Matthew Woehlke wrote: > I am trying to build https://github.com/kitware/qtextensions. It builds > fine on Windows and Linux, but on macOS, I get strange errors (from moc) > when trying to build the designer extensions: > [snipped] > > Anyone have any i

[Interest] moc: undefined interface - only on macOS?

2019-02-01 Thread Matthew Woehlke
I am trying to build https://github.com/kitware/qtextensions. It builds fine on Windows and Linux, but on macOS, I get strange errors (from moc) when trying to build the designer extensions:

Re: [Interest] 80 column enforcement under Linux

2019-01-22 Thread Matthew Woehlke
On 18/01/2019 17.44, rol...@logikalsolutions.com wrote: > I was unaware Artistic Style is dead. Haven't found a line length thing > in it anyway. I am using Artistic Style for formatting because the > default QtCreator coding style and a project level .astylerc of this: Hmm... well, maybe, maybe

Re: [Interest] 80 column enforcement under Linux

2019-01-18 Thread Matthew Woehlke
On 18/01/2019 13.54, Michael Jackson wrote: > I would think that clang-format should be able to help you out with this. It > is part of the LLVM download. Ugh... clang-format... Be warned: clang-format's version of line length enforcement is *very* draconian. There is exactly one, and *only*

Re: [Interest] Qt5 porting woes - metatype with private ctor

2019-01-08 Thread Matthew Woehlke
On 07/01/2019 19.07, Thiago Macieira wrote: > On Monday, 7 January 2019 12:57:56 PST Matthew Woehlke wrote: >> Can I use std::unique_ptr in a signal? > > No. If you connected two slots to the signal, which one would get the pointer? ...whichever one is dispatched first, "nat

[Interest] Qt5 porting woes - metatype with private ctor

2019-01-07 Thread Matthew Woehlke
I have a class¹ that implements a "transferable" pointer. The idea is that it is memory-managed, but can be used in signals/slots without the overhead of an atomic reference count. It is a "throw it over the wall" type of thing, the idea being that once it is emitted as a signal argument, the

Re: [Interest] QComboBox - rect of actual menu vs widget area

2019-01-07 Thread Matthew Woehlke
On 29/12/2018 07.54, Roland Hughes wrote: > Method 1: show/hide interesting widget > > Place a label with the animated GIF at the exact same spot as the combo > box. An *animated GIF*? Ugh. No anti-aliasing, won't follow the color scheme... A better option would be to use a "busy indicator"

Re: [Interest] [ANN] build2 - C++ build toolchain

2016-02-10 Thread Matthew Woehlke
On 2016-02-09 04:04, Diego Iastrubni wrote: > On Mon, Feb 8, 2016 at 11:21 PM, Thiago Macieira wrote: >> qmake's philosophy is "assume everything is there and just use it". >> It's meant mostly for using Qt itself, so you can be sure that all >> of it is present. If you use third-party libraries

Re: [Interest] [ANN] build2 - C++ build toolchain

2016-02-10 Thread Matthew Woehlke
On 2016-02-09 22:43, Konstantin Podsvirov wrote: > And the Qt project provides great support CMake, how to use the frame (export > modules), and support Qt Creator IDE. Yes, Qt is practically a poster child for what projects *ought* to be doing to make themselves easy to use by other CMake

Re: [Interest] Local version control with Qt Creator on Linux

2016-02-03 Thread Matthew Woehlke
On 2016-01-30 08:09, Bernhard Lindner wrote: > I installed git and I can see the "Git" pull-down menu in Qt Creator. I > selected the "Create Repository" menu entry and chose an empty folder. You might have better luck creating a repository where you already have your source files :-). (If

Re: [Interest] Local version control with Qt Creator on Linux

2016-01-29 Thread Matthew Woehlke
On 2016-01-28 19:48, Jason H wrote: >> I have experiences in using SVN (as client side user with Tortoise and other >> clients) and I am very satisfied with it. I am a single user and there are >> no >> plans of any team work. >> >> What version management software should I try to install in

[Interest] OT: perforce (was: Local version control with Qt Creator on Linux)

2016-01-29 Thread Matthew Woehlke
On 2016-01-28 19:54, Thiago Macieira wrote: > On Friday 29 January 2016 01:48:06 Jason H wrote: >> Perforce is free for 20 users / 20 workspaces. I really like it. The only >> issue is by default files not checked out are readonly. This causes >> problems when building for iOS/Android as the

Re: [Interest] Can't login to bugreports

2016-01-21 Thread Matthew Woehlke
On 2016-01-21 11:37, Thiago Macieira wrote: > On Thursday 21 January 2016 16:18:52 Jason H wrote: >> It seems the login now requires an @, and something is amiss in my account. >> >> Can someone look into it? The password reset link isn't working. I'm not >> sure which email domain it is going to,

  1   2   >