Re: [Interest] TableWidget size dynamically

2013-05-15 Thread william.croc...@analog.com
> > On Wed, May 15, 2013 at 3:08 AM, Sujan Dasmahapatra > mailto:sujan.dasmahapa...@gmail.com>> wrote: > > I got a QTableWidget with 3 columns in it. How can I resize the > columnwidth > based on resizing my MainWindow. Currently I have set a fixed width for > column using Create you

Re: [Interest] Memory leak problem in a Qt App

2015-10-30 Thread william.croc...@analog.com
On 10/30/2015 10:08 AM, Etienne Sandré-Chardonnal wrote: Dear all, I have an app which runs several days executing computation jobs (about one job every few minutes). In some cases, the memory consumption grows to several Gb unexpectedly. If someone is still pointing at a piece of memory then

Re: [Interest] Memory leak problem in a Qt App

2015-10-30 Thread william.croc...@analog.com
Also, use techniques like QScopedPointer to simplify memory management. All this was done, especially in the QThread / QSocket part. But the app is complex and something may have been left out. I had a similar problem. You need to look for places where "things" could accumulate. Ch

Re: [Interest] Constructor of QPrinter takes 25-50 seconds to execute

2015-11-25 Thread william.croc...@analog.com
I am wondering if this problem can happen again. What can possibly cause QPrinter constructor to get stuck for such a long time? For me Qt was scanning the network, building up the list of available printers. On a campus of 6 buildings and umpteen printers, that took a noticeable amount of t

Re: [Interest] Constructor of QPrinter takes 25-50 seconds to execute

2015-11-25 Thread william.croc...@analog.com
On 11/25/2015 12:32 PM, william.croc...@analog.com wrote: I am wondering if this problem can happen again. What can possibly cause QPrinter constructor to get stuck for such a long time? For me Qt was scanning the network, building up the list of available printers. On a campus of 6

Re: [Interest] Rendering of QGraphicsSvgItem via QSvgGenerator

2015-12-13 Thread william.croc...@analog.com
On 12/13/2015 05:32 AM, Jean-Michaël Celerier wrote: Hello, I am trying to render a graphics scene that contains some QGraphicsSvgItem and some QGraphicsItem. The QGraphicsItem render correctly as SVG when I import them in inkscape, but the QGraphicsSvgItem are rendered as PNG ! Yes, I notic

Re: [Interest] Unnecessary repaints.

2015-12-17 Thread william.croc...@analog.com
Or, can you recommend a better way to diagnose this problem. (The whole thing needs to be rewritten now that I am older and wiser, but not just yet.) I'd try to log calls to update() on the widget, and dump the stacktrack for each of those to a file. You can do that (at least on gdb) by setti

Re: [Interest] Unnecessary repaints.

2015-12-17 Thread william.croc...@analog.com
On 12/17/2015 11:16 AM, Jason H wrote: My very first Qt app is large and a little sloppy in that the QWidget::update() function is being called *someplace* where it should not, This is causing unnecessary repaints. Is there one place I can put a break to find the calls which actually cause a

Re: [Interest] Unnecessary repaints.

2015-12-17 Thread william.croc...@analog.com
I know they are unnecessary because my app responds with multiple screen refreshes (paints) from a single user action. And for me those paints can be expensive. Did you write a widget that calls update()? I'm not sure I understand your concern. update() should only be called when a redraw i

Re: [Interest] Unnecessary repaints.

2015-12-17 Thread william.croc...@analog.com
On 12/17/2015 01:53 PM, Jason H wrote: If I call: QWidget::update() and QWidget::updateGeometry() Can I assume the layout request would be processed first and then any repaints would take place. In general can I assume that all layout requests would be serviced upon

Re: [Interest] Unnecessary repaints.

2015-12-17 Thread william.croc...@analog.com
On 12/17/2015 02:40 PM, william.croc...@analog.com wrote: On 12/17/2015 01:53 PM, Jason H wrote: If I call: QWidget::update() and QWidget::updateGeometry() Can I assume the layout request would be processed first and then any repaints would take place. In general can I assume that all

[Interest] Distance from point to path.

2015-12-28 Thread william.croc...@analog.com
Hello: Given a QPoint and a QPainterPath. How do I find the distance from the QPoint to the closest point along the QPainterPath. I could step along the path with pointAtPercent looking for the closest point, but that seems unduly expensive: O(100N). Any better ideas. Thanks. Bill -

Re: [Interest] Distance from point to path.

2015-12-29 Thread william.croc...@analog.com
On 12/29/2015 06:42 AM, Elvis Stansvik wrote: 2015-12-28 22:49 GMT+01:00 william.croc...@analog.com Given a QPoint and a QPainterPath. How do I find the distance from the QPoint to the closest point along the QPainterPath. Like Konstantin said, the best approach probably depends on whether

Re: [Interest] Distance from point to path.

2015-12-29 Thread william.croc...@analog.com
Given a QPoint and a QPainterPath. How do I find the distance from the QPoint to the closest point along the QPainterPath. Perhaps. But you should consider that QPainterPath is, as the name suggests, primarily for painting, and not meant for solving generic geometric problems. So I'm not sure

Re: [Interest] Distance from point to path.

2015-12-30 Thread william.croc...@analog.com
I think Qt opened the door for geometric consideration when they invented the scene, gave items mouse-event-handlers and provided intersection based item queries. :-) Fair enough :) You could always try filing a feature request and see what people think. People will think, "What has this

Re: [Interest] QTabWidget activity

2016-01-07 Thread william.croc...@analog.com
On 01/07/2016 03:44 PM, Murphy, Sean wrote: I'm trying to figure out the right way to show some feedback to the user and I'm stuck. Here's the setup: - I have a QTabWidget, that has three tabs, one for live data, one for archived data, and a third tab that doesn't having much to do with this pa

Re: [Interest] QTabWidget activity

2016-01-08 Thread william.croc...@analog.com
On 01/08/2016 09:49 AM, Murphy, Sean wrote: I would probably prefer something like an overlay message popping up for a few seconds or (a bit nineties style) a status bar message. Another would be to have a subtle small icon overlay float from the button up to the tab. Overlay message probably i

Re: [Interest] Macro support with QTextEdit.

2016-01-08 Thread william.croc...@analog.com
On 01/08/2016 05:40 PM, Bill Crocker wrote: Hello: I am working on a WYSIWYG editor. The user needs to be able to enter macros which render specially on the screen. For the purpose of this conversation, pretend they enter "$DATE" which displays as "8-JAN" on the screen. They are not allowed to e

Re: [Interest] Macro support with QTextEdit.

2016-01-09 Thread william.croc...@analog.com
How do I this using a QTextEdit widget in HTML mode with QTextCursor etc. Okay. I have made some progress using the QTextObjectInterface. Next series of questions: - If a QTextCursor spans one of my inline objects and some aspect of the font is changed, how does my object get notified. - My

Re: [Interest] Macro support with QTextEdit.

2016-01-11 Thread william.croc...@analog.com
On 01/10/2016 02:59 AM, Tony Rietwyk wrote: Bill asked: Sent: Sunday, 10 January 2016 1:25 AM Next question: How do I save and restore to HTML? Hi Bill, I can't help with the saving. But we display html documents with tags and replace them with QWidgets: The HTML representation is

Re: [Interest] How to create a list.

2016-01-12 Thread william.croc...@analog.com
On 01/12/2016 07:37 PM, Elvis Stansvik wrote: 2016-01-12 15:37 GMT+01:00 Bill Crocker: Hello: Could someone please show me the few lines of code required to add a list *of three elements* to a QTextDocument using low level (i.e QTextBlock, QTextCursor, QTextList, etc.) classes. This would be

Re: [Interest] How to create a list.

2016-01-13 Thread william.croc...@analog.com
On 01/13/2016 05:33 AM, Konstantin Tokarev wrote: 13.01.2016, 04:10, "william.croc...@analog.com": On 01/12/2016 07:37 PM, Elvis Stansvik wrote: 2016-01-12 15:37 GMT+01:00 Bill Crocker: Hello: Could someone please show me the few lines of code required to add a list

Re: [Interest] Add margin spacing between QComboBox item icon and text ?

2016-01-20 Thread william.croc...@analog.com
I do not remember why I added a styleSheet. Perhaps to make it more fat-finger touch-friendly for Android or iOS. Anyway, I must re-think and re-test. I always tell my customers to stay away from style sheets. They are way more trouble than what they are worth. My complaint: Some things c

Re: [Interest] Customize QTableView selection color

2016-02-05 Thread william.croc...@analog.com
On 02/05/2016 10:34 AM, Murphy, Sean wrote: I’m still struggling with how to customize the selection color for items on a QTableView I use a QStyledItemDelegate. In the paint(painter,option,index) method I create my own QPalette based on selection etc and then call the base class paint function

Re: [Interest] Customize QTableView selection color

2016-02-05 Thread william.croc...@analog.com
Ok, so then in my case, I'd just inherit from QStyledItemDelegate and add a function that allows me to pass in my QMap so that I can adjust your calls of setColor() in paint() on the fly based on modelIndex. Do you happen to have any pointers for customizing the drag and drop indicator? N

Re: [Interest] Regarding QtreeWidget

2016-03-04 Thread william.croc...@analog.com
On 03/04/2016 03:06 AM, Roshni Lalwani wrote: I have application in which I am planning to use a QtreeWidget . The maxinum number of elements in the treeWidget can go uptp 500 . COuld you let me how will be performance of using QtreeWidget for 500 elements . Will it lead to some performance degra

Re: [Interest] Regarding QtreeWidget

2016-03-04 Thread william.croc...@analog.com
On 03/04/2016 11:24 AM, André Somers wrote: Op 04/03/2016 om 13:20 schreef william.croc...@analog.com: On 03/04/2016 03:06 AM, Roshni Lalwani wrote: I have application in which I am planning to use a QtreeWidget . The maxinum number of elements in the treeWidget can go uptp 500 . COuld you

Re: [Interest] reading from and writing to a file with QDataStream

2016-03-07 Thread william.croc...@analog.com
int main() { // module A creates a byte array QByteArray bai; QDataStream out(&bai, QIODevice::WriteOnly); out << QString("A QString"); // writes some information on it Some tool kits use a buffer in their version of QDataStream. You can not in general be sure that anything has actually been

Re: [Interest] reading from and writing to a file with QDataStream

2016-03-07 Thread william.croc...@analog.com
On 03/07/2016 09:19 AM, Sina Dogru wrote: 2016-03-07 15:51 GMT+02:00 william.croc...@analog.com <mailto:william.croc...@analog.com> mailto:william.croc...@analog.com>>: Some tool kits use a buffer in their version of QDataStream. You can not in general be sure that

Re: [Interest] reading from and writing to a file with QDataStream

2016-03-07 Thread william.croc...@analog.com
On 03/07/2016 09:35 AM, Sina Dogru wrote: Well but, I am writing a QString to QByteArray, QByteArray bai; QDataStream out(&bai, QIODevice::WriteOnly); out << QString("A QString"); And writing an 'int' and QByteArray which a QString written file.open(QIODevice::WriteOnly); QDataStream out2(&fil

Re: [Interest] reading from and writing to a file with QDataStream

2016-03-07 Thread william.croc...@analog.com
QDataStream out2(&file); // and module A write those datas to a file. out2 << bai.size(); out2 << bai; All of the following is IMHO: I think that if you are going to read the size back as an 'int' you should insure that an 'int' is written in the first place: out2 <<

Re: [Interest] reading from and writing to a file with QDataStream

2016-03-08 Thread william.croc...@analog.com
Sure, you can look and see that the size() of a QByteArray returns an 'int', but that is only as of today. You should get into the habit of controlling the types written to QDataStreams. Actually, for reading and writing binary data files, I think it is wise to get into the habbit of using expl

[Interest] Two item models.

2016-03-23 Thread william.croc...@analog.com
Hello: If I have a single data structure being presented to the world by two, separate item models and I want to "insert a row". I assume I would: 1 - call beginInsertRows on both models, 2 - insert the row in my single data structure 3 - call endInsertRows on both models. I am pretty sure I am

Re: [Interest] Problem with zoomed-out qgraphicsview/scene

2016-03-29 Thread william.croc...@analog.com
On 03/29/2016 10:47 AM, David Heremans wrote: Hello, I seem to have a 'visibility problem' with my application. I have a QGraphicsscene that represents a piece of A4 paper at 300DPI (approx. 3300 by 2500 scene coordinates). On this scene I have a simple street map and some symbols. I draw the li

Re: [Interest] using cmake to build Qt projects.

2016-05-04 Thread william.croc...@analog.com
On 05/04/2016 01:07 PM, Thiago Macieira wrote: On quarta-feira, 4 de maio de 2016 10:08:27 PDT Bill Crocker wrote: From my experience the symbols I am seeing are typical of missing moc files. I know I have all of my #include "abc.moc" statements in place because my project builds fine with qm

Re: [Interest] using cmake to build Qt projects.

2016-05-05 Thread william.croc...@analog.com
to my set(CMAKE_CXX_FLAGS "-m32 -pthread"). On Wed, May 4, 2016 at 7:29 PM, william.croc...@analog.com <mailto:william.croc...@analog.com> mailto:william.croc...@analog.com>> wrote: On 05/04/2016 01:07 PM, Thiago Macieira wrote: On quarta-feira, 4 de mai

Re: [Interest] using cmake to build Qt projects.

2016-05-05 Thread william.croc...@analog.com
I have never been able to get creator to work. The 5 series won't even run under my versions of VNC and the NX virtual desktops. This apparently due to a dependency on new visual fluff. Qt Quick doesn't indeed not work well over VNC. The common workaround is to not load Quick based plugins

Re: [Interest] Graphical edition of state machines in QT

2016-06-15 Thread william.croc...@analog.com
On 06/15/2016 04:28 AM, Willy Lambert wrote: Hi all, I'd like to use state machines to implement some of my behaviors. Is there any graphical WYSIWIG editor for state machines in QT (or any side well known project) ? Many of my coworkers like this, but there is no explicit Qt integration that

Re: [Interest] QUndoStack

2016-06-24 Thread william.croc...@analog.com
On 06/24/2016 11:52 AM, Bob Hood wrote: On 6/24/2016 9:42 AM, Alan Ezust wrote: There is another thread on this very subject from last week: http://lists.qt-project.org/pipermail/interest/2016-June/023114.html http://lists.qt-project.org/pipermail/interest/2016-June/023116.html I agree with yo

Re: [Interest] FLex / Bison and QT4 4.8.1 Win32 interaction

2016-07-07 Thread william.croc...@analog.com
On 07/07/2016 08:01 PM, Fabio Giovagnini wrote: Thanks Frank. So you suggest to build from the sources. I' try. Thanks again I suggest you just take the weekend and write your own parser and lexical analysis, void of Flex and Bison. I did and I have never looked back. :-) Bill Il 07/lug/20

Re: [Interest] FLex / Bison and QT4 4.8.1 Win32 interaction

2016-07-08 Thread william.croc...@analog.com
I suggest you just take the weekend and write your own parser and lexical analysis, void of Flex and Bison. I did and I have never looked back. :-) If you advice to reinvent the wheel, it's bad advice. But it makes sense to know alternatives which may be easier to use or more convenient to w

[Interest] Syncing tree views.

2016-07-29 Thread william.croc...@analog.com
Hello: This is a desk top widgets question. No QML here. I have two QTreeView instances. They both use the same base model, but differ in subsequent layers of proxy models. What is the most convenient way to keep then in sync. When an index is selected in one, I want the corresponding index to

Re: [Interest] Syncing tree views.

2016-07-29 Thread william.croc...@analog.com
applies to items which are common to both.) KF5 has a solution for that. I'm not an Model/View expert, but i think this is what you're looking for: https://api.kde.org/frameworks/kitemmodels/html/classKLinkItemSelectionModel.html Thanks for the pointer. Alas... - I am industry and this is

Re: [Interest] Syncing tree views.

2016-07-29 Thread william.croc...@analog.com
On 07/29/2016 10:33 AM, Christoph Feck wrote: On Friday 29 July 2016 16:14:41 william.croc...@analog.com wrote: applies to items which are common to both.) KF5 has a solution for that. I'm not an Model/View expert, but i think this is what you're looking for: https://api.kde.org/

Re: [Interest] Syncing tree views.

2016-07-29 Thread william.croc...@analog.com
On 07/29/2016 11:07 AM, Christoph Feck wrote: On Friday 29 July 2016 16:58:31 william.croc...@analog.com wrote: On 07/29/2016 10:33 AM, Christoph Feck wrote: On Friday 29 July 2016 16:14:41 william.croc...@analog.com wrote: applies to items which are common to both.) KF5 has a solution for

Re: [Interest] Syncing tree views.

2016-07-29 Thread william.croc...@analog.com
IIRC: The first 'L' in LGPL stands for 'Lesser', not 'Library'. For version 2 (which the above text refers to), it was called "Library". You are free to use the later versions, whatever name they now have. See https://www.gnu.org/licenses/old-licenses/lgpl-2.0.en.html Very good. - I do n

Re: [Interest] QXcbConnection errors.

2016-09-04 Thread william.croc...@analog.com
On 09/04/2016 05:48 PM, Konstantin Shegunov wrote: Hi, Do you forward the X? Sometimes this might do it ... for some reason ... Hello: I am running on a virtual machine through an NX windowing system. Sorry, I just noticed that I do not get the errors when I run through a VNC based windowing

Re: [Interest] Memory Leak when instantiating QWidget based windows

2016-09-08 Thread william.croc...@analog.com
On 09/07/2016 04:23 PM, Mike Jackson wrote: We are attempting to track down a memory leak that we _think_ we have. We have reduced our code to the point where all we do is invoke a new QWidget instance, show() it, hide() it and then delete it. We do this in a loop 100 times. We monitor the memory

Re: [Interest] Long pause with 5.7

2016-11-07 Thread william.croc...@analog.com
On 11/07/2016 08:44 AM, Bill Crocker wrote: This sender failed our fraud detection checks and may not be who they appear to be. Learn about spoofing at http://aka.ms/LearnAboutSpoofing I am pretty sure I am who I appear to be. Bill ___ Interest mail

Re: [Interest] Long pause with 5.7

2016-11-07 Thread william.croc...@analog.com
I am porting my app to Qt 5.7 When I run it, it appears on the screen, but there is a long pause (~10 secs.) before it is responsive. I ran it with strace and there is a point where it makes 100K calls to the poll() function, which accounts for the long pause. I tried running it in a debugger,

Re: [Interest] [PROGRESS] Long pause with 5.7

2016-11-08 Thread william.croc...@analog.com
On 11/07/2016 07:22 PM, william.croc...@analog.com wrote: This sender failed our fraud detection checks and may not be who they appear to be. Learn about spoofing at http://aka.ms/LearnAboutSpoofing I am porting my app to Qt 5.7 When I run it, it appears on the screen, but there is a long

Re: [Interest] [PROGRESS] Long pause with 5.7

2016-11-08 Thread william.croc...@analog.com
. Also, I put print statements around the call to processEvents and verified that it takes 5 secs, SOMETIMES. Bill - Michael. -Original Message- From: Interest [mailto:interest-bounces+sue=sf.mpg...@qt-project.org] On Behalf Of william.croc...@analog.com Sent: Tuesday, November 8, 2016 2

Re: [Interest] [PROGRESS] Long pause with 5.7

2016-11-08 Thread william.croc...@analog.com
On 11/08/2016 09:45 AM, Michael Sué wrote: Hi, qApp->processEvents(QEventLoop::ExcludeUserInputEvents,5000); Your processEvents call timeouts after 5 secs, and you wait for 5 secs, at least sometimes. How about reducing it to 1 sec then, as you think it has nothing to do, anyway, and

Re: [Interest] [PROGRESS] Long pause with 5.7

2016-11-08 Thread william.croc...@analog.com
On 11/08/2016 10:00 AM, Michael Sué wrote: Hi, BaseClass::show(); qApp->flush(); // It appears that with Qt 5.7, SOMETIMES, this call to processEvents waits // for the full 5 secs though I do not believe there is anything to do. qApp->processEvents(QEventLoo

Re: [Interest] [PROGRESS] Long pause with 5.7

2016-11-14 Thread william.croc...@analog.com
But, if there *IS* something to do (sync), and I do not give it enough time, then the new bug will be that my app only restores window size and location SOMETIMES, because processEvents was not given enough time. You seem to be misunderstanding what the timeout is. It doesn't say "this functi

Re: [Interest] [PROGRESS] Long pause with 5.7

2016-11-14 Thread william.croc...@analog.com
On 11/14/2016 06:23 AM, william.croc...@analog.com wrote: This sender failed our fraud detection checks and may not be who they appear to be. Learn about spoofing at http://aka.ms/LearnAboutSpoofing But, if there *IS* something to do (sync), and I do not give it enough time, then the new bug

Re: [Interest] [PROGRESS] Long pause with 5.7

2016-11-14 Thread william.croc...@analog.com
Perhaps I'm missing something, but why not skip the processEvents call altogether and just queue an event to do the resizing later? E.g: void MyApp::show() { ... // The lambda is just quickest to write, you can use a private slot as well. QTimer::singleShot(0, [sz, pos] () -> void

Re: [Interest] Drawing slow.

2018-08-19 Thread william.croc...@analog.com
From some experimentation it appears that the CPU time required by the QPainterPath system is quite non-linear in the number of control points. So, if I break my one long path up into a number of shorter paths, it draws MUCH faster. Is that the case with both antialiasing on and off? (They

Re: [Interest] QTextEdit with QDockWidget

2018-09-28 Thread william.croc...@analog.com
On 09/28/2018 10:26 AM, Igor Mironchik wrote: Hello, I have a dock widget with text edit field. When I set document to QTextEdit document layouts with smaller width than width of QTextEdit. Look. Small width I can't do so to enlarge the width of the text. But when I put enough text to fit all

Re: [Interest] update on building Qt/Linux with clang?

2018-11-05 Thread william.croc...@analog.com
On 11/05/2018 10:38 AM, Allan Sandfeld Jensen wrote: On Montag, 5. November 2018 12:10:15 CET Jean-Michaël Celerier wrote: I tried building everything with clang 7 and libc++ last week but hit a qlalr segfault during build. I've been trying to debug it ever since to no avail. clang sometimes

Re: [Interest] What are you using for continuous integration?

2019-02-13 Thread william.croc...@analog.com
We have been using buildbot on a Linux server and multiple Macintosh and Windows machines as workers for about 9 years. The workers build our Qt based application, run tests, and if everything passes the application is uploaded to the buildbot server which then passes the application to our web

Re: [Interest] Recommended exception handling

2019-03-11 Thread william.croc...@analog.com
Hello, Is there a current recommended way of catching exceptions before they unwind through the event loop? I want this for "debug purposes" only. I have few methods that throw and I (think I) catch (all of) my exceptions before they reach the event loop, but I wanted to be sure I hadn't forgot

Re: [Interest] [#ID:INC-1251018#] Installation issue.

2019-03-12 Thread william.croc...@analog.com
The problem is not the GCC version. It's the set of libraries provided by the old distribution. And I guess he could still build his own packages. The libraries would just use bundled qt copies if too old. Only the prebuilt packages have higher requirements, right? No; e.g. xkbcommon is no l

Re: [Interest] Whole edit window closes.

2019-03-14 Thread william.croc...@analog.com
I have a QTableView. I use a QStyledItemDelegate on each cell. The delegate opens a custom, modal editor on double click. The editor is based on a QDialog and contains a number of widgets, one of which is a QComboBox. When I press in the text entry area of the QComboBox, the whole edit window

Re: [Interest] How to detect a HiDPI display with Qt?

2019-03-18 Thread william.croc...@analog.com
You can also check the device pixel ratio for image “@2” alike: qreal pixel_ratio = QGuiApplication::primaryScreen()->devicePixelRatio(); unsigned int image_scale_ratio=pixel_ratio/1u; QString m_image_scale = image_scale_ratio<=1u ? "" : QString("@%1x").arg(image_scale_ratio); Please kee

Re: [Interest] QTabWidget scroll buttons

2019-03-26 Thread william.croc...@analog.com
Is there a way to get access to the scroll buttons on a QTabWidget to customize them? The issue we're having is that we have a UI that uses a tab widget for displaying file contents - one tab per open file. Once a user opens enough files/tabs, the tab scroll buttons pop up (so far so good),

Re: [Interest] QTabWidget scroll buttons

2019-03-26 Thread william.croc...@analog.com
On 03/26/2019 11:02 AM, Murphy, Sean wrote: [External] You could add a tool-button with said popup menu associated to it to the right of the tab widget (e.g. Firefox does this). This would have the advantage from my PoV that it's always there and works, regardless of how many tabs are open.

Re: [Interest] How to properly show progress for a signal processing pipeline

2019-04-08 Thread william.croc...@analog.com
We have a data processing pipeline that looks like so: Raw Data objects -> Type "A" data objects -> Type "B" data objects -> Final Data objects Each step can be considered a filtering process where the following mathematical relationship holds for the quantities of each type of object:

Re: [Interest] How to properly show progress for a signal processing pipeline

2019-04-08 Thread william.croc...@analog.com
So the issue I'm having here is that I want to show the user some sort of progress indicator (this whole pipeline takes a bit of time), but at the start I only know the raw count, not any of the intermediate or final counts. And because the A->B->Final portion of the pipeline takes a notic

Re: [Interest] QtWebAssembly license question

2019-04-16 Thread william.croc...@analog.com
On 04/16/2019 07:56 AM, Fabrice Mousset | GEOCEPT GmbH wrote: [External] Hello, before starting QtWebAssembly evaluation, I would like to know what are the “limitation” of the GPL Version? Does it mean that everything I will develop using QtWebAssembly must be GPL? At this time, we have devel

[Interest] Text is not being anti-aliased.

2015-01-30 Thread william.croc...@analog.com
Hello: I have code to create a PNG file from a QGraphicsScene. When I run this on Linux, text is anti-aliased. This is good. When I run this on Windows, text is NOT anti-aliased. This is bad. I would like the text to be anti-aliased. Am I doing something wrong? Is this a Windows bug? Is there a w

Re: [Interest] Text is not being anti-aliased.

2015-01-30 Thread william.croc...@analog.com
nter.setBackgroundMode(Qt::OpaqueMode); The bottom line is that my original Qt code was good enough for Linux but not for Windows. Thanks. Bill > >> Sent: Friday, January 30, 2015 at 10:56 AM >> From: "william.croc...@analog.com" >> To: "interest@qt-project.org&q

Re: [Interest] Qt 5.5 and Red Hat 5

2015-03-18 Thread william.croc...@analog.com
On 03/18/2015 09:25 AM, Harri Porten wrote: > On Wed, 18 Mar 2015, Thiago Macieira wrote: > >> I'm not sure I will apply a fix to the main codebase since this is a >> feature added for kernel 2.6.22, almost 8 years ago. > > Still very much in use by certain industries who standardized on RH 5 for >

Re: [Interest] Qt 5.5 and Red Hat 5

2015-03-18 Thread william.croc...@analog.com
> > Bill said: >> My sight has over 500 Linux machines. Only a handful >> are running RedHat 6, but we will finally be migrating >> over the next 6 months to a year. > > And when will you be deploying Qt 5.5 to that site? > Probably never because I can't get it to build. Qt5 requires certain ver

Re: [Interest] Qt 5.5 and Red Hat 5

2015-03-19 Thread william.croc...@analog.com
>> >> The problem is RHEL5. > > Yes, but the OP also explicitly mentioned RH 6 ("I tried once to get it to > build on RH6, but even there I got > the impression that I did not have the required versions of the required > libraries."). > > So I understand they're sitting on thousands of 8 years o

Re: [Interest] Qt 5.5 and Red Hat 5

2015-03-23 Thread william.croc...@analog.com
On 03/18/2015 04:27 PM, Scott Aron Bloom wrote: > On this note.. I a large number of my customers (about 20%) of my users are > STILL using CentOS 5 or RHEL 5.. > In moving to Qt 5, they are now losing printing support :( They will have to > print to a PDF and print external to the tool. > In ED

Re: [Interest] Problem sizing a QWidget

2015-04-06 Thread william.croc...@analog.com
> > I know this is not the correct way to go, and is quite inefficient but I > could not find another way. > Would anyone have some suggestion on how to handle this correctly? > Any help would be greatly appreciated. > Looks like I did this at some point in the past: m_Label->setSizePolicy(QSi

Re: [Interest] Problem with QPixmap.

2015-04-17 Thread william.croc...@analog.com
On 04/17/2015 12:53 PM, Igor Mironchik wrote: > Hi, guys. > > I have one problem: pixmap "usb-disconnected.png" doesn't draws correctly. > Draws > absolutely nothing. And if click on this button application crashes. What is > the > problem? Thank you. > Have you added the .png file to your .qrc

Re: [Interest] Again this problem but now on Linux

2015-05-04 Thread william.croc...@analog.com
On 05/03/2015 11:17 PM, Thiago Macieira wrote: > On Monday 04 May 2015 06:08:55 Nikos Chantziaras wrote: >> On 03/05/15 13:54, Igor Mironchik wrote: >>> Hi guys, >>> >>> I asked before about similar problem on Windows but now I have the same >>> problem on Linux. >>> >>> I have messagebox.cpp file

Re: [Interest] Again this problem but now on Linux

2015-05-04 Thread william.croc...@analog.com
> If you define your classes in .h files (not .cpp files) and run qmake, > then you don't need to #include anything that moc produces. And if I only use a Q_OBJECT based class in one .cpp file I should now have to break it out into it's own header file just to make the build system happy. I acce

Re: [Interest] 5.4.2 Android Misery just one typo away

2015-06-16 Thread william.croc...@analog.com
>> >> it just so happens that one of the possible undefined behaviors is to run >> exactly like you expected it to. > > Good explanation! > > I wish this was yet more prominent in the docs. It took me actually 2 > years to figure out that exactly this had been the cause that some of my > command l

Re: [Interest] 5.4.2 Android Misery just one typo away

2015-06-17 Thread william.croc...@analog.com
> > It's certainly one of the uglier gotchas people run into. Here is my humble > attempt to document it more prominently: > > https://codereview.qt-project.org/#/c/114517/ > > Anyhow, adding stuff to the documentation only helps so much, since people > also have to read it :) > > In general, I

Re: [Interest] Text rendering problem.

2015-07-18 Thread william.croc...@analog.com
On 07/18/2015 06:34 AM, Elvis Stansvik wrote: > 2015-07-18 1:13 GMT+02:00 Bill Crocker: >> >> Hello: >> >> I am having a text rendering problem. >> > >> From some googling, I think it's because the hinting values are > obtained when unscaled, and then used even when scaled. > > What you can do in y

Re: [Interest] Text rendering problem.

2015-07-18 Thread william.croc...@analog.com
>>> >>> I am having a text rendering problem. >> >>> From some googling, I think it's because the hinting values are >> obtained when unscaled, and then used even when scaled. >> >> What you can do in your example is >> >> scene_font.setHintingPreference(QFont::PreferNoHinting); >> > > Elvis

Re: [Interest] Text rendering problem.

2015-07-21 Thread william.croc...@analog.com
On 07/18/2015 08:02 PM, william.croc...@analog.com wrote: > >>>> >>>> I am having a text rendering problem. >>> >>>>From some googling, I think it's because the hinting values are >>> obtained when unscaled, and then use

Re: [Interest] Text rendering problem.

2015-07-23 Thread william.croc...@analog.com
On 07/21/2015 01:31 PM, william.croc...@analog.com wrote: > On 07/18/2015 08:02 PM, william.croc...@analog.com wrote: >> >>>>> >>>>> I am having a text rendering problem. >>>> >>>> What you can do in your example is >>

Re: [Interest] [SOLVED] Text rendering problem.

2015-07-23 Thread william.croc...@analog.com
> > I have this working with DirectWrite on Windows, > but it only appears to work when my app is built with debug mode. > If I build it in release mode then it does *not* work > and the text appears badly kerned. > This was all my fault. (D'oh My release build was not using the intended dlls.)

Re: [Interest] QList and erase problem...

2015-09-14 Thread william.croc...@analog.com
On 09/14/2015 11:13 AM, Igor Mironchik wrote: > Hi, > > it seems that problem not in the iterating and deletion from cantainer... > > I wrote simple test app and everything is ok. > > But something here crashes my app and only in release mode, so I can't > understand what is the problem... > > And

Re: [Interest] It is happening again.

2015-09-24 Thread william.croc...@analog.com
On 09/23/2015 04:00 PM, Thiago Macieira wrote: > On Tuesday 22 September 2015 16:09:57 Bill Crocker wrote: >> 2 - During these periods, the invalid SYN cookies number on the server >> steadily rises: >> >netstat -ts | grep SYN >> 302658 invalid SYN cookies received<--- >>

Re: [Interest] QFile::size() and QTextStream::pos()

2015-10-29 Thread william.croc...@analog.com
On 10/29/2015 05:05 PM, Thiago Macieira wrote: On Thursday 29 October 2015 21:49:40 Igor Mironchik wrote: On 29.10.2015 06:51, Thiago Macieira wrote: On Thursday 29 October 2015 05:51:36 Igor Mironchik wrote: P.S. Why QTextStream doesn't have something like get(), peek(), unget(), putback()?

Re: [Interest] Place a QWidget below a button (and follow it!)

2013-06-13 Thread william.croc...@analog.com
> > In details, I have a widget that will display a floating window when the > user clicks on a QToolButton. This floating widget must be placed below > the button that summoned its soul, and if the main window moves, the > floating window must be positioned in the same place. > Reimplement the m

Re: [Interest] QFileDialog is lovelier the second time around...

2013-06-17 Thread william.croc...@analog.com
On 06/17/2013 09:57 AM, Duane wrote: > On 6/14/2013 5:06 PM, Till Oliver Knoll wrote: >> Am 14.06.2013 um 23:02 schrieb Till Oliver >> Knoll: >> >>> >>> That said, the Qt "cross-platform file dialog" is (was?) terribly slow with >>> network mapped drives >> That's the price we pay for viewing th

Re: [Interest] Possible memory leak.

2013-06-18 Thread william.croc...@analog.com
On 06/18/2013 01:05 PM, Thiago Macieira wrote: > On terça-feira, 18 de junho de 2013 08.37.18, Bill Crocker wrote: >> I have written a server app with Qt (4.7.1) and the image size grows over >> time. Valgrind found this. >> Are we missing a call to freeaddrinfo somewhere? > > No. > You seem prett

[Interest] Breaking news, App steals keyboard focus.

2013-09-06 Thread william.croc...@analog.com
Hello: When my app starts up and appears on the screen it steals the keyboard focus away from whoever has it. (I do not currently call QWidget::activateWindow()). Since this involves the window manager, there is probably not one answer. I am currently running under Gnome on RedHat Enterprise Linu

Re: [Interest] Why QLabel block mouseReleaseEvent when holds rich text?

2013-09-11 Thread william.croc...@analog.com
On 09/11/2013 07:08 AM, nate.y...@gmail.com wrote: > Hi guys, > > I have a frameless dialog and implement the title bar by myself. I implement > the > mousePressEvent, mouseReleaseEvent and mouseMoveEvent of the dialog, so users > can drag the dialog. Every thing works fine until I put a QLabel, w

Re: [Interest] It's time again to play Find-That-Bug

2013-09-14 Thread william.croc...@analog.com
> > Can you find it? > > QString > MakeDigest( QStringList list ) { > QCryptographicHash ch(QCryptographicHash::Md5); > foreach( QString s, list ) > ch.addData( s.toAscii() ); > return ch.result(); > } > Yes. The problem is in the conve

Re: [Interest] Possible to know if QAction was triggered by QKeySequence or click?

2013-10-30 Thread william.croc...@analog.com
On 10/30/2013 06:12 AM, Philipp Kursawe wrote: > I want to detect how users usually work with the application. Do they click > more > or use the shortcuts. This way we can optimize the UI. > You can try installing a global event filter on the app. You would then see all events go by, some of whic

Re: [Interest] QAbstractItemModel::headerData

2013-11-25 Thread william.croc...@analog.com
On 11/22/2013 02:31 PM, an...@familiesomers.nl wrote: > Bill Crocker schreef op 22.11.2013 20:19: >> Gang: >> >> I have created my own item model by sub-classing QAbstractItemModel. >> >> Functions like rowCount take a parent index so the model >> knows for which index it is being asked to return t

[Interest] How to center the check box.

2013-12-29 Thread william.croc...@analog.com
Gang: I have a QTableView which uses a custom model based on QAbstractItemModel. The model sets the Qt::ItemIsUserCheckable flag for one of the columns and the model data() function responds to the Qt::CheckStateRole for the same column. The result is a working check box in the corresponding colum

Re: [Interest] How to center the check box.

2013-12-29 Thread william.croc...@analog.com
>> >> My problem is that the check box is presented >> flush left in the column and I would like >> it to be centered. The closest I could find was >> Qt::TextAlignmentRole which didn't sound right >> or have any affect. >> >> Any help would be appreciated. >> > There is no easy way to make the ch

  1   2   >