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. Help with Syntax
Forum Updated to NodeBB v4.3 + New Features

Help with Syntax

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 276 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.
  • S Offline
    S Offline
    summit
    wrote on last edited by
    #1

    In the following line of code.

    auto from_time = [scale, minimum, rect](qreal time) -> qreal { return (time - minimum) * scale + rect.x(); };
    
    What is the meaning of this Word "-> qreal"
    
    J.HilkJ 1 Reply Last reply
    0
    • S summit

      In the following line of code.

      auto from_time = [scale, minimum, rect](qreal time) -> qreal { return (time - minimum) * scale + rect.x(); };
      
      What is the meaning of this Word "-> qreal"
      
      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by J.Hilk
      #2

      @summit its the expected return time type of the lambda.


      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.

      S 1 Reply Last reply
      2
      • J.HilkJ J.Hilk

        @summit its the expected return time type of the lambda.

        S Offline
        S Offline
        summit
        wrote on last edited by
        #3

        @J-Hilk Thank you very much.

        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