Results 1 to 17 of 17

Thread: segmentation fault insert QString in QCombobox

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: segmentation fault insert QString in QCombobox

    Quote Originally Posted by regix
    #1 0x000000000041602c in QWidget::width (this=0x0)
    at /usr/lib/qt3/include/qwidget.h:768
    #2 0x000000000043d976 in MagickFontDlgImpl::drawMagickFont (this=0x719610,
    truetypefont=@0x7fffcf6df5a0) at magickfontdlgimpl.cpp:208
    It seems that you are trying to dereference a null pointer in magickfontdlgimpl.cpp on line 208.

    MagickFontDlgImpl::changePointSize() gets invoked because of this line:
    Qt Code:
    1. this->cboPoint->setCurrentText(QString::number(this->getpsize()));
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Aug 2006
    Posts
    221
    Thanks
    3
    Thanked 29 Times in 19 Posts

    Default Re: segmentation fault insert QString in QCombobox

    Quote Originally Posted by jacek
    It seems that you are trying to dereference a null pointer in magickfontdlgimpl.cpp on line 208.

    MagickFontDlgImpl::changePointSize() gets invoked because of this line:
    Qt Code:
    1. this->cboPoint->setCurrentText(QString::number(this->getpsize()));
    To copy to clipboard, switch view to plain text mode 
    I don't quite understand. Why do you think it is this line? The backtrace goes on. It seems to crash somewhere in QRect. Doesn't this look more like a Qt bug?

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: segmentation fault insert QString in QCombobox

    Quote Originally Posted by Kumosan
    I don't quite understand. Why do you think it is this line? The backtrace goes on. It seems to crash somewhere in QRect.
    Look closely:
    #1 0x000000000041602c in QWidget::width (this=0x0)
    at /usr/lib/qt3/include/qwidget.h:768
    #2 0x000000000043d976 in MagickFontDlgImpl::drawMagickFont (this=0x719610,
    truetypefont=@0x7fffcf6df5a0) at magickfontdlgimpl.cpp:208
    Some pointer was left uninitialized.

    Quote Originally Posted by Kumosan
    Doesn't this look more like a Qt bug?
    No.

  4. #4
    Join Date
    Aug 2006
    Posts
    221
    Thanks
    3
    Thanked 29 Times in 19 Posts

    Default Re: segmentation fault insert QString in QCombobox

    Quote Originally Posted by jacek
    Look closely:

    Some pointer was left uninitialized.

    No.
    Outch, thanks. The big red font was necessary yesterday.

Similar Threads

  1. why does qt program meet segmentation fault?
    By wquanw in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 15th May 2006, 16:52
  2. (Another) segmentation fault
    By Lebowski in forum Qt Programming
    Replies: 27
    Last Post: 6th April 2006, 06:33
  3. Replies: 2
    Last Post: 25th March 2006, 06:54
  4. Icons missing => segmentation fault
    By antonio.r.tome in forum Qt Programming
    Replies: 4
    Last Post: 8th March 2006, 16:30
  5. [qmake_image_collection.cpp] Segmentation fault
    By CrazyLegz in forum KDE Forum
    Replies: 1
    Last Post: 4th February 2006, 11:43

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.