Results 1 to 6 of 6

Thread: Problem using SIGNALS/SLOTS

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2007
    Location
    Rome, GA
    Posts
    199
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    14
    Thanked 41 Times in 35 Posts

    Default Re: Problem using SIGNALS/SLOTS

    Thanks alot for the advice! When I get a chance I'll try what you suggested.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    258
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    22
    Thanked 19 Times in 16 Posts

    Default Re: Problem using SIGNALS/SLOTS

    That's about the first time I see an application being derived from QApplication. I wonder if you really need to subclass QApplication for your purposes. Maybe you should consider deriving from QWidget, QMainWindow or QDialog instead.

  3. #3
    Join Date
    Sep 2007
    Location
    Rome, GA
    Posts
    199
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    14
    Thanked 41 Times in 35 Posts

    Default Re: Problem using SIGNALS/SLOTS

    Quote Originally Posted by momesana View Post
    That's about the first time I see an application being derived from QApplication. I wonder if you really need to subclass QApplication for your purposes. Maybe you should consider deriving from QWidget, QMainWindow or QDialog instead.
    Well, I'm not sure either. This design was suggested to me by my boss, who has much more experience than me. I think its mainly for clarity, as this is going to be a casino game with several applications starting and quitting. But I will keep your suggestion in mind...do you think it would help solve my current problem?

  4. #4
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 541 Times in 521 Posts

    Default Re: Problem using SIGNALS/SLOTS

    Quote Originally Posted by JimDaniel View Post
    Well, I'm not sure either. This design was suggested to me by my boss, who has much more experience than me. I think its mainly for clarity, as this is going to be a casino game with several applications starting and quitting. But I will keep your suggestion in mind...do you think it would help solve my current problem?
    No, as I told you, your problems are with the signals and slots, not with the way you implemented your application.

    Anyway, momesana was right. You usually subclass QApplication of you really need to override some of its functionality.

    For interfaces, main windows, widgets and/or dialogs are used.

    Regards

Similar Threads

  1. Graphics view display problem.
    By kiranraj in forum Qt Programming
    Replies: 3
    Last Post: 20th July 2007, 08:08
  2. [QMYSQL] connection problem
    By chaos_theory in forum Installation and Deployment
    Replies: 5
    Last Post: 2nd July 2007, 10:52
  3. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 13:45
  4. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 22:36
  5. Replies: 16
    Last Post: 7th March 2006, 16: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.