Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Polish
  4. Android i QT
Forum Updated to NodeBB v4.3 + New Features

Android i QT

Scheduled Pinned Locked Moved Polish
5 Posts 2 Posters 2.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.
  • M Offline
    M Offline
    matx132
    wrote on last edited by
    #1

    Witam,
    próbuje zacząć pisać w QT pod Androida, lecz mam problem taki iz layout nie dostosowuje się do ekranu, np daję przycisk i w creatorze jest on duży a po włączeniu emulatora jest on bardzo mały, czy jest jakiś sposób aby to poprawić ?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      savior
      wrote on last edited by
      #2

      tak
      musisz operować procentami ustawiając jego szerokość i wysokość względem ekranu.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        matx132
        wrote on last edited by
        #3

        ok, a jeszcze się spytam gdzie mogę podać w procentach szerokość i wysokość, bo w polach dla szerokości i wysokości mogę podać-- tylko liczbę

        1 Reply Last reply
        0
        • S Offline
          S Offline
          savior
          wrote on last edited by
          #4

          musisz policzyć.
          pobrać parent.height oraz parent.width dla głównego rectangle

          Przykład: chcesz żeby przycisk był na pół ekranu (50%)
          @button.witdth = Math.round((50 * parent.width) / 100)
          button.height = Math.round((50 * parent.height) / 100)@

          1 Reply Last reply
          0
          • M Offline
            M Offline
            matx132
            wrote on last edited by
            #5

            ok, dzięki :)
            mam pytanie jeszcze przy okazji, jak mam input'a to zmieniając aby było z małej po każdej literce/znaku zmienia mi na duże, jak zrobić aby nie wymuszał pisania z dużej ?

            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