Results 1 to 3 of 3

Thread: QML function with optional parameters?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QML function with optional parameters?

    Or a shorthand of:
    javascript Code:
    1. setAlert(header, small, closeable !== undefined ? closeable : true)
    To copy to clipboard, switch view to plain text mode 
    Last edited by wysota; 15th August 2014 at 10:14. Reason: updated contents
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Call JavaScript function with parameters from Qt C++
    By qt_developer in forum Qt Programming
    Replies: 5
    Last Post: 13th January 2015, 00:31
  2. Replies: 4
    Last Post: 22nd January 2014, 01:25
  3. Replies: 4
    Last Post: 20th January 2011, 01:03
  4. QScript + get function call parameters
    By Fastman in forum Qt Programming
    Replies: 3
    Last Post: 1st August 2009, 15:30
  5. Wrong function according to parameters is taken
    By Lykurg in forum General Programming
    Replies: 5
    Last Post: 20th March 2009, 19:55

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.