First time here? Check out the FAQ!
2

"Open in External Viewer"

Is it possible to configure the mouses (double-)click event so, that it can favour an external viewer? I have some .ui files in my project, and while I can open these - once in the context menu - with the keyboard shortcut in Qt Designer, I would prefer to do so immediately (and even better reuse an already opened designer, but this is optional).

Michael's avatar
171
Michael
asked 2019-09-04 07:11:56 -0500
Wingware Support's avatar
4.1k
Wingware Support
updated 2019-09-04 07:56:26 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

There's no way to do this now. The only option is to bind the command open-ext-selected-from-project to a key binding using the User Interface > Keyboard > Custom Key Bindings preference and then use that. Or add a toolbar item for this command (right-click on the toolbar to configure it).

You can set the command line to use for opening something externally by mime type from the Files > External Display > File Display Commands preference, which may allow you to set things up to reuse an existing designer if the command line they provide supports that. The mime type is what Python's mimetypes module guesses for the extension:

  import mimetypes
  print(mimetypes.guess_type('x.png'))

Or perhaps easier is to use a mime type of * in the preference and write an opener script that does the right thing based on what the file is.

Wingware Support's avatar
4.1k
Wingware Support
answered 2019-09-04 12:21:13 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer