Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.1k Topics 454.7k Posts
QtWS25 Last Chance
  • aboutQt in Qt4.8 web links don't work anymore

    Solved
    3
    0 Votes
    3 Posts
    184 Views
    O
    Thank you very much for the quick answer. I was afraid of that.
  • Wrong kit for Qt 6.0.0 MSVC2019 64bit

    Solved qt6 msvc2019 kits kit setup windows
    13
    0 Votes
    13 Posts
    3k Views
    G
    https://bugreports.qt.io/browse/QTBUG-87735 bug fixed) Fix Version/s: 6.0.0 RC
  • database error

    Solved
    12
    0 Votes
    12 Posts
    1k Views
    JonBJ
    @fkaraokur I am lost as to where you are at now. Do you have some path working where it picks up an existing database as you desire, or is it still not finding any database and is creating a new one each time? If you are saying it is working for you by putting the database into some directory like build-BIST-Desktop_Qt_5_15_1_MinGW_64_bit-Debug, you really should read what we have all said above. This is just not the right place to put a database file. For example, it won't work once you compile for Release, it won't exist if anybody but you runs the program, and if you did distribute your application read/writing a database in the same directory as the executable will at best be a bad idea and at worst be forbidden.
  • SQL data extraction error

    Unsolved
    2
    0 Votes
    2 Posts
    147 Views
    Christian EhrlicherC
    You have to call QSqlQuery::next() as explained in the documentation.
  • How to elided text of all comboBox items?

    Unsolved
    4
    0 Votes
    4 Posts
    730 Views
    B
    Item delegates only works on item views, in your case, the popup view of the combo box. If you want to change the painting of combo box's current text, then it must be done in paintEvent() of the combo box. If you are talking about the items in the popup view, then I don't understand because they should be elided by default. (If you use your own item view, check QAbstractItemView::textElideMode.)
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • Creating derived class based on QTcpServer

    Solved
    3
    0 Votes
    3 Posts
    239 Views
    SPlattenS
    @SGaist Thank you
  • QT class, which cut texts

    Solved
    4
    0 Votes
    4 Posts
    319 Views
    T
    @VRonin @JonB Thank you :)
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • A lot of Warnings ONLY on MingW compiler

    Unsolved
    6
    0 Votes
    6 Posts
    625 Views
    Christian EhrlicherC
    Simply add '-Wno-attributes' to your compiler flags.
  • Is it possible to prevent hide popup in QComboBox?

    Unsolved
    2
    0 Votes
    2 Posts
    311 Views
    mrjjM
    Hi Try overwrite https://doc.qt.io/qt-5/qcombobox.html#hidePopup and see if that makes it controllable.
  • QElapsed does not work in a separate thread

    Solved
    6
    0 Votes
    6 Posts
    544 Views
    O
    @fcarney I'm using a lot of QElapsedTimer objects into a lot of threads without any problem.
  • 0 Votes
    2 Posts
    12k Views
    F
    I found the solution... Only on Linux, the static library that will be linked to my shared library MUST be recompiled using -fPIC flag. I don't understand why...but only works in this way....
  • Questions about models, items and views

    Solved
    5
    0 Votes
    5 Posts
    316 Views
    PerdrixP
    OK! That will get the job done! Thanks - it's not knowing the idioms that always catches you out.
  • How to properly close QThread

    Unsolved
    2
    0 Votes
    2 Posts
    147 Views
    SGaistS
    Hi and welcome to devnet, @JuliusCaesar said in How to properly close QThread: StartPlayFile You call exec in that method and you connect your signal after calling StartPlayFile.
  • Most stable version of Qt

    Solved
    3
    0 Votes
    3 Posts
    316 Views
    K
    Thanks__
  • Console settings

    Unsolved
    12
    0 Votes
    12 Posts
    3k Views
    R
    @Pl45m4 Windows 10, Qt Creator 4.13.2 (Community)(Basing on 5.15.1 MSVC 2019), Qt 5.15.1, tried different compilers but usually MSVC 2019 64-bit
  • Subclassing QIODevice

    Unsolved
    15
    0 Votes
    15 Posts
    1k Views
    P
    @Christian-Ehrlicher said in Subclassing QIODevice: if (port1.setBaudRate(9600)) <<-- here you try access even if open failed I fixed this, but problem stays... Source code from topic header was updated to. [image: image.png] Why did it call QIODevice::isSequential but not my own implementation?
  • QPushbutton

    Unsolved
    10
    0 Votes
    10 Posts
    738 Views
    J.HilkJ
    I answered this previously, with an examlple for QFrame as base class here: https://forum.qt.io/topic/96728/change-button-color/3 You should be able to adjust it for QPushButton.
  • QStyledItemDelegate

    Unsolved qstyleditemdele click edit
    5
    0 Votes
    5 Posts
    529 Views
    JonBJ
    @charry Yes, you are normally supposed to double-click to edit a cell (one click to select the cell, double-click to edit the cell). If you want single-click to edit, you should look at, say, QTableView::setEditTriggers(QAbstractItemView::AllEditTriggers). See if one of those values do what you want? If not, have a read through e.g. https://stackoverflow.com/questions/18831242/qt-start-editing-of-cell-after-one-click, there are other possibilities there. Or further hits via Google qtableview click edit.