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. Why QString function must return string
Forum Updated to NodeBB v4.3 + New Features

Why QString function must return string

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 387 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.
  • M Offline
    M Offline
    Mihan
    wrote on 30 Jul 2019, 09:49 last edited by
    #1

    I found a problem that I write a QString function without return value, then it was broken. But when I add return at the end, it work well, WHY?!

    J 1 Reply Last reply 30 Jul 2019, 09:52
    0
    • M Mihan
      30 Jul 2019, 09:49

      I found a problem that I write a QString function without return value, then it was broken. But when I add return at the end, it work well, WHY?!

      J Online
      J Online
      J.Hilk
      Moderators
      wrote on 30 Jul 2019, 09:52 last edited by
      #2

      @mihan
      because it's c++ not JavaScript


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      8
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 30 Jul 2019, 19:18 last edited by
        #3

        Hi,

        Please take a look at this C++ tutorial about functions.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        M 1 Reply Last reply 31 Jul 2019, 00:53
        4
        • S SGaist
          30 Jul 2019, 19:18

          Hi,

          Please take a look at this C++ tutorial about functions.

          M Offline
          M Offline
          Mihan
          wrote on 31 Jul 2019, 00:53 last edited by
          #4

          @sgaist @J-Hilk Thank you so much, I will pay attention to it. XD

          1 Reply Last reply
          1

          3/4

          30 Jul 2019, 19:18

          • Login

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