Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [qlineedit]

QLineEdit is a component of the Qt library which is basically a text editor that has only one line, and which allows one to make inputting and editing of text. A related class is QTextEdit which allows multi-line, rich text editing.

qlineedit
2 votes
1 answer
58 views

Windows 11 integrated virtual keyboard not called when clicking on QSpinBox

I'm creating a Qt Widgets application and deploying it on Windows 11 tablet. Currently, when I click on a QLineEdit, the Windows 11 integrated virtual keyboard appears and I can edit the text. But, ...
user26304607's user avatar
0 votes
0 answers
12 views

QLineEdit adding extra '\' from text()

I'm entering a string in QLineEdit as: SIM VFB ALL\.DataProcCycle\.EmGenObjectList\.aObject\[.*\]\.Kinematic\.fDistX Then I'm reading the text and creating an INI file with QSettings. My code is as ...
Sayan Bera's user avatar
2 votes
1 answer
43 views

How can I create a QLineEdit in PyQt6 that displays truncated text similar to how an Excel cell displays truncated text?

I created a custom QLineEdit with a fixed size so that when the user types in text larger than the QLineEdit, the text gets truncated. When the user clicks out of the QLineEdit, the cursor jumps back ...
DigitalTemplar's user avatar
0 votes
0 answers
26 views

How to reverse a Validator filter? [duplicate]

I'm working with a ComboBox and depending on the current CMB item, a filter is applied to a lineedit. I can define the input of numbers only lineedit.setValidator(QDoubleValidator(0, 1000000, 2, ...
Aloísio Ângelo's user avatar
0 votes
0 answers
56 views

QLineEdit is not editable but I want it to be

I'm trying to make a node based interface, and I want to make a Value node with a QLineEdit to be editable and I want the user to be able to move the node, but It's not working. The node is displayed ...
maxoche's user avatar
0 votes
0 answers
35 views

Python Pyqt5: Why string storage in QLineedit is different to standard python input()?

I want to read strings from a USB tag reader, this strings contains ascii chars. When use input() works good: string=input("read: ") read: 0100630414610870103BD0291724060124011537241422840 ...
user23323110's user avatar
0 votes
0 answers
70 views

real-time text input issues in PyQt5 with Tamil99 keyboard layout

I am working on a PyQt5 application with three QLineEdit widgets and one QListWidget. The first QLineEdit is for English (US) input, the second uses the Tamil Phonetic input method, and the third uses ...
Bala's user avatar
  • 686
0 votes
0 answers
43 views

Pyside6: Get a signal from a QLineEdit in a QTableWidget cell

I have a QTableWidget with a column containing QLineEdit widgets. I want to get a signal from the QLineEdit such as textEdited, but I can't figure out how to connect to it. I can connect to a ...
Digilee's user avatar
  • 35
0 votes
1 answer
86 views

PyQt5 Block Comma in QlineEdit

#!/usr/bin/env python3 import sys from PyQt5.QtWidgets import QApplication, QMainWindow, QWidget, QLineEdit from PyQt5.QtWidgets import QPushButton, QVBoxLayout from PyQt5.QtGui import ...
jthornton's user avatar
0 votes
0 answers
33 views

How to pull text from QLineEdits created in for loop [duplicate]

I am creating multiple QLineEdits using PyQt6 in a for loop and I need to pull the text a user enters into each. The problem I am having is that the first QLineEdit does not update its text() or ...
zmangum17's user avatar
0 votes
1 answer
179 views

Running an IME with Qt Widget

I can't get an IME to work with a Qt Widget (the goal is to write Japanese characters with a western keyboard). I can't activate the IME in the taskbar when I launch a simple test software (a ...
Usaginomimi's user avatar
0 votes
1 answer
104 views

Display only the last character in a QLineEdit for a few seconds

QLineEdit offers 4 EchoMode states. When typing a password, QLineEdit::Password is suitable because it displays a circle (or something similar) instead of the typed characters. What I want to do is to ...
Pamputt's user avatar
  • 402
0 votes
1 answer
50 views

Pyside6 QLineEdit uknown empty char

I've got a strange behavior in Python/Pyside6 QLineEdit. Is there any ASCII char combination that QLineEdit.setText() will interpret as possible empty char ? Could not replicate on a second run (...
Algo Lith's user avatar
0 votes
0 answers
23 views

LineEdit doesn't show exception from another class, crashes when returning value

I have two modules; one is a frequency parser that should return a value in Hz otherwise through some exceptions depending on different mistakes in the user input. Here is the code (ModuleParse.py): ...
Rex's user avatar
  • 23
0 votes
1 answer
79 views

Is there an easier way to implement an edit box for floating point values in Qt?

Below is my current implementation of a numeric edit box with the following properties. Only allows the user to edit the value as governed by a QDoubleValidator with notation set to QDoubleValidator::...
jwezorek's user avatar
  • 9,289

15 30 50 per page
1
2 3 4 5
41