[Interest] Whole edit window closes.

2019-03-12 Thread Bill Crocker
Hello: Sorry. A boring old desktop widget problem... 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

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

2019-03-11 Thread Bill Crocker
If you are installing onto RHEL 6 as indicated in the case settings then this is not supported which would explain why it is having this problem, Qt was built on RHEL 7.4 for Qt 5.12 as indicated here: https://doc.qt.io/qt-5/supported-platforms.html so you will need to upgrade in order

[Interest] Drawing slow.

2018-08-17 Thread Bill Crocker
Hello: My newer, Qt based drawing program takes orders of magnitude longer to draw lines than my good old plain X-Windows based drawing program. The Qt call stack, as revealed by VTune, is: QPainterPath::draw QPaintEngineEx::draw QRasterPaintEngine::stroke QPaintEngineEx::stroke

[Interest] QSettings problem.

2018-04-17 Thread Bill Crocker
Hello: I have several users which are experiencing a problem using my app, which uses QSettings. It appears that sometimes the underlying settings configuration file is does not appear to exist and the QSettings system resets back to the beginning of time, loosing all settings. All of my users

[Interest] How do I get the most robust version of 5.10

2018-04-12 Thread Bill Crocker
Hello: I have been using Qt-5.7 for a while. I needed a little help and knew it was no longer "supported" so I initiated the process of upgrading to 5.10.1 (Yes, it is a process.) With 5.10.1, one of my apps was crashing and down in a Qt source file. I knew it could be my fault but, just to get

[Interest] Forward use of QtToolBarDialogPrivate?

2018-03-21 Thread Bill Crocker
Hello: ... on to the next problem... For a while now I have been building on Windows using the the Qt Visual Studio plug-in to import my .pro file. Now, for some reason, I am getting this... Does anyone know what might be wrong. VS: 2015 Qt: 5.7.0 Thanks Bill

[Interest] Looks like a bug to me.

2017-06-04 Thread Bill Crocker
Hello (No, this is not spam): For me, the following: QString a = "XXX"; QString b = ""; QString c = ""; QString d = "1"; qDebug() << QString("A: %1%2%3%4") .arg(a) .arg(b) .arg(c) .arg(d); qDebug() << QString("B: %4%1%2%3") .arg(b) .arg(c) .arg(d) .arg(a); prints this: "A: XXX1"

Re: [Interest] 5.8.0 QAbstractListModel

2017-01-16 Thread Bill Crocker
I do this all of the time and it works fine. QModelIndex index = createIndex(row,col); emit dataChanged(index,index); Have you tried it under 5.8.0RC? It was working under 5.7.1 and before. What value for column are you using? For AbstractListModel, I was using 0 (zero) I am

[Interest] Long pause with 5.7

2016-11-07 Thread Bill Crocker
Hello: 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

[Interest] QXcbConnection errors.

2016-09-04 Thread Bill Crocker
Hello: I am trying to port two of my apps from Qt 4.8.6 to Qt 5.7.0 (I am also moving from RHEL5 to RHEL6 at the same time.) I can build them and one appears to run properly, I just get a little noise on start-up... App #1: XXX-lx01:app: App: *W*, failed to get the current screen resources

[Interest] Undo does not restore the selection.

2016-08-23 Thread Bill Crocker
? Is this intentional? Am I doing something wrong? I am still on 4.8.6, so excuse me if this is a bug that has been fixed in 5.* Thanks. Bill -- Bill Crocker Work: (781) 937-1382 (WILM 6500) Home: (978) 686-3277 ___ Interest mailing list Interest@qt

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

2016-05-05 Thread Bill Crocker
I am trying to port my Qt project to a cmake based build so I can use CLion for debugging. Why is CLion preferable for you to do Qt debugging, opposed to e.g. using Qt Creator? Because CLion works out of the box and I am assuming that I can use it to debug my app once I get it to build

[Interest] using cmake to build Qt projects.

2016-05-04 Thread Bill Crocker
Hello: I am trying to port my Qt project to a cmake based build so I can use CLion for debugging. I am almost there, but when it links there are symbols undefined. 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

[Interest] QAbstractItemModel::layoutAboutToBeChanged

2016-03-23 Thread Bill Crocker
Gang: The doc for QAbstractItemModel::layoutAboutToBeChanged() says... This signal is emitted just before the layout of a model is changed. Components connected to this signal use it to adapt to changes in the model's layout. What is the "layout of a model" and how does that differ

[Interest] My next QText* issue.

2016-01-14 Thread Bill Crocker
Gang: The doc shows this code as part of inserting a custom object into a QTextDocument. QTextCursor cursor = textEdit->textCursor(); cursor.insertText(QString(QChar::ObjectReplacementCharacter), svgCharFormat); textEdit->setTextCursor(cursor); But, svgCharFormat now becomes

[Interest] How to create a list.

2016-01-12 Thread 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. Thanks. -- Bill ___ Interest mailing list

[Interest] Macro support with QTextEdit.

2016-01-08 Thread Bill Crocker
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 edit the "8-JAN" directly. If they act to

Re: [Interest] Unnecessary repaints.

2015-12-17 Thread Bill Crocker
rewrite. See also: update, invalidate, and updateGeometry. -- Bill Crocker Work: (781) 937-1382 (WILM 6500) Home: (978) 686-3277 ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

[Interest] Unnecessary repaints.

2015-12-17 Thread Bill Crocker
Hello: 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 repaint (and not the calls which

[Interest] It is happening again.

2015-09-22 Thread Bill Crocker
Fellow Qt Enthusiasts: It is happening again. I have a client server/app which uses Qt for the socket communication. Occasionally it gets sick. When it is sick: 1 - It takes multiple attempts for a client to connect to the server. The connection attempts fail with: *ERROR*, server

[Interest] Font over-line control.

2015-09-04 Thread Bill Crocker
Hello Gang: I use a QTextDocument to format HTML for display in a QGraphicsTextItem. Text can be over-lined with: ABC Is there any way to control the width and vertical position of the over-line line segment? It looks like the line thickness comes from font_engine->lineThickness(). Can I

[Interest] Text rendering problem.

2015-07-17 Thread Bill Crocker
Hello: I am having a text rendering problem. The following code creates a QLabel and QGraphicsTextItem. The QLabel text is 60 pt. The QGraphicsTextItem text size is 6 pt, but then the view is scaled up by 10x. So, in the end both pieces of text are the same size on the screen. For me the QLabel

[Interest] TCP SYN flood attack.

2015-06-09 Thread Bill Crocker
Dear Qt enthusiasts: I am having a problem with my large, distributed QT based client/server app. It periodically appears as if the server machine is under a SYN flood attack. netstat -ts | grep -i syn 7563748 invalid SYN cookies received 75 resets received for embryonic SYN_RECV

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

2015-02-03 Thread Bill Crocker
Sure enough, If I Turn on ClearType Start-ControlPane-Display- AdjustClearTypeText/TurnOnClearType The fonts are rendered anti-aliased. But, I think I told Qt to override this with painter.setRenderHint(QPainter::TextAntialiasing,true); Also, I don't think a Display

[Interest] Plugging my Qt app into MS Word.

2014-12-10 Thread Bill Crocker
Hello: This is somewhat off topic, but I figured you could all use a break from the non-stop QML channel. :-) I have an app written with Qt which creates images. I want to import these images into MS Word and then be able to click on them in Word and have my app appear to edit the image. Then,

[Interest] Crashing in QProcess::waitForFinished

2014-10-03 Thread Bill Crocker
Hello: I have a multi-threaded, server application which has been crashing in QProcess::waitForFinished(int) The frequency is low compared to the work the application does, but it *is* happening. A back trace shows all other threads waiting for something to do. Running with debug is not an

Re: [Interest] Qt Installer Framework.

2014-07-16 Thread Bill Crocker
how it works and if I don't know how it works, I can't tailor it to my application. In my case I want to simplify: 1 - Remove the component selection page. 2 - Remove the use of the Start Menu. 3 - Remove all of the options from the uninstall page. Thanks. Bill -- Bill Crocker Work: (781

[Interest] Server application is crashing.

2014-07-06 Thread Bill Crocker
Hello: I have a server application that crashed 8 times over the (long U.S.) weekend. Back-traces from all core files showed the same location (below). This is a multi-threaded app, but traces of all other threads showed them waiting either for a mutex, on a condition or in a call to select.

Re: [Interest] Dock WIdgets

2014-06-23 Thread Bill Crocker
-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest -- Bill Crocker Work: (781) 937-1382 (WILM 6500) Home: (978) 686-3277

[Interest] QT_LARGEFILE_SUPPORT : macro redefinition.

2014-06-08 Thread Bill Crocker
List: I am upgrading a project from Qt 4.7.1 to Qt 4.8.6 When I build this project on Windows, I now see this: c:\qt\4.8.6\include\qtcore\../../src/corelib/global/qconfig.h(46) : warning C4005: 'QT_LARGEFILE_SUPPORT' : macro redefinition command-line arguments : see

[Interest] QAbstractItemModel::headerData

2013-11-22 Thread Bill Crocker
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 the count. This is good. My model is hierarchical and different points in the hierarchy have a different number

[Interest] SVG Issue.

2013-10-19 Thread Bill Crocker
Hello: Summary: I create a QGraphicsScene with a piece of text and a bounding rectangle. I render to SVG, but the scene when viewed in Inkscape and Firefox does not match what I saw on the screen. I create the text item with a font which is known to Inkscape and Firefox.

[Interest] Possible memory leak.

2013-06-18 Thread Bill Crocker
Qt Enthusiasts: 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? Bill - ==30933== 595 (196 direct, 399 indirect) bytes in 7 blocks are definitely lost in loss

[Interest] How to disable session management.

2013-04-22 Thread Bill Crocker
Dear Qt Enthusiasts: I am running my Qt app with a virtual X server on a compute farm as part of regression testing. Those instances still appear to want to work with the session manager on my login host. This fails and the following messages appear. _IceTransSocketUNIXConnect: Cannot connect

Re: [Interest] How to disable session management.

2013-04-22 Thread Bill Crocker
On 04/22/2013 07:19 AM, Bo Thorsen wrote: Hi Bill, Den 22-04-2013 12:27, Bill Crocker skrev: I am running my Qt app with a virtual X server on a compute farm as part of regression testing. Those instances still appear to want to work with the session manager on my login host. This fails

Re: [Interest] How to disable session management.

2013-04-22 Thread Bill Crocker
On 04/22/2013 07:43 AM, Bill Crocker wrote: On 04/22/2013 07:19 AM, Bo Thorsen wrote: Hi Bill, Den 22-04-2013 12:27, Bill Crocker skrev: I am running my Qt app with a virtual X server on a compute farm as part of regression testing. Those instances still appear to want to work

Re: [Interest] QActionGroup vs QButtonGroup

2013-03-11 Thread Bill Crocker
Wow. A non QML posting. How refreshing. Did you remember to add /images/console.png etc. to your resources file? Also, QIcon is light weight, so you should use QIcon and not Pointer-To-QIcon for things like your consoleIcon_. Bill On 03/11/2013 04:55 AM, Sensei wrote: Hi all, I am adding to

Re: [Interest] QActionGroup vs QButtonGroup

2013-03-11 Thread Bill Crocker
On 03/11/2013 10:06 AM, Sensei wrote: On 3/11/13 12:47 PM, Bill Crocker wrote: Wow. A non QML posting. How refreshing. Did you remember to add /images/console.png etc. to your resources file? Ah yes. I use a QActionGroup when I need this behavior. - Create QActionGroup. - Set all actions

Re: [Interest] Persistent Editor keep focus when opening new window

2013-02-23 Thread Bill Crocker
On 02/23/2013 04:40 PM, Joshua Grauman wrote: Hello all, I have a QTableWidget that uses a custom delegate. When I double click on a cell, the editor comes up fine. But then I want to be able to pull up a helper widget/window to enter data into the persistent editor. The problem is, when I

Re: [Interest] Loading Qt5 libraries during boot

2013-02-01 Thread Bill Crocker
Looks like you need a two plans of action: 1) figure out why it is taking 2 seconds loading: profile the loading and propose patches to Qt. 2) implement the kdeinit / booster trick. I'm not sure there's a good reference online, but here's a very, very summarised summary: - all

Re: [Interest] Spell checking.

2012-11-06 Thread Bill Crocker
On 11/06/2012 04:55 AM, Diego Iastrubni wrote: On Wed, Oct 31, 2012 at 7:07 PM, Bill Crocker william.croc...@analog.com mailto:william.croc...@analog.com wrote: I am adding spell checking to my application. I have the spell checking engine. I can see how to use

[Interest] Spell checking.

2012-10-31 Thread Bill Crocker
Hello: I am adding spell checking to my application. I have the spell checking engine. I can see how to use the QSyntaxHighlighter to to underline words that are spelled incorrectly in a QTextEdit. I understand that I can configure a QTextEdit to behave as a single line widget for use in place

Re: [Interest] Spell checking.

2012-10-31 Thread Bill Crocker
I could subclass QLineEdit and then override the paint event, but I looked at the existing paint event code and got scared. :-) Alex On Wed, Oct 31, 2012 at 10:07 AM, Bill Crocker william.croc...@analog.com wrote: Hello: I am adding spell checking to my application. I have the spell

[Interest] What did I do?

2012-09-04 Thread Bill Crocker
Hello: What did I do? In my app, when I click in a section of the horizontal header a table view, all items in the corresponding column are selected. Is this a default behavior? Must I have done something to enable this behavior? How do I turn off this behavior? Thanks. Bill

Re: [Interest] Questions about QGraphicsWidget

2012-08-07 Thread Bill Crocker
On 08/07/2012 12:36 PM, BRM wrote: I'm working on a QGraphicsWidget version of something I already have a QWidget version of; namely because I need to add some features where I need to overlay items, lines, and text in a way that QWidget does not support You can also overlay your existing

Re: [Interest] Qt5: Obtain current layout size

2012-07-22 Thread Bill Crocker
On 07/21/2012 12:27 PM, Stephen Chu wrote: I am working on a dynamically generated form. One thing I'd like to do is to reflow the layout into multi-column when the widgets fill the preset window height. Hack alert... Some Window Managers will let you bring a window up off screen where it

Re: [Interest] QTabWidget/QTabBar allowing user to edit tab names

2012-06-27 Thread Bill Crocker
On 06/27/2012 05:02 PM, Carl Schumann wrote: Qt community. I would like to allow the user to edit tab names in my application, e.g., by right-clicking and then being given a text field to enter the new name. How would this best be done please? Thanks for any help. What have you tried?

Re: [Interest] Toolbar size and icon color

2012-05-23 Thread Bill Crocker
On 05/23/2012 10:51 AM, Sensei wrote: On 5/23/12 4:12pm, Konstantin Tokarev wrote: Are your icons large enough for your size? They won't be scaled up. Actually, I'm trying to use smaller icons. This works for me: void MyApp::setAllIconSizes( QSize sz ) { foreach( QWidget *wp,

Re: [Interest] Phonon video

2012-03-29 Thread Bill Crocker
On 03/29/2012 10:59 AM, Jason H wrote: I hate to ask this, but have you rebooted? Along that vein. There is a great sitcom called The IT Crowd that came out of Great Britain. You can find it on Netflix. The line Have you tried turning it off and on. is used constantly. Must see. Bill And I'd

Re: [Interest] size policies, layouts, and size hints

2012-03-17 Thread Bill Crocker
On 03/17/2012 03:09 PM, Joshua Grauman wrote: Hello all, Imagine a horizontal layout with 4 QLabels in it. The various QLabels have different amounts of text that can vary quite a bit and can be changed dynamically. I've been unable to get the horizontal layout/size policies to size the