Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Images in Qt Creator UI Designer
Qt 6.11 is out! See what's new in the release blog

Images in Qt Creator UI Designer

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 9.9k Views 1 Watching
  • 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.
  • E Offline
    E Offline
    Endless
    wrote on last edited by
    #1

    I'd like to place an image on a form. When I look through the available objects in UI Designer, the only one that seems to come close is GraphicsView. When I add it to my form, I don't see anywhere to give an image source.

    1. Is GraphicsView the correct object to place?
    2. I'd like to add a function to run whenever the image is clicked. Do I just add the function on_whateverobject_clicked?
    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      You can use a qlabel. It has an icon property you can set. Also have a look at the Qt resource system.

      Then connect the clicked signal to the slot you want.

      Qt Certified Specialist
      www.edalsolutions.be

      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