[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: strings and QStrings
From: robbie <robbie555 () wardr23 ! fsnet ! co ! uk>
Date: 2000-12-07 23:39:03
[Download RAW message or body]
Hi
im writing a program and im trying to use this bit of code:
deviceedit->setText(get_default_drive());
All the code is fine but when i compile the app this error comes up:
ghdparm-kde.cpp:123: no matching function for call to
`QLineEdit::setText (string)'
/usr/lib/qt2/include/qlineedit.h:135: candidates are: void
QLineEdit::setText(const QString &)
I can see its wanting a QString rather than a string so i added this
into the code:
QString defdrive=get_default_drive();
deviceedit->setText(defdrive);
But I then got this error message:
ghdparm-kde.cpp:122: conversion from `string' to non-scalar type
`QString' requested
Please help and tell me how to do this.
Robbie Ward
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic