Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.4k Posts
  • Get variable from a dialog to MainWindow

    Solved
    9
    0 Votes
    9 Posts
    646 Views
    S
    Ok, I will look into it. Thanks for the tip!
  • Base64 string to QPixmap

    Solved
    13
    0 Votes
    13 Posts
    2k Views
    C
    It works!! Thank you!! You saved my day :) QByteArray rawImage = QByteArray::fromBase64(base64); I think this was the main missing part...
  • Custom tooltip - Modify the shape( Arrow-Shaped in the bottom or on top)

    Solved
    6
    0 Votes
    6 Posts
    521 Views
    H
    @mpergand I actually found the exact code they use on VLC Media Player and it is Qt code. Downloaded the VLC source code Found the media position slider in input_slider.h/cpp in the directory: vlc-3.0.16\modules\gui\qt\util\input_slider.h/cpp and the tooltip class in the same directory with the name timetooltip.h/cpp
  • Qtableview to Qtablewidget

    Solved
    3
    0 Votes
    3 Posts
    258 Views
    JonBJ
    @n-2204 said in Qtableview to Qtablewidget: I have Qtableview (Qstandrditemmodel) : Then why do you want a QTableWidget at all? QTableWidget inherits QTableView, and supplies its own internal model to use. There is nothing you can do with a QTableWidget which you cannot do with a QTableView and your own model.
  • lambda capture syntax

    Solved
    7
    0 Votes
    7 Posts
    903 Views
    JonBJ
    @TheCipo76 And just so you know. The capture [=] means "capture all local variables, by value" ([&] would be the same but all by reference). In this case you only need i, so you could have written [i] here, or [i, j, ..] for individual ones. Just so you know if you want to use that or see it elsewhere in examples.
  • Layout alignment option doesn't actually align widget in QHBoxLayout

    Solved
    21
    0 Votes
    21 Posts
    6k Views
    D
    Thank you, your messages were really helpful! I now understand how these work a lot more.
  • Trying to call python functions from my GUI, compiler is out of heap space

    Unsolved
    17
    0 Votes
    17 Posts
    1k Views
    mrjjM
    @lfreeman6490 Hi What kind of errors ? make sure to read the docs as its a bit hysteric with the compilers https://pybind11.readthedocs.io/en/stable/basics.html The PyObject_CallObject API didnt work for you or why did you give it up so fast ?
  • qt swipe gesture

    Unsolved
    5
    0 Votes
    5 Posts
    497 Views
    I
    @mrjj yes right!
  • How to link a library .a or dll in my project, with cmake in Qt and windows

    Solved
    3
    0 Votes
    3 Posts
    10k Views
    lincolnL
    @JoeCFD Now I get this error. [image: 1d6286e8-d567-4855-8f7c-093396b97940.png] I take it back so I stay at the end and if it worked, thanks man. include_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib/include) unset(MYLIB CACHE) find_library(MYLIB NAMES libQXlsx.a PATHS ${CMAKE_CURRENT_SOURCE_DIR}/lib NO_SYSTEM_ENVIROMENT_PATH) target_link_libraries(untitled2 PRIVATE ${MYLIB})
  • QT Concurrent in VS2019

    Unsolved
    3
    0 Votes
    3 Posts
    269 Views
    A
    So how does that get added in VS2019? I have added the concurrent module in general -> Qt Modules but do i need to add/change anything in the qmake section? If so under what section do i need to make the changes? Thanks
  • Import data from txt file to QTableWidget in Qt

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    SGaistS
    Hi, @hael1902 said in Import data from txt file to QTableWidget in Qt: TableWidgetDisplay When is that method supposed to be called ?
  • Please a solution of this problem in Qt?

    Unsolved
    3
    0 Votes
    3 Posts
    215 Views
    K
    @SGaist thank you.
  • Can a Dock Widget set a View with a custom Model instead of a Widget?

    Unsolved
    3
    0 Votes
    3 Posts
    293 Views
    LoquatL
    @Christian-Ehrlicher oh so it does but in a very long chain of inheritance... I thought it derived only from QAbstractItemView but then I didn't realise the chain is QListView:QAbstractItemView:QAbstractScrollArea:QFrame:QWidget
  • Using Q_SIGNAL/Q_SLOT Dsiplays invalid Errors in QTCreator

    Solved
    11
    0 Votes
    11 Posts
    564 Views
    L
    Great! Thank you.
  • 0 Votes
    3 Posts
    964 Views
    S
    Hi, unfortunately not. I had to develop a wrapper to a python 3d library, i.e., mayavi, which provides very good and customizable antenna pattern representation. If you're familiar with python I suggest to move to that platform for this purpose.
  • Qt and SSMS Express

    Unsolved
    4
    0 Votes
    4 Posts
    304 Views
    mrjjM
    @SeyMohsenFls Hi Well you would create an Installer for your app and then bundle the SQL Express installer with that and make it install the DB system as part of your app's setup. https://www.hanselman.com/blog/download-sql-server-express Qt has an install maker but it has a hard learning curve IMHO I like this one https://jrsoftware.org/isinfo.php
  • How to kill a timer

    Solved
    12
    0 Votes
    12 Posts
    3k Views
    mrjjM
    @Driftwood Hi https://doc.qt.io/qt-5/qtimer.html#timerId
  • Unicode in the C++ code

    Solved
    7
    0 Votes
    7 Posts
    869 Views
    S
    @JKSH said in Unicode in the C++ code: Thanks. So I settled on using wchar_t and also QString::fromWCharArray() and that is able to post text properly: editbox->setText(stuff.........);
  • Set TextureData to a Texture2D or Texture3D in Qt3D

    Unsolved qt3d qml javascript
    2
    0 Votes
    2 Posts
    630 Views
    S
    It's been a long time since I used OpenGL. OpenGL version 1.1 to 2.1 handle power of 2 textures. I think it is with GL 3.0 that non pow-2 textures work. I think you have to explicitly create a GL 3.0 or above context. But I could be wrong. Also, try making a 256 x 256 or 256 x 512 or 512 x 512 texture.
  • Not trigger readyRead in another device (same LAN) when send multicast

    Solved
    6
    0 Votes
    6 Posts
    435 Views
    S
    @SGaist I found solution for it. I use share network from my PC to jetson nano device so it make different subset: 10.42.0.* and 192.168.1.* After plug both PC and jetson nano with same router, it worked Thanks for your support