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?
QtWS25 Last Chance

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 last edited by
    #1

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

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

    jsulmJ 1 Reply Last reply
    0
    • J JacobNovitsky

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

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

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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

      • Login

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