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. How to display my String or Qstring in QLabel using button?

How to display my String or Qstring in QLabel using button?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 136 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.
  • J Offline
    J Offline
    JacobNovitsky
    wrote on 18 Sept 2023, 09:26 last edited by
    #1

    How to display my String or Qstring in QLabel using button?

    47822b66-0fa8-41d6-9f01-6138a1f2ce4d-image.png

    J 1 Reply Last reply 18 Sept 2023, 10:29
    0
    • J JacobNovitsky
      18 Sept 2023, 09:26

      How to display my String or Qstring in QLabel using button?

      47822b66-0fa8-41d6-9f01-6138a1f2ce4d-image.png

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 18 Sept 2023, 10:29 last edited by
      #2

      @JacobNovitsky Well, connect a slot to https://doc.qt.io/qt-6/qabstractbutton.html#clicked and in that slot set the string in QLabel using https://doc.qt.io/qt-6/qlabel.html#text-prop

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      5

      1/2

      18 Sept 2023, 09:26

      • Login

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