Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.9k Posts
  • Not able to add model to the main window..

    3
    0 Votes
    3 Posts
    2k Views
    G
    Your table view is created on the stack. As soon as the variable goes out of scpe - here: your constructor has finished - it is destroyed. Use a pointer and heap allocation: @ QTableView *tableView = new QTableView(this); tableView->setModel(model); @ Also, make sure to make the view the central widget or add it to a layout.
  • App compiled in Win 7 doesnt run on Win XP

    2
    0 Votes
    2 Posts
    2k Views
    L
    http://qt-project.org/forums/viewthread/18179/
  • Having problem with Notepad app?

    4
    0 Votes
    4 Posts
    2k Views
    G
    this is a pointer to the object you are in - in this case it's the Notepad object. aApp is a convenience macro that returns a pointer to the QApplication object. The recent docs with the "Getting started with Qt tutorial":/doc/qt-4.8/gettingstartedqt.html have some additions regarding the missing methods.
  • QTableWidget do not hide headers on resize

    4
    0 Votes
    4 Posts
    3k Views
    L
    No one to answer? Same question here...
  • NetworkReply::downloadProgress - signal emitted once for ftp

    2
    0 Votes
    2 Posts
    2k Views
    G
    That signal is emitted continuously. Do you use some proxy/firewall/viruswall - maybe a hidden one? In that case it could be that the proxy waits until the download is finished, checks the contents an delivers it to your application.
  • Colon after Windows drive letter confuses Make

    7
    0 Votes
    7 Posts
    3k Views
    G
    I would open a bug report against qmake here.
  • Qt embedded console commands request and reply

    5
    0 Votes
    5 Posts
    4k Views
    G
    QProcess::execute() is a static method. It does not return any output of the started command/executable. You will have to use the non-static methods in order to ready any data. @ QProcess p; p.start("/etc/rc.d/S09pppd status"); p.waitForFinished(); // blocks! QByteArray output = p.readAllStandardOutput(); @
  • Qt 4.8.2 included in latest SDK or not?

    4
    0 Votes
    4 Posts
    4k Views
    M
    I see that Qt SDK 1.2.2 still isn't out. Thought it would be just about to be released. Can't find any updates. Is there any release schedule?
  • QProgressBar - setRange and style sheet

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • OSX - memory allocation - Free vs Inactive memory

    3
    0 Votes
    3 Posts
    2k Views
    K
    @ #include "fcntl.h" QFile f(path); if(f.open(QIODevice::ReadOnly)) { fcntl(f.handle(),F_GLOBAL_NOCACHE,1); } @ Seems to do it!
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Qt and SQL: how many transactions can it handle (commits on database)

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    5 Posts
    3k Views
    A
    Or you can look at the code in QWT, and then write something like it yourself.
  • How Qt loading SQL drivers?

    6
    0 Votes
    6 Posts
    4k Views
    S
    Sorry, can't help you. compile your plugins both debug and release, add to .pro file, @ qt += sql @ compile your Qt application with same compiler as you just compiled libraries, put your plugin libraries in right place, copy any other libraries provided by DBMS vendor beside your application. This works properly for me.
  • How to create a file manager like lay out in qt

    8
    0 Votes
    8 Posts
    3k Views
    D
    this is something what i want to achieve http://dl.dropbox.com/u/35031827/cute d.png
  • QUdpSocket and QThread

    5
    0 Votes
    5 Posts
    3k Views
    B
    I had reading somewhere that moveToThread(this) was not more necessary since Qt 4.7. Thank you both. I will go deeply in the docs you had provided. ty again
  • 0 Votes
    3 Posts
    5k Views
    D
    I thought that, my proposed ideas included a QTableView but I was shown a demo with it using a grid layout but I cannot repeat it, must have been smoke and mirrors - hard to question a task when it has been demonstrated to work, but I have no idea what he did, I'll get him when he is back in the office :-S So why does it allow me to add columns then, it the only the view accepting colums? HA HA!!! setFlow(QListView::LeftToRight); Yes!!
  • QThread::currentThread unexpected (at least for me…) behaviour

    5
    0 Votes
    5 Posts
    4k Views
    K
    Another important read on the correct use of QThreads is "this one":http://qt-project.org/wiki/QThreads_general_usage. Its not as extensive as the one suggested by Lukas Geyer but instead focuses on the (in my opinion) most important aspect related to the use of QThreads, namely the fact that they themself are not a thread but a wrapper around a thread object. And thus should be used this way.
  • 0 Votes
    15 Posts
    5k Views
    K
    Another good read on threads and the recommended approach for using QThreads is "this one":http://qt-project.org/wiki/QThreads_general_usage.