You are not logged in.

  • "pieterprovoost" started this thread

Posts: 35

Location: Brugge, BE

  • Send private message

1

Saturday, November 11th 2006, 2:31pm

split not a member of qstringlist

Hi,

For some reason I can't get split() to work. When trying this

Source code

1
QStringList settingslist = QStringList::split("#",line,TRUE);


I get

Quoted

datafileconstructor.cpp:32: error: `split' is not a member of `QStringList'
mingw32-make[1]: *** [release\datafileconstructor.o] Error 1


Any thoughts?

Thanks,
Piet

This post has been edited 1 times, last edit by "pieterprovoost" (Nov 11th 2006, 2:32pm)


King Nak

Trainee

  • "King Nak" is male

Posts: 89

Location: Austria

  • Send private message

2

Sunday, November 12th 2006, 6:16pm

1. you did not include the qstringlist.h file
2. you're using QT4. check this: http://doc.trolltech.com/4.2/porting4.html#qstringlist

bye
King Nak

  • "pieterprovoost" started this thread

Posts: 35

Location: Brugge, BE

  • Send private message

3

Sunday, November 12th 2006, 7:14pm

I'm using QT4 indeed. Thanks for the hint!

Pieter

4

Sunday, November 12th 2006, 8:01pm

Split() is for QByteArray, if i recall correctly. At least using QT4.