Results 1 to 12 of 12

Thread: How do I make my own QDialog working like for example QFileDialog

Hybrid View

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

    Default Re: How do I make my own QDialog working like for example QFileDialog

    Quote Originally Posted by wysota View Post
    It doesn't have to be virtual to reimplement and use it of course... Virtuality is only needed when something else calls the method.
    True, but it's still a bad practice to shadow non-virtual methods.
    J-P Nurmi

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

    Default Re: How do I make my own QDialog working like for example QFileDialog

    Quote Originally Posted by jpn View Post
    True, but it's still a bad practice to shadow non-virtual methods.
    "It depends" I don't see anything improper in reimplementing QDialog::exec() I know it's possible that someone will want to call it after casting to QDialog, but hey! let's try our luck Of course it's better to avoid such risks...

Similar Threads

  1. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 05:57

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.