Results 1 to 8 of 8

Thread: Having some QObject problems

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Having some QObject problems

    oh, I didn't notice that
    Qt Code:
    1. class MainWindow : public QTableWidget
    To copy to clipboard, switch view to plain text mode 
    if want to use QToolBar and other features which provide QMainWindow then you must derive your class from QMainWindow, i.e.
    Qt Code:
    1. class MainWindow : public QMainWindow
    To copy to clipboard, switch view to plain text mode 
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  2. #2
    Join Date
    Nov 2008
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Having some QObject problems

    Thxn for the help so far, the segmentation fault is now gone. But now i cant use the QTableWidget class properbly. U have any ideas how i can sort out he lagKalender() method?

  3. #3
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Having some QObject problems

    make a separate class for table widget, and set it as central widget of main window

Similar Threads

  1. QGraphicsItem doesn't inherit QObject?
    By xyzt in forum Qt Programming
    Replies: 6
    Last Post: 26th September 2011, 14:59
  2. Weird problems when destructor is called
    By cyberboy in forum Qt Programming
    Replies: 9
    Last Post: 21st October 2008, 13:59
  3. QObject and copy Constructors
    By December in forum Qt Programming
    Replies: 5
    Last Post: 17th July 2008, 16:14
  4. Reparenting a QObject
    By ghorwin in forum Qt Programming
    Replies: 1
    Last Post: 13th April 2007, 17:21
  5. QT4 Plugins - problems, problems
    By NormanDunbar in forum Qt Programming
    Replies: 6
    Last Post: 9th May 2006, 15:39

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.