Results 1 to 5 of 5

Thread: Need a help about QFileDialog

  1. #1
    Join Date
    Aug 2009
    Posts
    6
    Qt products
    Platforms
    Unix/X11 Windows

    Default Need a help about QFileDialog

    Hi all

    I have a issue with QFileDialog . When i am using QFileDialog.DontUseNativeDialog I am able to create shortcuts in side panel using setSidebarUrls(srtLink) . But if I am not using QFileDialog.DontUseNativeDialog in option I cant add any links to sideBar . But I cant use QFileDialog.DontUseNativeDialog in my source coz its crashing my parent application . Is any one have idea why we can add its in sideBar ..

    Thanks in Advance

    Achayan

    Edit : I am using pyQt4 , python 2.5 , linux

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Need a help about QFileDialog

    Quote Originally Posted by Achayan View Post
    But if I am not using QFileDialog.DontUseNativeDialog in option I cant add any links to sideBar.
    This is clear, you cannot change OS's native dialog.

    Quote Originally Posted by Achayan View Post
    But I cant use QFileDialog.DontUseNativeDialog in my source coz its crashing my parent application.
    So what, crashing is not a problem. It must be crashing for a reason.
    Find out that reason, and use it.

    Show some code to pin point crashing.

  3. #3
    Join Date
    Aug 2009
    Posts
    6
    Qt products
    Platforms
    Unix/X11 Windows

    Default Re: Need a help about QFileDialog

    here is the error

    Signal: 6 (Unknown Signal)
    Stack trace:
    /lib64/libc.so.6 [0x7f0ae27a4280]
    gsignal
    abort
    g_log
    g_log
    g_assert_warning
    /usr/lib64/libgtk-x11-2.0.so.0 [0x360d8bcc0b]
    /lib64/libglib-2.0.so.0 [0x7f0acf70f2bb]
    g_main_context_dispatch
    /lib64/libglib-2.0.so.0 [0x7f0acf711c0d]
    g_main_context_iteration
    QEventDispatcherGlib:: processEvents(QFlags<QEventLoop::ProcessEventsFlag >)
    /usr/local/qt-4.5.1/lib/libQtGui.so.4 [0x7f0ace17252f]
    QEventLoop:: processEvents(QFlags<QEventLoop::ProcessEventsFlag >)
    QEventLoop::exec(QFlags<QEventLoop::ProcessEventsF lag>)
    QDialog::exec()
    QFileDialog::getOpenFileName(QWidget*, QString const&, QString const&, QString const&, QString*, QFlags<QFileDialog::Option>)
    /usr/local/lib/python2.5/site-packages/PyQt4/QtGui.so [0x7f0acefed3ce]

  4. #4
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Need a help about QFileDialog

    I told you to show code no errors. BTW I cant see the errors even.

  5. #5
    Join Date
    Feb 2008
    Posts
    98
    Thanks
    2
    Thanked 24 Times in 24 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Need a help about QFileDialog

    A backtrace would be more helpful. Run your application under gdb, then type "bt" when it crashes and post the results here. You will need to post some code, however.

Similar Threads

  1. subclass of QFileDialog
    By afail in forum Qt Programming
    Replies: 1
    Last Post: 18th May 2009, 18:09
  2. Check for invalid file name in QFileDialog
    By darren in forum Qt Programming
    Replies: 2
    Last Post: 7th November 2008, 15:43
  3. QFileDialog in Qt designer
    By tpf80 in forum Qt Tools
    Replies: 1
    Last Post: 17th May 2007, 01:41
  4. QFileDialog Mac / PC
    By hey in forum Qt Programming
    Replies: 3
    Last Post: 26th April 2007, 19:23
  5. copy file/s from QFileDialog
    By raphaelf in forum Newbie
    Replies: 4
    Last Post: 4th July 2006, 15:26

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.