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

Example: undoframework. The background is not displayed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.15.2
    • Examples and Demos
    • None
    • Windows

    Description

      Hello everyone!

      Standard examples directory: %Qt5_15_2_DIR%/examples/widgets/tools/undoframework/
      Resources contain a texture for the background: cross.png

       Small line width in cross.png file - 2px (original image size 100x101 px).

      But in the file mainwindow.cpp line 74: 

       

      QBrush pixmapBrush(QPixmap(":/images/cross.png").scaled(30, 30));
      

       

      scaled k=0.3 and then the line width is less than 1px.
      The background is not displayed.
      I changed the scale or thickness of the lines in the cross.png and everything works.

      Please add changes to fix a small issue.
      Best regards, Nikita.  

      nnikellspb@gmail.com

      Attachments

        1. undo_framework_example.png
          32 kB
          Ivan Solovev
        2. undoframework_updated.png
          10 kB
          Ivan Solovev
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ivan.solovev Ivan Solovev
            nikita_p Nik P
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes