Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • How to create a simple box like layout

    11
    0 Votes
    11 Posts
    4k Views
    W
    [quote author="developer" date="1340529246"]OK @ Wilk i will use Punctuation in my Posts.[/quote] Thank you for understanding.
  • Updating QAction shortcuts text

    8
    0 Votes
    8 Posts
    3k Views
    R
    could you give a stripped down version of how exactly you are doing it(in code)? maybe that'll shed some light on what's going on...
  • Reading input from a textedit

    4
    0 Votes
    4 Posts
    22k Views
    R
    @QString lineEditText = myLineEdit->text();@ @QString textEditText = myTextEdit->toPlainText();@
  • QTableWidget process list

    2
    0 Votes
    2 Posts
    2k Views
    Q
    I fixed it myself. Very simple solution because I am a moron. I changed this: @lul.fromWCharArray(processInfo->szExeFile);@ to this to get it working @lul = lul.fromWCharArray(processInfo->szExeFile);@
  • Two Windows

    10
    0 Votes
    10 Posts
    6k Views
    E
    Cool, look great, will try tomorrow, now is too late (or early) at my place (2:00AM) tnx
  • Load plugin depending on file extension

    6
    0 Votes
    6 Posts
    2k Views
    L
    You cannot use a string (neither a std::string nor a QString) as switch expression. because it is not an intergal type. But you can of course, or better you will have to, use if ... else clauses.
  • QTreeView Node value not getting updated

    2
    0 Votes
    2 Posts
    1k Views
    G
    How do you change the data? If you have your own model, do you emit dataChanged() signal after successfully storing your data in the setData() method?
  • Linux threading seems to be broken with Qt 4.8.0

    5
    0 Votes
    5 Posts
    2k Views
    G
    If you use the very same database connection on two different threads, you might run into problems. The database classes are not thread safe! You will need distinct connections for each thread.
  • 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