Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Mini2440 Qt app with no frame and font size chnages
Qt 6.11 is out! See what's new in the release blog

Mini2440 Qt app with no frame and font size chnages

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 3 Posters 4.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bluscape
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      blaroche
      wrote on last edited by
      #2
      1. 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]

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bluscape
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        • L Offline
          L Offline
          loladiro
          wrote on last edited by
          #4

          Are you using qml or widgets?

          1 Reply Last reply
          0
          • B Offline
            B Offline
            bluscape
            wrote on last edited by
            #5

            I'm using widgets.

            Should I rather use qml or can I change the font from points to pixels in widgets too?

            1 Reply Last reply
            0
            • L Offline
              L Offline
              loladiro
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved