Results 1 to 2 of 2

Thread: QWidget::testWFlags() - method in Qt 4?

  1. #1
    Join Date
    Oct 2006
    Location
    San Francisco, USA
    Posts
    14
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default QWidget::testWFlags() - method in Qt 4?

    Hi,

    I'm porting an app from Qt 3 to 4 on win32. In QWidget, testWFlags, a Qt 3 method, is not supported in Qt 4. What should I use instead?

    Thanks,
    Amanda

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,518 Times in 1,388 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QWidget::testWFlags() - method in Qt 4?

    QWidget::windowFlags():

    Qt Code:
    1. Qt::WindowFlags flags = widget->windowFlags();
    2. if (flags & Qt::Dialog)
    3. // is dialog
    4. if (flags & Qt::WindowStaysOnTopHint)
    5. // stays on top
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

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

    Amanda (10th November 2006)

Similar Threads

  1. Specifying method metadata
    By brcain in forum Qt Programming
    Replies: 7
    Last Post: 21st September 2006, 01:07
  2. variable in method not initialized?!
    By frosch in forum Qt Programming
    Replies: 10
    Last Post: 3rd September 2006, 14:09
  3. QImage : trouble with save() method
    By krivenok in forum Qt Programming
    Replies: 12
    Last Post: 3rd May 2006, 20:55
  4. Static field and public method
    By probine in forum General Programming
    Replies: 1
    Last Post: 5th March 2006, 11:02
  5. Qt 4.1 and KDE 3.5.1 on OSX 10.2.8
    By Ptero-4 in forum Installation and Deployment
    Replies: 6
    Last Post: 6th February 2006, 02:44

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.