开发者

MeegoTouch CSS Style Problem

开发者 https://www.devze.com 2023-03-10 17:05 出处:网络
I write a Meego App. But the CSS sytle not work normally. And I want to know how to get the CSS sytle works ? THX.

I write a Meego App. But the CSS sytle not work normally. And I want to know how to get the CSS sytle works ? THX.

My Steps:

  1. in .pro, add meegotouch lib
  2. css file named style.css and I add a qrc file to reference the style.css
  3. in Code, just load the css style. MTheme::loadCSS(":/style/style.css");

at the first time, the style works, but it fail to change the style when I re-write some attributes in the CSS file. And I have to re-name the css file(maybe style1.css) and re-add in the qrc file, it wil开发者_开发问答l get work.

Any solution or did I miss something??


It would help if you included more code.

The only thing that I can think of is the simple problem of not reloading the application (or at least re-running the method where you load the css file) after you change the css file.

But I still don't know what you're doing.

0

精彩评论

暂无评论...
验证码 换一张
取 消