SEGMENTATION FAULT – index out of range
@
Simply change the string DISPLAY_WAVEFORM to something like “word” and the problem goes away
I have a little project all tarballed and ready to emal if anybody wants it

The values I showed are the actual ones I'm using. The goal is not to combine the strings, I need all the strings in a list so I can enter them into columns in a database. The snippet I posted is only to demonstrate the bug, not to show a stupid way to combine strings.

SEGMENTATION FAULT – index out of range
@
Simply change the string DISPLAY_WAVEFORM to something like “word” and the problem goes away
I have a little project all tarballed and ready to emal if anybody wants it[/quote]

Above you find your little example after all our iterations as a complete program for compilation. It did run under msvc2005 without a problem. Check it out in your environment and see, if there is an issue.
If it still has the problem, you need to file a bug report on "JIRA":https://bugreports.qt-project.org/secure/Dashboard.jspa

The problem no longer appears either because of your iterations or my chopping of the example of bug. Please try my example project and you'll see the bug. It happens under Linux Fedora-16 (x86_64) as well as Windows-7-x86_64 using the latest version of MinGW.
@http://www.newagemicro.com/test/QStringListBug.tgz
@

[quote author="steveheflin" date="1345395747"]The problem no longer appears either because of your iterations or my chopping of the example of bug. Please try my example project and you'll see the bug. It happens under Linux Fedora-16 (x86_64) as well as Windows-7-x86_64 using the latest version of MinGW.
@http://www.newagemicro.com/test/QStringListBug.tgz
@[/quote]
I believe you right away that the program you supply is crashing.
[quote author="stereomatching" date="1345377410"]QStringList start from index 0, end by index 3 if you only append 4 QString into it
0, 1, 2, 3[/quote]
It has still the index problem as pointed out in the quote above. I do not have to start the compiler for this.

Yikes! I sure am having a heck of time showing the bug that my large application revealed! If you change the indexes (which I've done and reposted it), you will see that there is still a problem. It doesn't reproduce the Segmentation Fault that happens in my application, but it does show there is a problem because the merged strings don't appear in the edit box.

Thank you very much for your help. I attempted to demonstrate a bug I discovered, and in my haste ended up creating a buggy little program. I should have known that a bug in Qt4 is much more complex than my dinky little example. The real problem has to do with using QtXML in conjunction with QStringList and QTableWidget. I'll do a better job of carving out a real example of the problem from my application.