-
-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to prevent text wrapping in QPlainTextEdit? #82
Comments
Hey @jameshibbard I have a pull request addressing your requirements here. This will be available in the next release. |
Thank you @master-atul! I really appreciate the quick response and look forward to the next release. There are two remaining things which I still need to implement in my app. I would have opened issues to ask about the best way of implementing them, but I'll mention them here, as maybe there's a chance that one or the other of them also makes the next release.
Once again, thanks for your help. When I'm done building this demo app, I'm intending to write a tutorial demonstrating how to make a password generator with NodeGUI. I'd love to help get the word out about this library! |
Also, if its not too much to ask, once you are done writing your app can you provide me a link to it so that I can mention it in the Readme or examples of this project. 😄 |
Absolutely. I can also provide you a link to the tutorial if that helps. |
Hi @jameshibbard the next release would be this weekend (probably saturday) |
v0.1.8 is out! 🎉 https://github.com/nodegui/nodegui/releases/tag/v0.1.8 |
Everything works like a charm. Thank you!! |
Awesome 😁😁 |
Here ya go: https://github.com/jameshibbard/nodegui-password-generator If there's anything about the code that could be improved, please let me know. |
Awesome!! Thanks @jameshibbard |
No worries. Will might take a couple of weeks, but I will a) definitely write this, and b) keep you posted 😄 |
Hey @master-atul, I got the tutorial done. You can find it here: https://hibbard.eu/node-gui/ Grateful for any feedback, esp. if anything can be improved. |
Thanks @jameshibbard. The blog is really nicely written and represents the project accurately. I have added the link on the README :) Cheers. |
Happy to help. Thanks for the link in the README :) |
I have a
QPlainTextEdit
on which I wish to display a random combination of letters, numbers and special characters (a password, basically).When the text is only letters and numbers, the output runs from left to right with no breaks (as one would expect). It only wraps when it hits the edge of the
QPlainTextEdit
.However, if the text contains certain special characters an undesired line break is inserted. E.g.:
Notice the line break after the
|
character.My question: is there any way to prevent this?
I would like the text containing the special characters to run from left to right and only wrap when the edge of the QPlainTextEdit is reached (like the example containing just letters and numbers).
I tried styling the
QPlainTextEdit
usingword-break: break-all
, but it didn't make a difference.Looking through the QT docs, I did find this: https://doc.qt.io/qt-5/qtextoption.html#WrapMode-enum
Is something like wrap mode available in NodeGUI?
The text was updated successfully, but these errors were encountered: