Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • How to temporarily empty a QMediaPlayer object?

    Unsolved
    3
    0 Votes
    3 Posts
    676 Views
    D
    Thanks @jsulm for pointing me in the right direction. This is what worked for me: emptyPlaylist = QMediaPlaylist() window.mediaPlayer.setPlaylist(emptyPlaylist)
  • Popup a component in qml

    Unsolved
    1
    0 Votes
    1 Posts
    156 Views
    No one has replied
  • how to load an STL file using QMesh

    Solved
    6
    0 Votes
    6 Posts
    10k Views
    JoseAndresGTJ
    Do you know how I can get the QVector3D from the "Entity"? I want to set the camera position (camera-> setPosition) with a dynamic QVector3D using the geometry of the scene entity
  • Replace QTreeView::branch using pixmap ?

    Unsolved qpixmap qtreeview qpainter
    12
    0 Votes
    12 Posts
    2k Views
    SGaistS
    Then maybe QTreeView::drawBranches is what you are looking for.
  • QSqlTableModel and UI

    Solved
    5
    0 Votes
    5 Posts
    407 Views
    VRoninV
    @Mark81 said in QSqlTableModel and UI: usually a blank row at the end allows to add a new record without using an external button @VRonin said in QSqlTableModel and UI: Check InsertProxyModel of this library if it's what you had in mind. @Mark81 said in QSqlTableModel and UI: it would be enough a QToolButton X on the vertical header This is nothing I've evere seen as a "standard" so yeah, you have to implement it yourself but it should be straightforward
  • QODBC not available Qt 11.1

    Solved
    9
    0 Votes
    9 Posts
    597 Views
    M
    ok it is working !! Thanks a lot !! I didn't figure out the qmake choice so i'm trying to explain it here for beginner : (it is quite easy and obvious when you know it but it didn't) When you follow this code : It says that you have to execute just those 3 lines : cd $QTDIR/qtbase/src/plugins/sqldrivers qmake -- ODBC_PREFIX=/usr/local/unixODBC make sub-odbc First to have access to cd $QTDIR/qtbase/src/plugins/sqldrivers you need to get the sources from Qt Maintenance Tool. Then the qmake (where I had a lot of problems) : As @jsulm and @Christian-Ehrlicher tried to explained me you have to choose the right one. For me I had to execute this line because I was trying to compile for Qt11 : $ /home/martin/Qt/5.11.1/gcc_64/bin/qmake -- ODBC_PREFIX=/usr/local/unixODBC Then execute : make sub-odbc If you have an error : ../../../sql/drivers/mysql/qsql_mysql.cpp:36:40: fatal error: QtSql/private/qsqldriver_p.h: No such file or directory #include <QtSql/private/qsqldriver_p.h> you need to install qtbase5-private-dev sudo apt-get install qtbase5-private-dev
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    9 Views
  • Qt OPC UA plugin

    Unsolved
    2
    0 Votes
    2 Posts
    390 Views
    aha_1980A
    @beecksche Have you run your app with the environment variable QT_DEBUG_PLUGINS set? That will print additional messages and could indicate what goes wrong. Regards
  • Mouse event propagation in QGraphicsScene

    Unsolved
    2
    0 Votes
    2 Posts
    448 Views
    A
    Where is the left button clicked before you move the mouse? Inside or outside the scene? In some cases, when you left click and hold while on an item or widget, that item or widget will grab the mouse, so it can track mouse moves even as they leave that respective item. In general, mouse events are first delivered to the QGraphicsView (on QWidget level), then forwareded to the QGraphicsScene, then translated into QGraphics*-Event types, and then delivered to the correct items. So you could try catching the events on Scene or View level. You could also look for MouseMove events instead of Hover
  • Relative path to save file

    Solved
    8
    0 Votes
    8 Posts
    3k Views
    R
    thanks a lot, @LeLev , @JonB and @mrjj
  • Qt3d light translation

    Unsolved
    1
    0 Votes
    1 Posts
    145 Views
    No one has replied
  • LGPL and Qt Meta-Object Compiler outputs

    Solved license lgpl gpl moc
    3
    0 Votes
    3 Posts
    1k Views
    S
    @SGaist Hi, Thank you for your reply. I understand your point, so I set this topic solved. I just realized that C:\Qt\Licenses\LISENSE do not include the GPL v3 exception stated above. Hence, the argument above does not hold.
  • how to automatically update GUI status

    Solved
    27
    0 Votes
    27 Posts
    5k Views
    MijazM
    @Pablo-J-Rogina Ok sure I will aske every question as a new question.
  • QSqlQuery Insert multiple rows (MySQL)

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    Christian EhrlicherC
    See https://doc.qt.io/qt-5/qsqlquery.html#execBatch - don't know if the driver supports it. But using a transaction + a simple loop will do the same. It will be a little bit slower I would guess but as long as you don't insert thousands of rows it's not measurable.
  • No protocol specified

    Unsolved
    4
    0 Votes
    4 Posts
    739 Views
    taku-sT
    Thank you, everyone. As you said, it may not be a Qt issue. The Debian 10 I use seems to have changed from Xorg to Wayland, so this is the problem? I will try the startup method from the user.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • accepting dialog before/after a mass update

    Solved
    21
    0 Votes
    21 Posts
    2k Views
    JonBJ
    @SGaist I totally agree, and that's what we have said to OP. However, if his "binding" really just does not allow that.... Anyway, I think we have said what we can.
  • How to paint to pixmap ?

    Moved Unsolved qpainter qwidget
    12
    0 Votes
    12 Posts
    9k Views
    mrjjM
    @SGaist Ok that sounds a bit bad like - "delete while in use" situation. So it seems plausible it could crash from that in some cases.
  • Qt 5.13 gives clangbackend error when statup?

    Unsolved
    12
    0 Votes
    12 Posts
    6k Views
    mrjjM
    @aha_1980 thank you ! Its an important difference as not to shoot the wrong one :)