Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Application is crashing; can't understand why
QtWS25 Last Chance

Application is crashing; can't understand why

Scheduled Pinned Locked Moved Solved General and Desktop
crashed
3 Posts 2 Posters 942 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sfinix
    wrote on 6 Apr 2016, 20:56 last edited by sfinix
    #1

    I am a new QT learner. Currently I am reading The Book of QT4: The Art of Building Qt Applications. I was trying to follow an example from there. The code is compiling successfully. But when I try to run the application it crashes with Segmentation fault. Here is the source files:

    hello.pro
    main.cpp
    ByteConverterDialog.h
    ByteConverterDialog.cpp

    $ uname -a
    $ Linux MULTIVAC 3.19.0-56-generic #62~14.04.1-Ubuntu SMP Fri Mar 11 11:03:15 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
    
    $ qmake -v
    $ QMake version 3.0
    
    $ qtcreator -version
    $ Qt Creator 3.0.1 based on Qt 5.2.1
    

    Thanks!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 6 Apr 2016, 21:14 last edited by
      #2

      Hi and welcome to devnet,

      You are not allocating decEdit, hexEdit nor binEdit in your constructor.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply 6 Apr 2016, 21:36
      1
      • S SGaist
        6 Apr 2016, 21:14

        Hi and welcome to devnet,

        You are not allocating decEdit, hexEdit nor binEdit in your constructor.

        S Offline
        S Offline
        sfinix
        wrote on 6 Apr 2016, 21:36 last edited by sfinix 4 Jun 2016, 21:36
        #3

        @SGaist Thanks!

        1 Reply Last reply
        0

        1/3

        6 Apr 2016, 20:56

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved