Source: www.brainyquote.com I may be drunk, Miss, but in the morning I will be sober and you will still be ugly. Winston Churchill Prayer is the key of the morning and the bolt of the evening. Mohandas Gandhi I look upon death to be as necessary to our constitution as sleep. We shall rise refreshed in the morning. Benjamin Franklin
Recently I had to implement a calendar for a TouchScreen application. I resorted to css to modify the calendar widget's appearance so that it would be more accessible. Following is the code that enabled me to get a proper calendar. calendar->setStyleSheet("QMenu { font-size:20px; width: 300px; left: 20px; }" "QToolButton {icon-size: 48px, 48px; font: 20px; height: 70px; width: 100px; }" "QAbstractItemView {selection-background-color: rgb(255, 174, 0);}" "QToolButton::menu-indicator{ width: 50px;}" "QToolButton::menu-indicator:pressed," "QToolButton::menu-indicator:open{ top:10px; left: 10px;}" "QTableView { font: 30px; }" "QSpinBox { width: 100px; font: 20px;}" "QSpinBox::up-button { width:40px;}" "QSpinBox::down-button { width:40px;}");
Link to original article: http://qt-project.org/wiki/Compiling-ICU-with-MSVC Text highlighted and notes added Compiling ICU with MSVC (Microsoft Visual Studio) Qt 5 / QtWebkit requires ICU. Pre-built packages The ICU Project site [ site.icu-project.org ] provides pre-built packages for MSVC 2010, which should work with compilers too. Anyhow, you have to compile your own version if you want to avoid the MSVC 2010 runtime dependency (because you’re using another MSVC version), or want to tailor the ICU configuration. download.qt-project.org [ download.qt-project.org ] also hosts packages for MSVC 2012 .
Comments
Post a Comment