Results 1 to 20 of 22

Thread: Problems with setCentralWidget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2008
    Posts
    28
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default Problems with setCentralWidget

    Hello all,

    I have this code

    Qt Code:
    1. class QTWindowView : public WindowView, public QTextEdit{
    2. public:
    3. QString getText() const;
    4. void setText(const QString & text);
    5. };
    To copy to clipboard, switch view to plain text mode 

    and when I try to setCentralWidget with this class on QMainWindow
    I get a segmentation fault.
    whats more, on Windows the code DOES work, but on linux
    it crash

    any suggestions ?
    Eli
    Last edited by jpn; 8th March 2008 at 12:01. Reason: missing [code] tags

Similar Threads

  1. Replies: 2
    Last Post: 8th March 2007, 22:22
  2. Utf8 problems
    By cristiano in forum Qt Programming
    Replies: 5
    Last Post: 11th November 2006, 00:14
  3. Problems building mysql plugin for Qt 4.1.2 on windows XP
    By Philip_Anselmo in forum Installation and Deployment
    Replies: 3
    Last Post: 17th May 2006, 15:38
  4. QT4 Plugins - problems, problems
    By NormanDunbar in forum Qt Programming
    Replies: 6
    Last Post: 9th May 2006, 15:39
  5. [Win32/VC++ 8.0] Strange problems with qrc_*.cpp files
    By mloskot in forum Installation and Deployment
    Replies: 6
    Last Post: 6th March 2006, 10:28

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.