question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to get value for PlainTextEdit?

See original GitHub issue
export interface QLineEditSignals extends QWidgetSignals {
    // omit rest
    textChanged: (text: string) => void;
}

I can get his value by textChanged

but:

export interface QPlainTextEditSignals extends QAbstractScrollAreaSignals {
    textChanged: () => void;
    blockCountChanged: (blockCount: number) => void;
    copyAvailable: (yes: boolean) => void;
    cursorPositionChanged: () => void;
    modificationChanged: (changed: boolean) => void;
    redoAvailable: (available: boolean) => void;
    selectionChanged: () => void;
    undoAvailable: (available: boolean) => void;
}

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
a7ulcommented, Apr 6, 2020

Yes, this is because

 const clickHandler = useEventHandler(
    {
      clicked: () => console.log("Clicked", phone),
    },
    []
  );

You need to specify phone as a dependency just like how you will do with useCallback or useMemo or useEffect @Sparkenstein

 const clickHandler = useEventHandler(
    {
      clicked: () => console.log("Clicked", phone),
    },
    [phone]
  );
1reaction
a7ulcommented, Apr 6, 2020

And for the size reduction. Try adding an style of width: '100%' to the outside view

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get text from qtextedit and assign it to a variable - Stack Overflow
When I try to get the text from the qtextedit created with PyQt5 Designer I get an error or "Python stop working" and...
Read more >
Thread: read text from QPlainTextEdit - Qt Centre Forum
Hi, Im new in Qt and im trying to get the text of a QPlainTextEdit. How can I do this? If it not...
Read more >
QPlainTextEdit — Qt for Python - Qt Documentation
This property holds whether the text edit is read-only. In a read-only text edit the user can only navigate through the text and...
Read more >
QPlainTextEdit Example In PyQt5 - YouTube
Join My PyQt6 13 Hours Course in Udemyhttps://www.udemy.com/course/python-gui-development-with-pyqt6/?
Read more >
PyQt QTextEdit example - Learn Python PyQt
The QTextEdit class is a multi-line text box control that displays multiple lines of text, with multiple vertical ... A textbox can be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found