maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   QListWidget (https://talk.maemo.org/showthread.php?t=45389)

mymybib 2010-02-22 00:52

QListWidget
 
Hi,

I try to use two QListWidget for select number.

One for unit and an other for decimal. I want to do something like hour and minute selection in the alarm application of the n900.

It's work great on my laptop but on the N900, when i click on a QListWidget, the selection on the other vanish.

Do you know how to fix it ?

tgalal 2010-02-22 02:26

Re: QListWidget
 
Well it really disappears but it's still selected, so you can get the current row or item normally. Don't know though how to show this selection when it loses focus ..

danielwilms 2010-02-22 09:10

Re: QListWidget
 
Quote:

Originally Posted by mymybib (Post 540373)
It's work great on my laptop but on the N900, when i click on a QListWidget, the selection on the other vanish.

Do you know how to fix it ?

This seems to be a 4.5 issue. Try it out with the 4.6 beta and it should work.

Daniel

mymybib 2010-02-22 09:28

Re: QListWidget
 
Thanks for your answer.

I use the 4.6 beta.

With the answer of tgalal, now I think it's a only a display colour problem.

When i launch the program with root account, all widget looks differents (they don't use n900 theme) and it's work.

I will try to fix it with QPalette.

mymybib 2010-02-22 15:22

Re: QListWidget
 
Ok, it's progress.

I have change color of item in one QListWidget.

When I start the app with user account, the default theme apply and I see no change.

When I start the app with root account, I've got this :

Quote:

qgtkstyle cannot be used together with the gtk_qt engine
Somebody have a clue to help me to fix this ?

VDVsx 2010-02-22 17:48

Re: QListWidget
 
Quote:

Originally Posted by mymybib (Post 541202)
Ok, it's progress.

I have change color of item in one QListWidget.

When I start the app with user account, the default theme apply and I see no change.

When I start the app with root account, I've got this :



Somebody have a clue to help me to fix this ?

As root you should use: run-standalone.sh app_name


All times are GMT. The time now is 01:29.

vBulletin® Version 3.8.8