Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. .png picture do not display in gui after changing qtversion

.png picture do not display in gui after changing qtversion

Scheduled Pinned Locked Moved Solved QtonPi
5 Posts 3 Posters 1.4k Views
  • 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 Offline
    C Offline
    carter_james
    wrote on last edited by
    #1

    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 ?

    stackprogramerS 1 Reply Last reply
    0
    • C carter_james

      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 ?

      stackprogramerS Offline
      stackprogramerS Offline
      stackprogramer
      wrote on last edited by
      #2

      @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
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        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
        0
        • C Offline
          C Offline
          carter_james
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            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
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved