Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-70614

strange clipping of text with hidpi with uic generated code

    XMLWordPrintable

    Details

    • Platform/s:
      Windows

      Description

      If Ui file is used in little example of adding tab to tabwidget in a layout, and if windows has magnified view of 200% some text gets clipped.

      strangely with little manual modification of uic generated .h file works i.e. if tab has been parented to tab widget in uic generated .h file right after tab creation it works.

      But the default parenting which is done after say 10 lines of code shows problem.

      Attached example shows it.

      Steps:

      In Windows 10 open ease of access and then set magnifier to 200%

      Run the attach example and see groupbox text is clipped.

      Open the ui_wiget.h file and cut paste tabWidget->addTab(tab, QString()); right after tab creation and then run again, this works

       

      tabWidget = new QTabWidget(Widget);
              tabWidget->setObjectName(QStringLiteral("tabWidget"));
              tab = new QWidget();
              tab->setObjectName(QStringLiteral("tab"));
              bla bla bla 
              .....
             
              tabWidget->addTab(tab, QString()); // CUT THIS LINE AND PASTE after tab = new QWidget();
      
      
              horizontalLayout->addWidget(tabWidget); 

       

        Attachments

        1. pic5.jpg
          pic5.jpg
          8 kB
        2. QTabWidget - Bug - Tab Size BAD.png
          QTabWidget - Bug - Tab Size BAD.png
          106 kB
        3. QTabWidget - Bug - Tab Size GOOD..png
          QTabWidget - Bug - Tab Size GOOD..png
          50 kB
        4. qtbug70614_nonrepro.jpg
          qtbug70614_nonrepro.jpg
          143 kB
        5. qtbug70614.zip
          5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            jkobus Jarek Kobus
            Reporter:
            irfan.omair@digia.com Irfan Omair
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes