hi ,
im using qt4.5 in debian
i want to set the focus color of Qcombobox.
so i wrote the following code
Qt Code:
this->setStyleSheet("QComboBox:focus { background: yellow;}");To copy to clipboard, switch view to plain text mode
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
Bookmarks