Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Click the button to replace the picture in the Label

Click the button to replace the picture in the Label

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 198 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.
  • jinneaJ Offline
    jinneaJ Offline
    jinnea
    wrote on last edited by
    #1

    12981669868255_.pic.jpg
    Button 1: click PushButton1 to obtain the local image and display it in the TextLabel.(Function has been realized)
    Button 2:Click button 2 to replace the picture with the corresponding name in the label (for example, when clicking button 1, the picture with the name "A" will be displayed on the screen, and the picture with the name "A1" under the corresponding path will be found for replacement; if it is B, B1 will be found for replacement)
    The function of button 2 will not be realized. Ask the teacher how to write this function

    Christian EhrlicherC 1 Reply Last reply
    0
    • jinneaJ jinnea

      12981669868255_.pic.jpg
      Button 1: click PushButton1 to obtain the local image and display it in the TextLabel.(Function has been realized)
      Button 2:Click button 2 to replace the picture with the corresponding name in the label (for example, when clicking button 1, the picture with the name "A" will be displayed on the screen, and the picture with the name "A1" under the corresponding path will be found for replacement; if it is B, B1 will be found for replacement)
      The function of button 2 will not be realized. Ask the teacher how to write this function

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @jinnea said in Click the button to replace the picture in the Label:

      The function of button 2 will not be realized. Ask the teacher how to write this function

      But we're not teachers... it's a task you have to do, we won't write code for you.
      Please post what you already tried and explain where you got problems.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2

      • Login

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