Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved .png picture do not display in gui after changing qtversion

    QtonPi
    3
    5
    1095
    Loading More Posts
    • 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.
    • C
      carter_james last edited by

      hello people I have written a gui code with qt5.5.0 an the gui worked well .ichanged a computer because of
      speed ,in the new computer i installed qt5.5.1 .In this new qtversion the .png picture in qgraphicsview
      do not display in the GUI. what may i have to do ?

      stackprogramer 1 Reply Last reply Reply Quote 0
      • stackprogramer
        stackprogramer @carter_james last edited by

        @carter_james hi i had same problem in svg .
        please check size of picture,change size,change picture,
        it will fixed.

        1 Reply Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi,

          Where did you get that image from ? Somewhere on your hard drive ? Embedded in your application ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply Reply Quote 0
          • C
            carter_james last edited by

            i solved the trouble .I had to change the path of the picture
            thanks

            1 Reply Last reply Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              Depending on how you use that picture you should embed it using Qt's resource system.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply Reply Quote 0
              • First post
                Last post