Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • How Can I Pass an argument value to an external program In Qt

    Unsolved
    4
    0 Votes
    4 Posts
    815 Views
    jsulmJ
    @seokwon QProcess documentation (http://doc.qt.io/qt-5/qprocess.html) shows how to do this. Did you read it?
  • Sqlite User Define Functions

    Solved sqlite sqlite3 udf custom function
    6
    0 Votes
    6 Posts
    5k Views
    DongD
    @therj It's may be too late but... better than not. I found the problem is sqlite version i'm using is not match with the version Qt used in the core of Qt Framework. So, I'm check the compatible of sqlite.h (3rd party) with Qt Sqlite driver to make sure it is the same version like this: //Qt QSqlDatabase driver for Sqlite query = db.PrepareQuery("SELECT sqlite_version()"); //Vs 3rd Party driver (included sqlite.h) qDebug() << "sqlite3_libversion() =" << sqlite3_libversion(); there are few note to remember: Cannot create SQLite custom functions when db object is not open. Need to call sqlite3_initialize() before call sqlite3_create_function() If you have more questions, contact me via facebook Lã Đại Đồng. :)
  • FlowLayout uses too much height

    Unsolved flow mingw32 desktop
    1
    0 Votes
    1 Posts
    697 Views
    No one has replied
  • Hide close button of a tab in QTabWidget

    Solved
    3
    0 Votes
    3 Posts
    5k Views
    M
    @Paul-Colby said in Hide close button of a tab in QTabWidget: tabBar->tabButton(0, QTabBar::RightSide)->deleteLater(); tabBar->setTabButton(0, QTabBar::RightSide, 0); That is amazing, thank you very much.
  • How QPushButton checked show only border-bottom ?

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    sonichyS
    border:none and border-bottom must both have, so strange ! And use QTabWidget instead of QButtonGroup is much more better here.
  • Custom fonts are not displayed properly on MacOS

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    VRoninV
    https://github.com/benlau/fontawesome.pri
  • Hi Is there any signal when we select a file in QFileDialog.

    Moved Unsolved
    4
    0 Votes
    4 Posts
    730 Views
    JonBJ
    @seetharam Is the file local? You might be looking for http://doc.qt.io/qt-5/qfiledialog.html#fileSelected signal, depending on just what you want.
  • Appending QStringList crashes

    Solved
    17
    0 Votes
    17 Posts
    3k Views
    H
    I see now QStringList declared in the header file makes a tonne more sense and works better than QStringList*. Thinking about it QStringList and arrays and things come with their own addresses anyway. Thank you guys
  • Reducing delay when reading from database

    Unsolved sqlite database delay
    7
    0 Votes
    7 Posts
    3k Views
    JonBJ
    @Ankit.Jain said in Reducing delay when reading from database: Running the same query in SQLiteStudio, the query takes similar time (2 to 2.5 secs), but I keep getting a status of "[09:09:49] Query finished in 0.006 second(s).". Because of this, I am not sure how this is calculated though. If it takes similar time in SQLiteStudio, it's not surprising it takes similar from Qt. I do not have rights for asking changes in the database. But just out of curiosity, how do you add an index to a column? I have never used SQLite. But CREATE INDEX in SQL creates an index. No idea whether SQLite will or will not take advantage of such an index if it exists, though...
  • Stylesheet: using background image for floating DockWidgets

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    H
    @Megamouse I think QDockWidget::topLevelChanged() is not emitted when setting Floating property using QDockWidget::setFloating() method. As per the documentation, it should. Is anybody else getting this problem?
  • How to Login to my FTP Account

    Solved
    26
    0 Votes
    26 Posts
    8k Views
    R
    @jsulm said in How to Login to my FTP Account: you're connected and then click connected again? Afterwards disconnect doesn't work? yes @jsulm said in How to Login to my FTP Account: Does disconnect work if you don't click connect when already connected? yes @jsulm said in How to Login to my FTP Account: You should disable the connect button if already connected and enable it when disconnected. OK
  • Help understanding Qt versions, documentation and tools

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    jsulmJ
    @LeeC3 You don't need an account, there is a Skip button in the installer to not to have to login...
  • QTCreator and Ubuntu(16.04 LST)

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    jsulmJ
    @Unielli I'm not sure why you're building QtCreator by yourself. You can use any Qt version (ans as many as you need) with any QtCreator version. Means: if you want to use Qt5.9 you don't have to build QtCreator with Qt5.9 as it doesn't matter which Qt version QtCreator itself uses.
  • tableview is not update ?

    Unsolved
    3
    0 Votes
    3 Posts
    545 Views
    SGaistS
    Hi, If you want to do sorting on your views, you should rather consider QSortFilterProxyModel or implement your own QAbstractProxyModel.
  • Mouse not able to interact with GUI application

    Unsolved
    6
    0 Votes
    6 Posts
    949 Views
    jsulmJ
    @TheFlyingMooseMan Are you doing anything with mouse events?
  • QSqlDatabase: QMYSQL driver not loaded. Why?

    10
    0 Votes
    10 Posts
    14k Views
    Hasan VaezH
    @Sir.Costy For me worked by copying libmysql.dll from MYSQL folder to [QTDIR]/mingw482_32/bin/ folder. Thanks male!
  • [SOLVED] Error with my code or Qt or Windows?

    6
    0 Votes
    6 Posts
    14k Views
    mr ZXM
    @ambershark :D
  • Mouse interaction issues after adding items into the QGraphicsScene

    Unsolved
    9
    0 Votes
    9 Posts
    1k Views
    M
    @kenchan Thank you for the explanation. I will try to do the subclass and see how it goes. Now I'm having some hope. Hope it doesn't get crushed. :) Thanks again! -Michelle
  • Escape in QDialog works only in modal mode?

    Solved
    2
    0 Votes
    2 Posts
    470 Views
    Aleksey_KA
    Changed dialog->show(); call to // Shows the dialog as a modal dialog, blocking until the user closes it. dialog->exec(); Works fine for now. Seems the only way to catch event in the dialog, non-modal does not allow this or use key event filter as mentioned in another answer: https://stackoverflow.com/a/49072065/630169
  • 0 Votes
    4 Posts
    2k Views
    kshegunovK
    As long as you stick to pointer-to-member connects it should be possible. Depends on what you intend to do exactly. However I can count on my fingers the number of times that virtual multiple inheritance (i.e. the diamond) is really warranted, usually it is a sign of a bad design.