Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Display text name file when push button is clicked

    General and Desktop
    2
    5
    316
    Loading More Posts
    • 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.
    • L
      lolilol78 last edited by

      Hello everybody,

      Just a simple question as a noob,
      When I click on the button LOAD that I created, I want a text file to be loaded, and next to the button load I would like a small window saying "namefile loaded" with the name of the file loaded. Can anyone help me with this ? Which widget should I use?

      Thank you

      1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion last edited by

        Hi
        Well what part you need help with ?
        You can use a QLabel to display the loaded file.

        L 1 Reply Last reply Reply Quote 4
        • L
          lolilol78 @mrjj last edited by

          @mrjj Ok thanks I will try that.

          I just need to display the text file name, not what is inside, QLabel works too ?

          mrjj 1 Reply Last reply Reply Quote 0
          • mrjj
            mrjj Lifetime Qt Champion @lolilol78 last edited by

            @lolilol78
            Yes, QLabel was meant for the filename you put in code.

            1 Reply Last reply Reply Quote 3
            • L
              lolilol78 last edited by

              Thank you mrjj !

              1 Reply Last reply Reply Quote 0
              • First post
                Last post