Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. qlinedit

    Log in to post
    • All categories
    • M

      Unsolved How to create FloatingLabels in Qt...?
      General and Desktop • floatinglabel qlabel qlinedit • • mounipanditi

      1
      0
      Votes
      1
      Posts
      458
      Views

      No one has replied

    • cxam

      Solved TextChanged variable unreachable ?
      General and Desktop • qlinedit qlineedit variable qstring • • cxam

      3
      0
      Votes
      3
      Posts
      1131
      Views

      cxam

      @mrjj Thanks Mrjj :) it went perfect, you're awesome haha ;)

    • lancelotrose

      Unsolved How do I connect to an event of line edit completion/exit and catch it in a QTreeView?
      General and Desktop • qlinedit tableview line edit event qtreeview • • lancelotrose

      6
      0
      Votes
      6
      Posts
      2374
      Views

      SGaist

      Sounds pretty crazy...

    • G

      Solved QlineEdit in focus
      General and Desktop • qlinedit focus background colo • • gabor53

      8
      0
      Votes
      8
      Posts
      6310
      Views

      G

      Thank you.

    • H

      Solved Show numeric keypad in Android
      Mobile and Embedded • android qlinedit keypad keyboard qspinbox • • HPCTECH

      3
      0
      Votes
      3
      Posts
      2957
      Views

      SGaist

      Hi,

      Glad you found out and thanks for sharing !

      Just a quick note: there's no need to modify the title anymore to mark the thread as solved. You can use the "Topic Tool" button for that. That makes things cleaner :)

    • B

      Unsolved QLineEdit with inputmask 9999;0
      General and Desktop • qlinedit inputmask • • BluTiGeS

      4
      0
      Votes
      4
      Posts
      1270
      Views

      SGaist

      You're welcome !

      I'd also recommend using _ as placeholder char rather than 0, otherwise people will think there's a default PIN or maybe no protection at all.

    • B

      Unsolved QLineEdit using input mask with blank space replacement , cursor select replacement char
      General and Desktop • qlinedit inputmask • • BluTiGeS

      15
      0
      Votes
      15
      Posts
      7632
      Views

      B

      Thanks for your answer, but this also would not work for other line edits.
      In QT creator I cannot find the input mask setting for the QSpinBox, this would be helpful in a shared project, so everyone directly would see the input Mask like in the QlinEdit.

      But anyway you solution would be a workaorund but does not explain why this issue .
      The only explanation like you already mentioned is because of useage of backspace deletion.

    • S

      [solved] QTableView and QLineEdit
      General and Desktop • qtableview c++ qt5.4 qlinedit • • sigsevg

      2
      0
      Votes
      2
      Posts
      2000
      Views

      M

      HI and welcome to devnet,

      you can connect a slot to the QHeaderView::sectionResized() signal to be notified when a column is resized

      connect(tableView->horizontalHeader(), &QHeaderView::sectionResized, this, &MyWIdget::slotColumnResized);
    • L

      Text obtaining a QLineEdit
      General and Desktop • qt application desktop qlinedit gettext • • LuisEnrique

      2
      0
      Votes
      2
      Posts
      1015
      Views

      p3c0

      Hi @LuisEnrique,
      The Qt way to do it is using QString::number.

    • L

      Obtener Texto de QLineEdit
      Spanish • qt application desktop qlinedit spanish • • LuisEnrique

      3
      0
      Votes
      3
      Posts
      7161
      Views

      juanki

      Hola

      Como siempre digo, lo mejor que puedes hacer es acostumbrarte a consultar la documentación, en el caso de Qt es muy clara y completa.

      Para convertir el número tienes el método int toInt(bool * ok = 0, int base = 10) de la clase QString:
      http://doc.qt.io/qt-5/qstring.html#toInt

      En el QLineEdit puedes usar una máscara para asegurarte que solo se introducen números:
      http://doc.qt.io/qt-5/qlineedit.html#inputMask-prop

      Para acceder al contenido del QLineEdit el método a usar es text():
      http://doc.qt.io/qt-5/qlineedit.html#text-prop

      Un saludo

    • G

      OSX and QLineEdit height
      General and Desktop • osx qlinedit • • GraemeA

      1
      0
      Votes
      1
      Posts
      784
      Views

      No one has replied