Results 1 to 3 of 3

Thread: Text editor questions

  1. #1
    Join Date
    Jan 2012
    Posts
    46
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    11

    Default Text editor questions

    Good morning --

    Got more of a "best practice" question than a technical one. I have a QSqlTableView that's displaying 2 columns of data. Due to size constraints of this part of my app, it's relatively small, holding only 3 lines of data. The use of the app needs to be able to enter hundreds of rows of data and has asked that I give him the chance to copy from a spreadsheet and paste the data instead of hand entering it, so I have created an "Edit" pushbutton that will display a dialog for that but I'm not sure if i should use a QPlainTextEdit widget or a QTextEdit one. The app is loaded with line edits, combo boxes, tableviews and such, but this is the first time I've needed to take data in in this fashion and not what the right approach should be and I can't seem to find any examples (ideally I'd like to enforce the format of the data but I'll cross that bridge later).

    Also, obviously I need to get the data into and out of my tableview.

    Opinions? Thanks!


    Kodi

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Text editor questions

    If you don't need to allow your users to enter (and display) richtext then go for the plain version.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2012
    Posts
    46
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    11

    Default Re: Text editor questions

    No, I don't need rich text and was going to use the plain text editor because pasting from Excel can cause weird results in other editors, so I didn't want to take a chance.


    Kodi

Similar Threads

  1. Text editor color scheme
    By kosasker in forum Qt Tools
    Replies: 4
    Last Post: 14th February 2011, 22:36
  2. Sintegrial Text Editor
    By ii-system in forum Qt-based Software
    Replies: 0
    Last Post: 13th April 2010, 23:56
  3. Text Editor
    By viglu in forum Newbie
    Replies: 6
    Last Post: 8th March 2010, 22:54
  4. How to Add Text to Editor in QTableView
    By klahey in forum Qt Programming
    Replies: 2
    Last Post: 2nd January 2010, 16:05
  5. Text editor in another application
    By ImQti in forum Qt Programming
    Replies: 4
    Last Post: 10th December 2009, 10:41

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.