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. Hello-qtonpi
Qt 6.11 is out! See what's new in the release blog

Hello-qtonpi

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 2.7k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Finally got the build to work (yay) but when I run it, I get 90% of the screen white with a black rectangle in the bottom left corner of the screen. Like it is offset down 80% and left 30%.

    was there more setup?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      answered my own question... have to set the screen width and height. is there a way for qt to query the display (TV in this case) for its resolution?

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Check "QDesktopWidget":http://qt-project.org/doc/qt-4.8/qdesktopwidget.html .

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          Sorry I'm such a newb, but in hello-qtonpi, the view is a QQuickView. Are you recommending that I rewrite it with QDesktopWidget? Or is there a way to access QQuickview properties?

          @ QQuickView view;

          view.setResizeMode(QQuickView::SizeRootObjectToView);
          view.setSource(QUrl(QCoreApplication::applicationDirPath() + "/qml/main.qml"));
          view.show();@
          

          I'l admit, I'm new t OOP. all of my programming experience is in vanilla C.

          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