Reply
Thread Tools
Posts: 7 | Thanked: 1 time | Joined on May 2010
#1
Hi,

I have developed a app who shows the data from a vcard and it runs very well on scratchbox. But, when i transfered the app to the device all the QlineEdit were black.
My english is very bad and for explain it better, i add a screenshots



the code that i have is:

Code:
void VCard_handler::splitData(char* user_data, QWidget* parent) {

	row = 0;
	main_container = new QWidget(parent);
	main_grid = new QGridLayout(main_container);
	scrollArea = new QScrollArea();
	main_grid->addWidget(scrollArea, 0, 0, 2, 4, Qt::AlignCenter);
	container = new QWidget();
	grid = new QGridLayout(container);
	buttoncancel = new QPushButton("Cancel");
	buttonsave = new QPushButton("Save");
	main_grid->addWidget(buttoncancel, 3, 2, Qt::AlignRight);
	main_grid->addWidget(buttonsave, 3, 3, Qt::AlignLeft);
	scrollArea->setWidget(container);


	contact = e_contact_new_from_vcard (user_data);
	vcard = e_vcard_new_from_string(user_data);

	if(e_vcard_get_attribute (vcard, EVC_N) != NULL) {

		name = new QLineEdit();
		QLabel* N = new QLabel("Name: ", scrollArea);
		EContactName* field = (EContactName*)     e_contact_get(contact, E_CONTACT_NAME);

		name->setText(QString::fromUtf8(e_contact_name_to_string(field)));
}
	container->resize(800, 400);
	scrollArea->resize(800, 400);
	main_container->resize(800, 400);

	scrollArea->show();
	container->show();
	main_container->show();
}

void VCard_handler::nameChanged() {

	EContactName* new_name = e_contact_name_from_string (name->text().toUtf8());
	e_contact_set (contact, E_CONTACT_NAME, new_name);

}
Can anyone help me ?
 
nowhereman's Avatar
Posts: 152 | Thanked: 91 times | Joined on Dec 2009 @ Spain
#2
how do you start application? from xterminal?
 
Posts: 7 | Thanked: 1 time | Joined on May 2010
#3
Originally Posted by nowhereman View Post
how do you start application? from xterminal?
I started with
./qrua in normal user modus in xterminal.

Last edited by xbyte; 2010-06-22 at 06:09.
 
nowhereman's Avatar
Posts: 152 | Thanked: 91 times | Joined on Dec 2009 @ Spain
#4
if you start fromterminal, I think you have to pass style parameter. somethnig like

./qrua -style hilton

I had similar problems, they disappered when I started my application from a desktop link
 
Posts: 7 | Thanked: 1 time | Joined on May 2010
#5
Originally Posted by nowhereman View Post
if you start fromterminal, I think you have to pass style parameter. somethnig like

./qrua -style hilton

I had similar problems, they disappered when I started my application from a desktop link
Yes, it works. It isn't the hildon style like in the scratchbox, but it works.

thank you.

How do you start your application from a desktop link ?
I've created a .deb and install it using dpkg -i in root modus on the terminal, but i haven't a desktop link.
Do i have to change something in the deb files they have created ?
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#6
Originally Posted by xbyte View Post
Yes, it works. It isn't the hildon style like in the scratchbox, but it works.

thank you.

How do you start your application from a desktop link ?
I've created a .deb and install it using dpkg -i in root modus on the terminal, but i haven't a desktop link.
Do i have to change something in the deb files they have created ?
You need to install a .desktop file into /usr/share/applications/hildon. Have a look at some of the existing ones - the format's pretty simple.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 04:06.