Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Connecting problem <unresolved overloaded function type>

    Solved
    11
    0 Votes
    11 Posts
    2k Views
    JonBJ
    @hskoglund said in Connecting problem <unresolved overloaded function type>: the parentheses are optional Wow, really? I never knew that!
  • QScrollArea

    Unsolved
    10
    0 Votes
    10 Posts
    612 Views
    jsulmJ
    @nagatofujirama said in QScrollArea: the group box itself should stretch Then use layouts: https://doc.qt.io/qt-6/layout.html
  • This topic is deleted!

    Unsolved
    10
    0 Votes
    10 Posts
    50 Views
  • How to get full stacktree?

    Unsolved
    1
    0 Votes
    1 Posts
    124 Views
    No one has replied
  • make QPlainTextEdit ignore scrolling

    Solved
    10
    0 Votes
    10 Posts
    1k Views
    G
    I forgot to close this since I already fixed the issue even though it was a bit of a dirty fix. I just did: "connect(ui->plainTextLines->verticalScrollBar(), &QScrollBar::valueChanged, this, &MainWindow::handleLinesScroll);" and in the handleLinesScroll I just set the scroll bar to the value it was before. But it works flawlessly and I see no performance impact.
  • 0 Votes
    1 Posts
    305 Views
    No one has replied
  • Where should I put my fonts?

    Solved
    10
    0 Votes
    10 Posts
    530 Views
    C
    Embedding the fonts worked perfectly well. Thank you!
  • QTreeWidget-QTreeView::branch

    Unsolved
    2
    0 Votes
    2 Posts
    240 Views
    SGaistS
    Hi and welcome to devnet, Use the itemsExpandable property to disable it.
  • QTcpServer not listening on port

    Solved
    5
    0 Votes
    5 Posts
    521 Views
    D
    @SGaist Oh I see! Thank you, that was helpful. And you bring up a great point - I'll separate them into two applications. Thanks!
  • Could not build QClipboard base sample

    Unsolved
    9
    0 Votes
    9 Posts
    448 Views
    Pl45m4P
    @JacobNovitsky said in Could not build QClipboard base sample: it does nothing atm Like @SGaist mentioned, you somehow removed the @JacobNovitsky said in Could not build QClipboard base sample: return a.exec(); you had already in there before. This spins the Qt event loop. With the changes I made to your QLabel you should see at least the label on your screen.
  • QT Project refactoring / General questions about qt project structures

    Unsolved subdirs structure c++
    3
    0 Votes
    3 Posts
    532 Views
    SGaistS
    Hi and welcome to devnet, To your last question, yes you should move to CMake. There have been new features added in Qt 6 that will likely be of use for your project but that are only available through cmake. As for examples... maybe check some of the KDE's core projects. They already use CMake and some mix QML and C++.
  • QTableview row color vanishes when focus lost

    Solved
    3
    0 Votes
    3 Posts
    228 Views
    S
    @JonB thanks for your input :) I found the source of my problem. It's how I handle my data in the model. The data behind anotherModel->getLastEntryTS(clientId); changes whenever a client in the same tableview is selected. It basically only contains the selected client's data. So when the cursor is moved to a different row (another client), the old "green" row stays "green", because the view is not updated for that old row. But when the cursor moves back, the data for the "old" client isn't present anymore and therefore I can't read a correct timestamp from the model. Maybe my mistake helps someone else but I have my doubts^^
  • QAbstractItemModel and external data

    Unsolved
    2
    0 Votes
    2 Posts
    199 Views
    SGaistS
    Hi and welcome to devnet, Well owning or not depend on your use case. That said, in your case, it seems that the model will be a wrapper on top of your data. In that case, there's a need to implement the model functions to forward the manipulations to your data structure (for example new rows insertions, removal, drag and drop, etc). You should also add adequate APIs that allows external changes to the data structure to be propagate through the model (for example when some data is changed).
  • QSqlQuery execution resets transaction for no reason

    Solved
    5
    0 Votes
    5 Posts
    372 Views
    JonBJ
    @Seb-Tur TRUNCATE commits any existing transaction. DELETE FROM TABLE does not. I would expect ALTER TABLE auto_increment =1 to do same if it is a statement that alters a table's auto-increment column in your SQL. Any DDL-change-type statement is likely to do so.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • QModelIndex Error

    Solved
    13
    0 Votes
    13 Posts
    823 Views
    yy_pc_programmerY
    @Pl45m4 Yes, Qt was previously in Turkish. But right now I'm using it in English. I think there may be a mistake about the Region (such as Turkey, America, England), I don't know. Thank you
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Qt6.4.3, QNetworkInformation not working

    Solved
    7
    0 Votes
    7 Posts
    637 Views
    S
    @Christian-Ehrlicher Hi Could you please help me to solve the problem on embedded linux system? Here is the information for you: [image: 19f977dc-e8c8-4902-a8f5-956d860f677f.png] the plugin could be found but it couldn't be load by QNetworkInformation::loadBackendByName(QString("networkmanager")) or QNetworkInformation::loadDefaultBackend() Let me know if you want to get other information for you. System: Yocto Linux 5.15 with Qt 6.4.2
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • QSqlDatabase and power saving mode

    Solved
    6
    0 Votes
    6 Posts
    617 Views
    JonBJ
    @ChrisW67 said in QSqlDatabase and power saving mode: This is Microsoft SQL Server. I misread the OP's original MSSQL-Server as MySQL-Server!