Mailinglist Archive: opensuse-programming (84 mails)

< Previous Next >
Re: [suse-programming-e] QDataBrowser can not display bpchar(150)
  • From: Prabu Subroto <prabu_subroto@xxxxxxxxx>
  • Date: Wed, 4 Aug 2004 10:49:53 -0700 (PDT)
  • Message-id: <20040804174953.72562.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Dear Brad...

But how?

here is my code:
===
void funonseqForm::init()
{
retrieve();
}

void funonseqForm::retrieve()
{
QSqlDatabase * bd =
QSqlDatabase::addDatabase("QPSQL7", "OTHER");
bd->setHostName("192.168.23.237");
bd->setDatabaseName("kv");
bd->setUserName("postgres");
bd->setPassword("");
if ( ! bd->open() )
{
bd->lastError().showMessage();
}

QSqlCursor * cursor = new
QSqlCursor("v_cust_sven", true, bd);
custdataBrowser->setSqlCursor(cursor, false);
custdataBrowser->refresh();

}
===

Thank you very much in advance
--- Brad Bourn <brad@xxxxxxxxxxxx> wrote:

> You should be able to set it to
> QString
>
> B-)
>
> On Wednesday 04 August 2004 11:41 am, Prabu Subroto
> wrote:
> > Dear my friends...
> >
> > I am using postgres 7.2.x, Qt 3.2 and SuSE 9.1 .
> >
> > I want to make the list of customer list with
> > "previous", "next", "first" and "last" buttons.
> >
> > Finally, I create this with QDataBrowser.
> > Actually it works...the four buttons work as I
> > expected. but what weird is that the QLineEdit of
> > Address can not display the value of the field
> > "address". I define this field with bpchar(150).
> Does
> > it has anything to do with the datatype?
> > Which data type should I use?
> >
> > Please tell me where my mistake is.
> >
> > Thank you very much.
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Y! Messenger - Communicate in real time. Download
> now.
> > http://messenger.yahoo.com
>
> --
> To unsubscribe, email:
> suse-programming-e-unsubscribe@xxxxxxxx
> For additional commands, email:
> suse-programming-e-help@xxxxxxxx
> Archives can be found at:
> http://lists.suse.com/archive/suse-programming-e
>
>




__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

< Previous Next >
References