Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. cursor
    Log in to post

    • UNSOLVED mysql query does not take the dataset user inserted
      General and Desktop • python mysql python3 cursor • • lanas  

      4
      0
      Votes
      4
      Posts
      147
      Views

      @lanas Yes to all of that, by all means read that overview link. I didn't say that "will be hard to retrive data from data base if i did not work with qtsql classes". Using the Python SQL classes instead would be fine for retrieving data from the database. But when you want to display that data in your Qt UI, rows & columns from your SQL queries, that will require some coding to get the Python-SQL-fetched-data to the Qt UI widgets and back. Whereas if you use the Qt classes they fill Qt models directly, and those are what Qt QTableViews use to display (and even edit) data. In the simplest case, see if you can't use Qt's QSqlTableModel for attaching your data retrieval to the database. That will have the necessary SELECT/INSERT/UPDATE/DELETE automatically generated/issued for you for working on a SQL table in the database, without you having to write the SQL statements like you tried to in your question. And attaching a QTableView to the QSqlTableModel will display what you fetched without any code. And it can even allow you/the user to edit the data in the table and write ot back to the database for you.
    • UNSOLVED Get what is pressed inside QTextEdit
      General and Desktop • qtextedit cursor table • • publicusernameyo  

      1
      0
      Votes
      1
      Posts
      141
      Views

      No one has replied

    • SOLVED TreeView “cursor” without focus?
      General and Desktop • treeview focus cursor currentindex qabstractitemvi • • -DLF-  

      10
      0
      Votes
      10
      Posts
      1669
      Views

      Hi, It seems I can go with the solution I described. I don't need the tree view to be focused, so I just removed the “focus rect” (if that is the name Qt people know ;)) by setting the focus policy of the tree to Qt.NoFocus. I draw the “cursor” then myself by giving a different backlog in QAbstractItemModel::data. That makes anyway sense since the cursor position is part of my domain model. Thanks for help and inspiration! Dan
    • UNSOLVED Qt 5.8.0 OCI cursor support
      General and Desktop • driver cursor oci 5.8.0 • • PrimozFidersek  

      4
      0
      Votes
      4
      Posts
      949
      Views

      Hi, thank you for reply. Will try to reapply only changes as we did in the past in hope it will work. Will update this thread if manage to find something out.
    • Embedded Qt Mouse Pointer Not Showing Up
      Mobile and Embedded • embedded cursor qcursor • • iwichmann  

      1
      0
      Votes
      1
      Posts
      992
      Views

      No one has replied

    • UNSOLVED Dock Widget programmatically resizing problems
      General and Desktop • resize margins cursor dockwidget setgeometry • • eduardo_parra  

      2
      0
      Votes
      2
      Posts
      903
      Views

      @eduardo_parra said: but the cursor detect the margins What margins? Do you mean for something inside the docks?
    • SOLVED Change mouse cursor when hover on image in QTextEdit
      General and Desktop • qtextedit mouseevent cursor • • HenrikSt.  

      3
      0
      Votes
      3
      Posts
      1929
      Views

      Ok, thanks. This solved my problem
    • UNSOLVED Drawing a virtual mouse cursor
      General and Desktop • widgets mouse cursor mouse control • • kshegunov  

      2
      0
      Votes
      2
      Posts
      1280
      Views

      No one has replied

    • Mouse cursor doesn't move
      Mobile and Embedded • qt5 keyboard mouse cursor • • Halo_Hao  

      1
      0
      Votes
      1
      Posts
      655
      Views

      No one has replied

    • Display cursor on TextEdit box
      Mobile and Embedded • textedit cursor qt4.8.5 am335x • • vk41286  

      2
      0
      Votes
      2
      Posts
      1254
      Views

      Its something completely custom. It does not have package manager.
    • Mouse control with Qt and Myo Armband
      3rd Party Software • qt4 cursor mouse control myo armband • • sr22sa  

      4
      0
      Votes
      4
      Posts
      2077
      Views

      In that case, I'd recommend to take a look at KDAB's blog entry about Qt Input Method In Depth The followup article will be even more useful, but this one is already a good starting point.
    • Can't hide cursor on QTextBrowser
      General and Desktop • python cursor qtextbrowser • • JMorlet  

      3
      0
      Votes
      3
      Posts
      1983
      Views

      @SGaist Thank you !! It's ok now. I missed viewport...
    • Get the pixel coordinates of an image under the mouse cursor
      General and Desktop • cursor graphics scene • • kio.marv  

      1
      0
      Votes
      1
      Posts
      696
      Views

      No one has replied

    • Can't stop mousemoves from affecting cursor.
      General and Desktop • cursor mousemove eventfilt custom cursor • • GeorgePTVS  

      4
      0
      Votes
      4
      Posts
      1370
      Views

      Thanks. I can probably understand why Qt wouldn't want to allow the developer to block all (mouse) input, but docs are not clear about this issue.