Results 1 to 6 of 6

Thread: QFileDialog::getOpenFileName() gets stucked

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    371
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    14
    Thanked 18 Times in 17 Posts

    Default Re: QFileDialog::getOpenFileName() gets stucked

    Jusi to bump this up, still no go. The code works perfectly on Linux but gets killed on Win32.

    Eventuall I have this code, which seems to work:
    Qt Code:
    1. QString s = QFileDialog::getOpenFileName(
    2. NULL,
    3. tr("Choose a scanned (300dpi) image"),
    4. QDir::home().path(),
    5. tr("Images (*.png *.jpg *.jpeg *.bmp *.gif *.pnm *.xpm)"),
    6. NULL,
    7. QFileDialog::DontUseNativeDialog
    8. );
    To copy to clipboard, switch view to plain text mode 

    Not optimal, but what the hell... I think I will report this to the trolls, as it seems a bug in win32's version of Qt 4.1.1

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: QFileDialog::getOpenFileName() gets stucked

    Just to mention, the code in the first post works fine on my WinXP+SP2 with Qt 4.1.1..

  3. #3
    Join Date
    Jan 2006
    Posts
    371
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    14
    Thanked 18 Times in 17 Posts

    Default Re: QFileDialog::getOpenFileName() gets stucked

    also for me in other projects... this why it's so wierd.

    I will post a link to the full code when I release it, maybe more eyes will be able to see the problem (the applicaiton is an GUI for a hebrew OCR library, google for hocr if you want more info).

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.