Results 1 to 20 of 28

Thread: Including 3rd party software makes my program crash with QFileDialog

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2010
    Posts
    100
    Thanks
    13
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Replace QFileDialog

    I already posted the problem in another thread but I didn't get answers.
    I know it sound crazy impossible but if I had the -halcon include it doesn't work (terminates with segmentation fault) and if I take the include it works just fine.

    It is no problem with my code to open a file dialog but because I have to use the halcon library I would like to know about other way to open a file browser, please.

    thank you.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Replace QFileDialog

    Please provide a minimal compilable example reproducing the problem.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jun 2010
    Posts
    100
    Thanks
    13
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Replace QFileDialog

    Quote Originally Posted by wysota View Post
    Please provide a minimal compilable example reproducing the problem.
    I am not trying to solve the problem because I already lost too much time trying to solve this and I couldn't find the solution. I have other thread where I tried to solve this situation here.
    Off course I would appreciate if someone reproduced the problem in their computer but that's probably asking too much. You would have to download Halcon 8.0 and include it as I did in any qt project and you see that you can't use the QFileDialog anymore.

    Do you know other way of opening a file dialog or do I have to find a magical way of solve this problem.

    thank you.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Replace QFileDialog

    Quote Originally Posted by ruben.rodrigues View Post
    Do you know other way of opening a file dialog or do I have to find a magical way of solve this problem.
    Patience is a virtue. Provide a minimal compilable example, run it and post the backtrace of the crash. Then we can talk about it. I don't know what this Halcon lib does but until we know why your code crashes, there is no point in blaming anyone.

    By the way, threads merged.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Jun 2010
    Posts
    100
    Thanks
    13
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Replace QFileDialog

    Quote Originally Posted by wysota View Post
    Patience is a virtue. Provide a minimal compilable example, run it and post the backtrace of the crash. Then we can talk about it. I don't know what this Halcon lib does but until we know why your code crashes, there is no point in blaming anyone.

    By the way, threads merged.
    Can you just tell me, please, if there is another known way to open a file dialog?

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Replace QFileDialog

    Quote Originally Posted by ruben.rodrigues View Post
    Can you just tell me, please, if there is another known way to open a file dialog?
    You can always use the native API. Of course this is the same what Qt does when you use the static call (which you probably do) so it's likely you'll end up with the same result but since you really want to waste time, I'm not going to stop you. When you decide to come back for more help, please be sure to bring a backtrace of the crash with you.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Jun 2010
    Posts
    100
    Thanks
    13
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Replace QFileDialog

    Quote Originally Posted by wysota View Post
    You can always use the native API. Of course this is the same what Qt does when you use the static call (which you probably do) so it's likely you'll end up with the same result but since you really want to waste time, I'm not going to stop you. When you decide to come back for more help, please be sure to bring a backtrace of the crash with you.
    is the backtrace the DSF disassembly on Eclipse for ubuntu?

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Replace QFileDialog

    Quote Originally Posted by ruben.rodrigues View Post
    is the backtrace the DSF disassembly on Eclipse for ubuntu?
    https://wiki.ubuntu.com/Backtrace
    http://en.wikipedia.org/wiki/Stack_trace
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Program Crash
    By jonmatteo in forum Qt Programming
    Replies: 5
    Last Post: 17th June 2009, 14:47
  2. Crash due to usage of QModelIndex inside QFileDialog?
    By mails.hemant in forum Qt Programming
    Replies: 2
    Last Post: 24th November 2008, 09:23
  3. Replies: 2
    Last Post: 13th August 2008, 17:46
  4. Gnome makes application crash
    By regix in forum Qt Programming
    Replies: 35
    Last Post: 18th August 2006, 19:44
  5. Replies: 1
    Last Post: 20th January 2006, 12:01

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.