Results 1 to 6 of 6

Thread: Some issues with qrand.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Some issues with qrand.

    You might want to search through the bug tracker if such an issue is already known. If not, you can create one. Maybe even send in a patch or merge request.
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

  2. #2
    Join Date
    Aug 2009
    Location
    coimbatore,India
    Posts
    314
    Thanks
    37
    Thanked 47 Times in 43 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Some issues with qrand.

    It seems QtGlobal is not added in online documentation's search tool.

    here is the link to report bug:
    http://bugreports.qt.nokia.com/secure/Dashboard.jspa
    it reqs login.



    bala

  3. The following user says thank you to BalaQT for this useful post:

    def (26th November 2010)

  4. #3
    Join Date
    Nov 2010
    Posts
    3
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60

    Default Re: Some issues with qrand.

    Thanks. I've posted two defects about this now:
    http://bugreports.qt.nokia.com/browse/QTWEBSITE-109
    http://bugreports.qt.nokia.com/browse/QTWEBSITE-110


    Added after 7 minutes:


    In responce to franz comment:
    > Maybe even send in a patch or merge request.
    If I were to patch the example then I would need to be absolutely sure I was right. And currently:
    - I'm not absolutely sure what this:
    QTime::currentTime().elapsed()
    should return in the example program - it is always returning 0, but the defect could be in this function which for all I know should be returning something different.
    - I've not found anything in the documentation which says that each thread is independant from the point of view of random number generation or not. Thus I could move the seed setting into the 2nd thread and submit that as a code change, but it maybe that it is the wrong thing to do.
    Last edited by def; 26th November 2010 at 10:12.

Similar Threads

  1. Two problems with the function qrand()
    By Trader in forum Qt Programming
    Replies: 7
    Last Post: 5th November 2010, 22:01
  2. Some QTreeView Issues
    By kazibi in forum Newbie
    Replies: 0
    Last Post: 27th December 2009, 14:51
  3. 4.6.0 issues on OS X 10.6 with GL
    By treaves in forum Qt Programming
    Replies: 2
    Last Post: 2nd December 2009, 17:12
  4. QTableView Issues with Qt 4.5.3
    By tntcoda in forum Qt Programming
    Replies: 0
    Last Post: 5th October 2009, 20:58
  5. QTextBrowser Issues
    By anju123 in forum Qt Programming
    Replies: 0
    Last Post: 20th July 2007, 05:28

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.