Results 1 to 2 of 2

Thread: qtextedit with offset

  1. #1
    Join Date
    May 2010
    Posts
    9
    Qt products
    Platforms
    Windows

    Default qtextedit with offset

    Hi!
    How can i create a QTextEdit with some unremoveable offset? (please see the pic included). At the beginning of the browser should be some unremoveable label, and the cursor can't move left.
    Attached Images Attached Images

  2. #2
    Join Date
    Oct 2011
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qtextedit with offset

    For a QLineEdit you can use the stylesheet property
    Qt Code:
    1. QLineEdit lineEdit();
    2. lineEdit.setStyleSheet("padding-left: 20px");
    To copy to clipboard, switch view to plain text mode 

    But for an QTextEdit, y don't know, maybe with another stylesheet.

Similar Threads

  1. Timezone offset
    By pdoria in forum Qt Programming
    Replies: 5
    Last Post: 7th February 2014, 05:54
  2. edit controls offset in Qt 4.8.0 on Mac OS X
    By AndyBrice in forum Qt Programming
    Replies: 5
    Last Post: 12th April 2012, 22:39
  3. QwtPlot offset between Canvas and Scale
    By revellix in forum Qt Programming
    Replies: 2
    Last Post: 31st July 2011, 13:31
  4. LIMIT and OFFSET for QSqlRelationalTableModel
    By mkarakaplan in forum Newbie
    Replies: 8
    Last Post: 6th November 2007, 00:06
  5. QTableWidget, row offset
    By georgie in forum Qt Programming
    Replies: 2
    Last Post: 11th May 2006, 11:23

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.