QFileDialog::getOpenFileName is a static function provided by Qt to show a dialog for opening a file. If a file is selected, this function return the path of the file.
Questions tagged [getopenfilename]
96 questions
1
vote
0 answers
How do I open a file using the GetOpenFileName function in ASM?
Greetings to all the geniuses of the digital age
The following task is on the agenda: "Use the GetOpenFileName function to select a file. Check if the file is less than 3 days old, execute it. Otherwise, display a dialog box asking about deleting…

Sollpix
- 49
- 5
1
vote
1 answer
How to detect that file dialog has been created using GetOpenFileName?
I take a part in developing of namespace shell extension(NSE) containing file list from some folders. I have some problems with Open file dialog (OFD) created with the flag OFN_ALLOWMULTISELECT on Window Vista.
If application uses OFD created using…

goshavt
- 11
- 1
1
vote
1 answer
Import workbook using a predetermined directory and the name found in a cell
I currently import sheets of data into excel that I am exporting from CAD. This includes summaries, counts and other data. I would like to add to the code so that it will import a file from a predetermined directory C:\Jobs\packlist and using a…

pwent
- 13
- 2
1
vote
1 answer
Referening VBA GetOpenFilename (Excel Macro)
I'm running an Excel Macro that is store in the active workbook. I want it to prompt to open a file, referenced as OldWorkbook and copy values from OldWorkbook then paste their values into the active workbook.
I'm having errors after the 'Copy range…

minnesota73
- 33
- 1
- 6
1
vote
1 answer
Tkinter filedialog askopenfilename function
I'm trying to open the file dialog (select file) window when a user presses a button by calling the function open:
from Tkinter import *
import Tkinter, Tkconstants, tkFileDialog
from PIL import ImageTk, Image
root =…

mimi quarantine
- 65
- 1
- 1
- 7
1
vote
1 answer
OpenFileName with hook results in CDERR_DIALOGFAILURE
I'm getting an error CDERR_DIALOGFAILURE from GetOpenFileName. here's the code...
// In WndProc
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
static HINSTANCE hInstance;
switch (message)
…

Mike D
- 2,753
- 8
- 44
- 77
1
vote
3 answers
How to prevent GetOpenFileName from changing the current directory while the dialog is shown?
GetOpenFileName (for questionable reasons) changes the current directory of an application while the dialog is shown. This can be reset on dialog closure by specifying OFN_NOCHANGEDIR as dialog initialization flag:
OFN_NOCHANGEDIR Restores the…

Vinz
- 3,030
- 4
- 31
- 52
1
vote
2 answers
Can't close OPENFILENAME
I use OPENFILENAME and the function GetOpenFileName() to get a file location through the windows file browser.
The problem is when I want to delete the chosen folder (when the program running and I need to do this) windows show an error: "The action…

Carl
- 47
- 7
1
vote
2 answers
GetOpenFileName open at default directory 'Computer' possible?
I'm using GetOpenFileName to open files in C++, is it possible to set the initial dir at "Computer" virtual location with lpstrInitialDir?
Thanks,
Lee.

user3725395
- 145
- 2
- 13
1
vote
0 answers
QFileDialog.getOpenFileName truncation on linux
For a file located /home/rrg29876/villy/air.out, all is well when I run the following code in Windows:
#Open a FileDialog to pull in supported data
formats = ("R Output Files (*.out);;"
"Rc Output Files (*.out);;"
"A Average…

Ryan Grove
- 11
- 2
1
vote
1 answer
GetOpenFileName. How can I programatically enable and disable the "up one level" button?
Using the GetOpenFileName dialog. Using OFN_EXPLORER and specifying a hook (so am getting the XP style dialog). I can hide/show and enable/disable many of the controls on the dialog, but not the "up one level" (parent directory) button?
From…

Steve
- 1,065
- 15
- 34
1
vote
1 answer
shell32.dll: access violation during GetOpenFileName new thread
GetOpenFileName fails with access violation. File must be on DESKTOP and have long name.
Problem occurs only after first successful open of the file. Problem occurs when mouse cursor hovers over file as tool tip about to be displayed.
See the…

Mike D
- 2,753
- 8
- 44
- 77
1
vote
1 answer
Common Dialogs on Windows Server 2008 R2: crash in GetOpenFileName
We have a sizable application, written in C++, running on Windows Server 2003 and Windows Server 2008 R2. It uses the GetOpenFileName API to bring up the Open File dialog, for selecting a video file.
We're seeing that on Windows Server 2008 R2, we…

russilwvong
- 53
- 1
- 8
0
votes
1 answer
DialogBoxParam and GetOpenFileName
First of all, here's my config:
VS2010/Debug/C++ Win32 Project/Vista Home Premium
Invoking GetOpenFileName via a button (CreateWindow) in a window (CreateWindow) gets me no problem: The Open Dialog works fine, I can click, navigate to another…

Nestor
- 15
- 1
- 4
0
votes
0 answers
I have a form with action to open multiplefiles. Upon clicking the action and canceling from Open file popup is there a way to reset?
I have a form with action to open multiplefiles. Upon clicking the action and canceling from Open file popup is there a way reset the action and just show the form without executing the module b
Private Sub btnImport_Click()
Call moduleA
Call…

Subiksha Sekar
- 1
- 1