Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Real time data

    Unsolved
    7
    0 Votes
    7 Posts
    740 Views
    C
    @satyanarayana143 said in Real time data: to update in database it is taking time What database?
  • Can't build an existing project in qt creator ros

    Unsolved
    2
    0 Votes
    2 Posts
    319 Views
    SGaistS
    Hi and welcome to devnet, This is something you should check with the ROS community as they have built the integration. From your error message, it seems that your environment has not been set correctly since the cmake find file is not found.
  • Plotting histogram using barcharts

    Unsolved
    2
    0 Votes
    2 Posts
    441 Views
    A.A.SEZENA
    To sum it up briefly... Think of each data as a bar. As many bars as the number of data... You must add these bars to the barseries. Complete with other (axis...) chart requirements .
  • QTreeView with QFileSystemModel not sorting

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    W
    Coincidentally, I had the same problem as you before. Define that: m_model is the object of class QFileSystemModel, and m_rootpath is the root path of your filetree. In the constructor function of QTreeView, there should be the following code: m_model->setRootPath(m_rootpath); setModel(m_model); setRootIndex(m_model->index(m_rootpath)); Add the following code where you have done the file operation. m_model->setRootPath(""); m_model->setRootPath(m_rootpath); The method WORKS in my project !
  • 0 Votes
    9 Posts
    510 Views
    KamigiK
    You really are the best !!! many thanks error disappear ! here is the code for the destructor as you suggested : query::~query() { this->closeDb(QSqlDatabase::database(_dbConnectionName)); QSqlDatabase::removeDatabase(_dbConnectionName); } I guess topic is closed !!! , i update the first post with answer and mark it as solved !!! Many thanks once again!
  • How to publish Qt desktop software on snap store?

    Unsolved
    5
    0 Votes
    5 Posts
    545 Views
    JonBJ
    @HeerokNewbie Nor do I, I was just suggesting you use that to achieve your objective.
  • Image not displaying qt6 c++

    Solved
    9
    0 Votes
    9 Posts
    2k Views
    F
    I think you have to tell cmake to call the rcc compiler according to https://doc.qt.io/qt-6/resources.html you have to add set(CMAKE_AUTORCC ON)
  • Mac - Qt Dylib locations... ?

    Unsolved cmake mac linking dylib bundle
    6
    0 Votes
    6 Posts
    2k Views
    artwawA
    @Dariusz You should use macdeployqt for all things qt, possibly your custom solutions for your custom stuff (additional libs, etc).
  • Qt4 lambda slot

    Unsolved
    6
    0 Votes
    6 Posts
    968 Views
    JonBJ
    @SPlatten The standard page for this is New Signal Slot Syntax whose first sentence is This page was used to describe the new signal and slot syntax during its development. The feature is now released with Qt 5. fall into this obsolete trap. What "obsolete" do you mean? The new syntax was an addition at Qt5.
  • Use the push button as a check button and use the grouping function

    Unsolved
    5
    0 Votes
    5 Posts
    401 Views
    JonBJ
    @IknowQT said in Use the push button as a check button and use the grouping function: For example in C# you can group radio buttons so that only one is selected. Does qt provide the same functionality like this one? Yes QButtonGroup has that functionality. Note it says: QButtonGroup provides an abstract container into which button widgets can be placed. It does not provide a visual representation of this container (see QGroupBox for a container widget), but instead manages the states of each of the buttons in the group. So you still add your buttons onto whatever widgets like QGroupBox for visual layout, you also add the buttons onto the (non-visual) QButtonGroup for the behaviour (like exclusivity) you want.
  • How to download MaintenanceTool only?

    Unsolved
    3
    0 Votes
    3 Posts
    5k Views
    M
    Update: I copy the MaintenanceTool executable from another machine (which installed Qt 5.12.7) and it kind of works (warns about being older than 3.0.2, but can be solved by https://stackoverflow.com/a/50633806/9917000)
  • [Solved] Accessing UI components from another file

    18
    0 Votes
    18 Posts
    50k Views
    JonBJ
    @Savita-shinde Hello and welcome. @andry_gasy posted 10 years ago, so they are not going to be here now! I don't know what your issue is that this thread has not solved, but I suggest you open your own topic describing your question if you want to ask about it.
  • How to draw very many dots ?

    Solved
    3
    0 Votes
    3 Posts
    324 Views
    E
    @jsulm Thanks a lot ! At least I was able to give it shape.
  • I am not sure why my data is not displaying on to the plain text edit widget?

    Unsolved
    2
    0 Votes
    2 Posts
    194 Views
    Christian EhrlicherC
    And where do you call tcpreadData()?
  • How to use the QTermWidget?

    Unsolved
    3
    0 Votes
    3 Posts
    3k Views
    F
    Okay thank you. I sadly couldn't make it work. So i wrote my own terminal widget based on the suckless terminal.
  • I put a button in the list widget, but the position of the button is strange.

    Unsolved
    3
    0 Votes
    3 Posts
    329 Views
    SGaistS
    Hi, Why are you using a QListWidget if you want to show a column of QPushButton ? A QVBoxLayout is better suited for that. Beside that, setItemWidget is not meant for what you are trying to do.
  • porting from freeglut to qt

    Solved
    6
    0 Votes
    6 Posts
    546 Views
    L
    @SGaist Yes. I would like to preserve the fortran code as much as possible. I think I will close this and ask more specific questions in another thread. Thanks
  • How to "wrap " text widgets in debug ?

    Unsolved
    17
    0 Votes
    17 Posts
    1k Views
    A
    @mpergand Yes, decided against the whole idea "interleaving" debug trace with output. It actually came as a way to bypass QtDesigner "break layout" . Doing so I always come up with weird, unwanted layout. Now I do copy the original layout and can recover... Now I put output in one tab and debug TRACE in another. Then user can choose to observe the TRACE if he desires so. I still think the qDebug is a decent tool and needs for additional preprocessor macros is debatable.. Cheers
  • 0 Votes
    18 Posts
    1k Views
    A
    @mpergand thank you for your suggestion finally i managed to do what I wanted with Qdir and Qfile (changing the source code ) but as discussed previously it's not practical Your suggestion is not Bad, but as I mentioned it above My problem is different , I'll think about the team's proposals! thanks anyways
  • Problem with filter on a QSqlRelationalTableModel when non latin characters

    Unsolved
    8
    0 Votes
    8 Posts
    552 Views
    P
    @jsulm said in Problem with filter on a QSqlRelationalTableModel when non latin characters: @Panoss said in Problem with filter on a QSqlRelationalTableModel when non latin characters: I think it's the easiest way Adding "COLLATE NOCASE IN" to your select query is easier... The "COLLATE NOCASE IN" is giving me an error: 'Execution finished with errors. Result: near "ΙΝ": syntax error' So there is no "COLLATE NOCASE IN", only "COLLATE NOCASE". Which works correctly only for latin characters.