Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QT 4.1 QlineEdit Rounded Corners & QVBoxLayout set margin for only top ?
Forum Updated to NodeBB v4.3 + New Features

QT 4.1 QlineEdit Rounded Corners & QVBoxLayout set margin for only top ?

Scheduled Pinned Locked Moved Mobile and Embedded
qt 4.1qlineeditqvboxlayout
4 Posts 2 Posters 1.6k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cranberries_
    wrote on 18 May 2015, 11:29 last edited by
    #1

    Hi,
    We use QT 4.1 numbered release for our project. There are two questions I would like to ask;
    1.I should change QLineEdit widget layout. I mean, I just want to make its corners rounded. When I search the way of this,
    google puts the solutions with stylesheet which is not available for Qt 4.1. Could you please provide a sloution in QT 4.1 to make the widgets corners rounded ?
    2. The second question is about layout. I just want to give the parameters of margins seperately for top, left, right.. I suppose,
    setContentsMargins is a way of solution. But it is again not available for Qt 4.1. Could you please help me about this problem ?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 18 May 2015, 11:37 last edited by
      #2

      Hi,

      Just to be sure, are you really using 4.1 ? That release is almost a decade old. You can try implementing your own style and draw the QLineEdit like you wish as for the margin, take a look at the latest Qt 4 version and take some inspiration from there. But all in all, you really should consider updating to at least 4.8.6 or 7 if not Qt 5

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cranberries_
        wrote on 18 May 2015, 12:52 last edited by
        #3

        @SGaist said:

        ake a look

        Hi,
        My project owners use Qt 4.1. As I said in the previous post, they use stylesheet. But it is not available for Qt 4.1. I could not understand you, about taking inspiration form latest Qt version. Could you please explain it in more detail ?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 19 May 2015, 23:23 last edited by
          #4

          AFAIK, stylesheets where introduced in Qt 4.2 so how can they use stylesheets if they use 4.1 ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          4/4

          19 May 2015, 23:23

          • Login

          • Login or register to search.
          4 out of 4
          • First post
            4/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved