Questions tagged [getopenfilename]

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.

96 questions
0
votes
1 answer

QT QFileDialog how to hide hidden/backup folders (".folder")

Basically when browsing folders inside a QFileDialog I find very annoying to have everything bloated with hidden or backup folders (don't know how to call them really); specially on home. Is there a way to prevent these type of folders from showing…
Alberto Toglia
  • 381
  • 1
  • 5
  • 17
0
votes
2 answers

Write a VLOOKUP as a string in a cell with dynamic path retrieved through GetoOpenfilename

I am trying to write a VLOOKUP in a cell as a string, with VBA. This means that I do not want the result to appear in the cell as a value, but I want the whole VLOOKUP expression instead (For this example : "VLOOKUP(C6,'[path_to_file.xlsm]OTD…
Vsamfh
  • 21
  • 3
0
votes
1 answer

Copy data from a selected excel file

I am trying to construct a macro that when run will allow me to select a given file and check the data in Column C of that selected file. I am very new to VBA and have only rudimentary skills. I have all the parts of my code working except for the…
TomOpp
  • 3
  • 1
  • 3
0
votes
1 answer

GetSaveFileName fails with CDERR_FINDRESFAILURE

I've written a TOpenPictDialog (source code see below) component, which finally fails under certain circumstands when calling Result := TDialogFunc(DialogFunc)(DialogData); in Dialogs.pas. As DialogFunc correctly points to GetOpenFileName I…
0
votes
1 answer

Get open filename is killing ifstream

I have a problem with GetOpenFileName. Before calling GetOpenFileName method WriteData is working. WriteData have a simple file check procedure: ifstream inFile(FileName.c_str()); if (!inFile.is_open()) return false; ofn dump: And after calling…
Dmitry K.
  • 3,065
  • 2
  • 21
  • 32
0
votes
2 answers

How to send file with file name by use wifidirect?

I use wifidirect to send file,but I can't get the file name(include .jpg or .mp3),and sent it,it always null. i'm using wifidirect demo provided Android Developers I use File f = new File(uri.getPath()); fileName = f.getName(); and final…
林峻瀚
  • 3
  • 1
0
votes
1 answer

Open a file without getOpenFileName?

is there a way to open files without using QFileDialog.getOpenFileName parameter? The thing is, I have a some buttons that upon clicking them, a notepad will pop up in which you can type anything into the notepad. Then, you can save whatever you…
user1871869
  • 3,317
  • 13
  • 56
  • 106
0
votes
2 answers

Excel VBA: Use getOpenFilename to open folder AND files

I want to use this routine Application.GetOpenFilename to open either a *.txt file OR a whole folder. Is this somehow possible? E.g. if no file/folder is selected, the parent's folder path is returned, otherwise the selected filename? Example:…
vince_h
  • 1
  • 1
  • 1
  • 3
0
votes
2 answers

QFileDialog::getOpenFileName in console application

This is a question first posted on qtforum.org where I've got no answer: I have trouble hiding the Open dialog in a console application after it has been used. Here is the content of main.cc file used to test this behaviour: #include…
Nicu Tofan
  • 1,052
  • 14
  • 34
0
votes
2 answers

How to show an openfile dialog on windows?

I'm trying to get an openfile dialog to show up on windows CE 6.0 according to msdn it's the same process as in win32, but it doesn't work. I submit for review the interresting part of the code : #include #include #include…
amirouche
  • 7,682
  • 6
  • 40
  • 94
0
votes
1 answer

How does one write an HTML-like filename field in Tkinter?

I'm making an auto-generated Tkinter GUI (like an HTML form), and I'm trying to make a filename field like the one HTML uses. Here is my code: e = ttk.Entry(master) e.grid(row=ROW, column=1) b = ttk.Button(master, text="...") b.grid(row=ROW,…
MiJyn
  • 5,327
  • 4
  • 37
  • 64
-1
votes
1 answer

VBA - Copying from A2:AA2 in multiple excel sheets to be pasted in one sheet, or to be pasted below current sheet

I have the below code that works perfectly for opening a file, selecting 1 file and it automatically copies from A2:AA2 and pastes under my master sheet of data (below my current data). I am looking to add a feature where I can select multiple…
-1
votes
1 answer

Nothing shows when I tried to fill Combobox with .csv filenames

I failed to fill combobox with csv filenames. I created the combobox by dragging from toolbox in Microsoft Visual Studio. I set the name of combobox to ChooseSampleSheet. The following is my code: private void…
Ying Du
  • 11
  • 4
-1
votes
2 answers

VBA Prompting "Open" dialog box and choosing directory to import import from

i have this VBA-code i need some help with. The purpose of it is to generate a word-report based on parameters from an excel-document, thus far everything is fine. The problem is i want to distribute the same templates to colleagues without them…
-1
votes
1 answer

How to get a WAV file duration in C?

I'm writing a WAV Player in C with SIGIL API and windows.h library, I'm using GetOpenFileName from the windows.h library to open the file, and I need a way to the program "read" the duration of the WAV file, there is some function to do so?
Guilherme Poleto
  • 327
  • 1
  • 2
  • 13