Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Solved] can't see the image when running my project
QtWS25 Last Chance

[Solved] can't see the image when running my project

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 1.1k 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.
  • M Offline
    M Offline
    maroko
    wrote on last edited by
    #1

    Hi, I have added an image in Qt Designer using a QLabel (pixmap) but I can't get it when running the project. What can be the problem ?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maroko
      wrote on last edited by
      #2

      to notice there are no errors when running

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

        Hi,

        Maybe the file can't be found. Are you using a resource file ? Directly from the hard-drive ?

        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
        • M Offline
          M Offline
          maroko
          wrote on last edited by
          #4

          Hi,
          my image is located in the desktop.
          I see it before running but when running no so I don't think that the path is the problem.
          So I tried to put it using code and the program works correctly.Now I can se it when running :) .
          To notice the first method (using Qt Designer) works sometimes and sometimes no (I have tried an other example using Qt Designer and I get it when running).

          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