Results 1 to 2 of 2

Thread: is QWidget::setAttribute thread-safe?

  1. #1
    Join Date
    Mar 2012
    Location
    china
    Posts
    54
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default is QWidget::setAttribute thread-safe?

    hello,
    is QWidget::setAttribute thread-safe? anybody know that?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: is QWidget::setAttribute thread-safe?

    Since a widget is a GUI resource it can only be used by the main thread.
    Thus the question of thread-safety is irrelevant, since it will only ever accessed by one thread: the main thread.

    Cheers,
    _

Similar Threads

  1. Thread safe or not
    By raj_iv in forum Qt Programming
    Replies: 1
    Last Post: 19th January 2013, 21:28
  2. Replies: 5
    Last Post: 7th February 2012, 22:13
  3. Replies: 1
    Last Post: 16th September 2010, 15:57
  4. thread-safe
    By babymonsta in forum Qt Programming
    Replies: 0
    Last Post: 5th May 2010, 10:18
  5. Why is QMutex Thread Safe?
    By Kind Lad in forum Newbie
    Replies: 3
    Last Post: 22nd February 2010, 04:46

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.