Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. resolution
    Log in to post

    • SOLVED Some trouble with high DPI
      QML and Qt Quick • high dpi resolution geometry multi-screen borderless wind • • jeanmilost  

      2
      0
      Votes
      2
      Posts
      63
      Views

      I finally found a solution which seems to work in my case. I added the Qt.MSWindowsFixedSizeDialogHint window flag, which seems to fix the issue. So below is the modified code: ApplicationWindow { // common properties id: awMainForm width: 602 height: 728 flags: Qt.Window | Qt.FramelessWindowHint | Qt.MSWindowsFixedSizeDialogHint visible: true // form content isn't relevant ... }
    • UNSOLVED How to fix scaling issue in Qt desktop application.
      General and Desktop • scaling resolution alignment • • Maikkannan  

      6
      1
      Votes
      6
      Posts
      677
      Views

      @Maikkannan said in How to fix scaling issue in Qt desktop application.: increased Do you run it on a 2K screen?
    • SOLVED HiDPI and SVG icon resolution
      General and Desktop • svg resolution icons hidpi • • cle1109  

      24
      0
      Votes
      24
      Posts
      1727
      Views

      Turns out there is a simple solution: app.setAttribute(Qt.AA_UseHighDpiPixmaps)
    • UNSOLVED Not able to get screen resolution with QDesktopWidget.
      General and Desktop • resolution qdesktopwidget • • Ahti  

      7
      0
      Votes
      7
      Posts
      4171
      Views

      @SGaist yes but i removed it because now i am facing a new problem and here its.
    • UNSOLVED Yocto + Qt5 + LVDS on i.MX6 (FSL Community BSP): rendering and color depth
      Mobile and Embedded • imx6 yocto resolution i.mx6 display • • daheronj  

      1
      0
      Votes
      1
      Posts
      840
      Views

      No one has replied

    • UNSOLVED Qt Built Software Device Resolution Inquiry
      General and Desktop • scale resolution dpi device pixel • • JVR Orane  

      6
      0
      Votes
      6
      Posts
      1380
      Views

      @mrjj yeah its not, but thanks though
    • UNSOLVED we have use qt TableView like sample source. but the memory was leaked.
      QML and Qt Quick • tableview memory resolution leak with • • liuyang  

      6
      0
      Votes
      6
      Posts
      1543
      Views

      @cheezus JavaScipt source doesn't leak now.but QML side still leaks.please .
    • UNSOLVED Scalability on different screens resolution, wrong DPI
      QML and Qt Quick • scaling resolution screen devices • • AllanE  

      3
      0
      Votes
      3
      Posts
      1598
      Views

      I have been looking into this myself, with no conclusive information on how to reliably accomplish this. It feels like Qt 5.6 ought to automagically do the scaling for you; I intend to post a new question in this forum asking about this. In the meanwhile, the first part of this video will be of interest to you: https://youtu.be/nNyhsdX6BsI?t=6m24s There is code at 06:24 that extracts the dpi value from the Android framework. Maybe that will work better, I have not tried it myself.
    • QML Camera change resolution on Windows
      QML and Qt Quick • camera resolution • • ratwix  

      1
      0
      Votes
      1
      Posts
      1147
      Views

      No one has replied

    • Resizing Qwidget with app window
      General and Desktop • qwidget resize resolution • • Omri  

      2
      0
      Votes
      2
      Posts
      905
      Views

      I am not sure what you are referring to as you app window, but provided that it too is a QWidget you can use QWidget::changeEvent(QEvent* event). In there you can check the event to figure out whether the widget got minimized, maximized or just resized. From there you can just pass the information to you video player widget and handle it appropriately. Hope that helps.
    • QML WebView display problems on IMX6
      Mobile and Embedded • qml embedded webview imx6 framebuffer resolution • • mokat  

      1
      0
      Votes
      1
      Posts
      981
      Views

      No one has replied

    • How do I change imagesize to fit on other screens and preserve aspect ratio
      QML and Qt Quick • qml quick resolution change size • • antemort  

      20
      0
      Votes
      20
      Posts
      9211
      Views

      @antemort You can put the 2 gauge images besides eachother inside a RowLayout and add it to the Image element which contains that background image. Advantage of layouts is that it automatically positions the items inside it when it resizes.
    • Handle pixel density in css.
      General and Desktop • stylesheet css scaling resolution • • PharmAccess  

      8
      0
      Votes
      8
      Posts
      3924
      Views

      CSS lets you use relative length units, see this: http://www.w3schools.com/cssref/css_units.asp As suggested in that link before, em and rem create perfectly scalable sizes. Don't let the name and description fool you: although the size refers to the size of the M character, they can be applied to width, height and any other CSS property as well. Also, if you use a main CSS class like this: main_class { width: 1em; height: 1em; font-size: 10em; } and all the other objects (or CSS styles) are childs of this class: main_class.div { .... } // or something like this in HTML <BODY class="main_class"> <div class="other_class">something</div> </BODY> // in C++ the BODY widget would the parent of the div widget You can then only change the main_class sizes, and all the child items of that class will scale accordingly to their parent. Suppose you have this CSS for that div element before: other_class { width: 10em; height: 4em; font-size: 1.3em; } and suppose that the main_class CSS is this: main_class { width: 3em; height; 3m; font-size: 10em; } then the real sizes of that other_class are actually: width: 30 em; // 3 * 10 height: 12 em; // 3 * 4 font_size: 13 em; // 10 * 1.3 because they have been scaled by 3, 3 and 10ems, respectively. Using ems is for sure the best way in CSS to scale items proportionally. I hope this helps :)
    • [SOLVED] 3 questions
      General and Desktop • resolution monitor external hdd external hard d a lot of data • • Clint Westwood  

      7
      0
      Votes
      7
      Posts
      2170
      Views

      Thanks, I'll have a look at it.