Mini2440 Qt app with no frame and font size chnages
-
I've started developing my first Qt application for the Mini2440 ARM embedded linux board.
1.) How can I create a GUI app that does not have a window frame, title bar and no system buttons?
2.) When I design the app in Qt creator the font sizes are correct, but when I run the app on my embedded board, the font size are much smaller even though the size ratio of the form and buttons remain the same. How can I ensure that the app looks exactly the same at run-time as at design time?
-
- are you using X or no X? the below works good with no X, using Qt's embedded display server.
@
#ifdef Q_WS_QWS
view->setFrameStyle(0);
view->showFullScreen();
#elif defined(Q_OS_MAC) || defined(Q_OS_LINUX) || defined(Q_OS_WIN32)
view->show();
#endif
@
2)are you using Qml?
using pixelSize instead of pointSize should help@
font.pixelSize: labelSize
//font.pointSize: labelSize
@[EDIT: code formatting, please wrap in @-tags, Volker]
- are you using X or no X? the below works good with no X, using Qt's embedded display server.
-
This sound like it could be a solution thank you.
Sorry, but this is my first Qt app. Where would you change the two settings respectively?I don't think I'm using X or at least I know I do not initialize it therefore I think I don't Qt is using it. How could I determine?
I'm using Qt 4.6.2, does it support qml? If it does how do I select to use it? -
I use widgets, too. And i will continue to do so until there is proper desktop support. About your problem:
http://doc.qt.nokia.com/4.7/qwidget.html#font-prop