BalaQT
18th March 2010, 13:45
hi ,
im using qt4.5 in debian
i want to set the focus color of Qcombobox.
so i wrote the following code
this->setStyleSheet("QComboBox:focus { background: yellow;}");
In system monitor , i found that the memory usage is very high[ when i scroll the window.].
when i do a 10 scrolls, the memory increases some kbs on each scroll.
however , when i subclassed the same(QCombobox), i found memory is normal, even on scrolling.
i want to know why the memory is taking very much in STYLESHEETS.
is there any better way to give the backround color of the qcombobox.?
is using stylesheets for setting the background color is a bad idea? [in memory's concern]
Bala
im using qt4.5 in debian
i want to set the focus color of Qcombobox.
so i wrote the following code
this->setStyleSheet("QComboBox:focus { background: yellow;}");
In system monitor , i found that the memory usage is very high[ when i scroll the window.].
when i do a 10 scrolls, the memory increases some kbs on each scroll.
however , when i subclassed the same(QCombobox), i found memory is normal, even on scrolling.
i want to know why the memory is taking very much in STYLESHEETS.
is there any better way to give the backround color of the qcombobox.?
is using stylesheets for setting the background color is a bad idea? [in memory's concern]
Bala