Ticket #2839 (closed patch: fixed)
Opened 6 years ago
Last modified 6 years ago
Enable virtual keyboard for ComboBox
| Reported by: | devel@… | Owned by: | paulh |
|---|---|---|---|
| Priority: | minor | Milestone: | unknown |
| Component: | mythtv | Version: | head |
| Severity: | medium | Keywords: | combo virtual keyboard |
| Cc: | Ticket locked: | no |
Description
Patch to allow use of VirtualKeyboard? with ComboBoxes?. In it's current state this patch pops up the keyboard correctly, but segfaults when entering characters. I cannot work out the correct way to send the keypresses to the combobox.
Attachments
Change History
Changed 6 years ago by devel@…
- Attachment combovirtualkeyboardpopup.diff added
comment:1 Changed 6 years ago by paulh
- Owner changed from ijr to paulh
- Status changed from new to assigned
The problem is that UIKeyboardType expects that either a QLineEdit or QTextEdit or a widget that inherits them is passed to it when SetEdit?() is called in VirtualKeyboard::switchLayout(). The way you have it at the moment you are passing a MythComboBox? which doesn't inherit any of the required edit widgets. It should be easy to fix though, you can get the QLineEdit an editable QComboBox is using by calling QComboBox::lineEdit(). I'll take a look at it.
comment:2 Changed 6 years ago by paulh
- Status changed from assigned to closed
- Resolution set to fixed

Enable virtual keyboard for editable combo