Plasma::ComboBox - not possible to set line edit and keep theming?

Emdek emdeck at gmail.com
Tue Apr 7 10:12:51 CEST 2009


Hello

I have question, is it possible to set line edit for Plasma themed combo box and not loose it's theme?

I was trying to use this code:

	Plasma::ComboBox *comboBox = new Plasma::ComboBox(this);

	KLineEdit *lineEdit = new KLineEdit(comboBox->nativeWidget());
	lineEdit->setAttribute(Qt::WA_NoSystemBackground);

	comboBox->nativeWidget()->setLineEdit(lineEdit);

But then that combo box looks like normal widget, without Plasma theming...

Any suggestions?


Best regards
Michał




More information about the Plasma-devel mailing list