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. [SOLVED]Qt source: zoom android application
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]Qt source: zoom android application

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 1.3k 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.
  • R Offline
    R Offline
    ReinaldoJr
    wrote on last edited by
    #1

    Hello,

    I'm with the qt 5.4 source code and would like to change the resolution of application design as a whole. That is, apply a zoom into any application.

    Already shifted in QtNative.java, QScreen.cpp, qandroidplatformscreen.cpp ... but could not get a satisfactory result.

    Is there anywhere to change it?

    I will be very grateful for the help.

    Sorry my English :-)

    1 Reply Last reply
    0
    • L Offline
      L Offline
      laithbasildotnetgmail.com
      wrote on last edited by
      #2

      I don't understand the question very well..

      but are you using QWidget or QML.

      if QML you can use scale which will do the zoom for you.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        ReinaldoJr
        wrote on last edited by
        #3

        QWidget.
        It would be the same idea of the smartphone browsers: You can increase or decrease the "zoom" of the web page.
        I would like to do this with a QtWidget application.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          ReinaldoJr
          wrote on last edited by
          #4

          Hi,
          Conversation by email with BogDan, the solution emerged editing qt source:

          QtNative.java
          @public void surfaceCreated (SurfaceHolder holder)
          ...
          holder.setFixedSize ((int) (getWidth () 0.5 *),(int) (getHeight () * 0.5));
          ...@

          QtSurface.java
          @static public void sendTouchEvent (MotionEvent event, int id)
          ...
          (int) (event.getX (i) * 0.5)
          (int) (event.getY (i) * 0.5)
          ...@

          It is necessary to recompile qt.

          Thanks.

          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