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 369 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.
  • MihanM Offline
    MihanM Offline
    Mihan
    wrote on 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.HilkJ 1 Reply Last reply
    0
    • MihanM Mihan

      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.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on 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
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on 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

        MihanM 1 Reply Last reply
        4
        • SGaistS SGaist

          Hi,

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

          MihanM Offline
          MihanM Offline
          Mihan
          wrote on last edited by
          #4

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

          1 Reply Last reply
          1

          • Login

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