Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • 0 Votes
    3 Posts
    1k Views
    D
    Thanks for an answer, will check on the MVC Currently I am trying to go the way of loading the results of "locate ." in to a database, then adding extension FTS4 which should provide very fast full text searches http://www.sqlite.org/fts3.html And then limiting the results of the database search to 1000 items and adding only those in to QListWidget. This way it is relatively fast and responsive when working with 1 million items/files, as it eliminates stuttering of trying to ram thousands of results on the first three key strokes as a person starts to type. but I did not move further yet. If going this way, how to simulate that the list is huge and load next stuff on scroll or pagedown. I am thinking there I will gonna have some problems.
  • Making child windows/widgets appear when unminimizing a window.

    7
    0 Votes
    7 Posts
    2k Views
    C
    Yes. The spontanious flag wasn't set.
  • How to implement Drag&Drop files in Qt 5.4 QML application in OS X

    9
    0 Votes
    9 Posts
    2k Views
    SGaistS
    Right, forgot about that one...
  • QDoubleSpinBox: valueChanged only by the user

    6
    0 Votes
    6 Posts
    2k Views
    SGaistS
    You're welcome ! No problem, it happens to all of us ;)
  • [solved] QFileSystemModel - add new column before another column

    5
    0 Votes
    5 Posts
    2k Views
    SGaistS
    Indeed, that's a way simpler solution I had forgot about
  • Keyboard Accelerator with QInputDialog via QWinWidget

    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    Then it looks like the local event loop is eating something from your input. Does it also happen if you use open rather than exec ?
  • [solved] Best way to activate the correct QUndoStack

    6
    0 Votes
    6 Posts
    1k Views
    W
    Did take a little bit longer, but works now. The main difference is subclassing, which I do not need now. Thanks!
  • Set Label Text from Another class

    9
    0 Votes
    9 Posts
    5k Views
    A
    As you could see I pointed that it was "simplified pattern" My goal was to provide an idea of communication between classes for person who seems just started learning C++. You do not start learning complex ideas before you understand pointers.
  • QTextEdit not Expanding

    Solved
    5
    0 Votes
    5 Posts
    3k Views
    a8wzA
    I found the solution. I needed to add the following code in MainWindow::eventFilter. Now the textEdit widget resizes properly. @ if (event->type() == QEvent::Resize) { return false; } @
  • Fastest IPC method

    6
    0 Votes
    6 Posts
    3k Views
    C
    I'd also recommend QLocalServer/Socket duo.
  • New release: SpellChecker Plugin (QtCreator 3.3)

    5
    0 Votes
    5 Posts
    1k Views
    TheBadgerT
    I have created a new release, v0.2.1 to fix a few things in version 0.2.0. Please download the latest release "here":https://github.com/CJCombrink/SpellChecker-Plugin/releases/tag/v0.2.1. This release includes pre-built binaries of the plugin for Windows and Linux_x64. Please let me know if there any issues. Regards
  • Qt GUI on Shared Object

    2
    0 Votes
    2 Posts
    906 Views
    C
    QApplication integrates with the underlying wşndowing system so that it can receive input events, update the UI etc. You should instantiate QApplication in the main thread and also call the the blocking QApplication::exec() if the user is supposed to interact with a custom UI. You can call QApplication::quit() when you are done with the QT-based UI component. Qt's UI classes based on QDialog can be used without calling QApplication::exec() (but you need to call QDİalog::exec in that case). To sum up, you need an event loop (QApplication/QDilaog::exec()) in the main thread so that Qt's UI classes can interact with windowing system.
  • Could not start process nmake.exe

    2
    0 Votes
    2 Posts
    1k Views
    C
    Hi, Is the Qt kit you are using to build your project has the correct compiler set? Kits are in the same Options page where the compilers and debuggers are.
  • Using STL Algorithms with Qt Containers

    12
    0 Votes
    12 Posts
    5k Views
    I
    bq. Ivan Čukić wrote: You’ll get a copy as soon as you call .begin() (if the list is implicitly shared ofcourse). Are you referring to a copy of the entire list? Does using .cbegin() and .cend() can avoid it?, e.g doing the following: @ QList< MyCustomObject > l; /* ... */ QList< MyCustomObject >::const_iterator it; std::for_each(it = l.cbegin(); it != l.cend(); /* ... */) @ No will make any copy?... Right? And in case published by Andre: @ for (const auto& myItem : myContainer) { //read from your item } @ An implicit deep copy is not made here... or am I wrong?
  • QtCreator with QTango widgets help

    2
    0 Votes
    2 Posts
    689 Views
    C
    Hi, there is a dedicated forum for "3rd party software":http://qt-project.org/forums/viewforum/47/. I suggest that you move this thread there.
  • QAxObject and sql

    4
    0 Votes
    4 Posts
    1k Views
    mrdebugM
    Only a bit to the solution! With these lines of code @ QAXOConn->dynamicCall("Open("Provider=SQLOLEDB.1;Integrated Security=SSPI;Initial Catalog=Inaz;Data Source=SERVER02")"); QAxObject *QAXORecordSet= QAXOConn->querySubObject("Execute("select column01 from table01")"); while(!QAXORecordSet->property("EOF").toBool()) { QAXORecordSet->dynamicCall("MoveNext()"); }@ I can execute a query and hop to the the next record but the question is: How can I get the column value?
  • How to keep rows together in QListView?

    6
    0 Votes
    6 Posts
    1k Views
    T
    done, just reset() :) :) :)
  • Qt Creator Subversion side-by-side diff

    1
    0 Votes
    1 Posts
    436 Views
    No one has replied
  • 0 Votes
    4 Posts
    1k Views
    A
    I know of no ready-made components. Basic features should not be too hard to make though. Search through QActions for instance, and represent the matching ones in a list as the search results. It also reminds me of the search box in Qt Creator itself (CTRL+K)
  • What is a platform independent qt addon?

    4
    0 Votes
    4 Posts
    1k Views
    A
    Qt can already handle libraries and plugins in a platform independent way. They still need to be compile to match their platform (like the application itself), but your code would not need to change. See the help section on "How to create Qt Plugins" for details.