Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • [Solved]Segfault when deleting last item from QListWidget

    5
    0 Votes
    5 Posts
    8k Views
    Q
    i fixed the issue. I had a onCurrentItemChanged() slot which did not check for null pointer
  • [SOLVED] storing system date in a variable

    4
    0 Votes
    4 Posts
    2k Views
    L
    "QDate::currentDate()":http://qt-project.org/doc/qt-4.8/qdate.html#currentDate "QDate::toString()":http://qt-project.org/doc/qt-4.8/qdate.html#toString @ QString systemDate = QDate::currentDate().toString("ddMMyyyy"); @
  • Print numbers 1 to 10 in GUI [SOLVED] - [Solucionado]

    4
    0 Votes
    4 Posts
    3k Views
    M
    I'm glad I was able to help :) Please mark the thread as solved (simply edit it and add something like [SOLVED] to the title).
  • [SOLVED] How to get fileSize and modification date using QFtp ?

    3
    0 Votes
    3 Posts
    2k Views
    A
    Thanks ChrisW67, this will be useful for me. And so, the task is solved.
  • How to select one widget in multipled widgets layout?

    6
    0 Votes
    6 Posts
    5k Views
    G
    Hi, highlighting must be done by you. So, which types of widget do you use? Custom ones? Then just change the background color in focusInEvent and focusOutEvent.
  • [SOLVED] Images not loading with QImage.load

    6
    0 Votes
    6 Posts
    11k Views
    Y
    I Rewrote this bit of code from scratch and it now works. Not sure what problem was exactly, but believe there was some kind of garbled conversion between std::string, QString and a c_str version of Filename. Thanks for your help.
  • Displaying help text after clicking the pushbutton and lineedit

    2
    0 Votes
    2 Posts
    1k Views
    L
    You should connect appropriate signals from "QPushButton":http://qt-project.org/doc/qt-4.8/QPushButton.html and "QLineEdit":http://qt-project.org/doc/qt-4.8/qlineedit.html to a slot which shows a custom help widget. Check this example at Qt Dev Net Wiki about "QPushButton":http://qt-project.org/wiki/How_to_Use_QPushButton
  • Removing red underlines in code

    11
    0 Votes
    11 Posts
    6k Views
    L
    In principle, yes. C++11 allows you to do this for constructors as well. @ class Manager : private Employee { using Employee::Employee; // invalid in C++98, valid in C++11 }; @
  • 0 Votes
    2 Posts
    2k Views
    J
    Some feedback that will help me: Has anyone seen this problem? Has anyone had success using ATL-numpad entry in a QLineEdit widget? If nobody has this problem and they can use the ALT-numpad entry, then that suggests a Qt configuration problem on my end.
  • Thread, ansi c signals and Qt

    6
    0 Votes
    6 Posts
    3k Views
    I
    Thanks a lot for the clarification.
  • QPropertyAnimation and QGraphicsObject.

    6
    0 Votes
    6 Posts
    4k Views
    B
    ok, thank you....
  • QSharedPointer and Temporary Copies

    4
    0 Votes
    4 Posts
    2k Views
    G
    can you give a bit more code? How is the queue defined? Which types are stored? How are they added? This has a big influence on the error...
  • Qt and COM problem (QvariantList &*)

    2
    0 Votes
    2 Posts
    2k Views
    R
    Really no one?
  • 0 Votes
    4 Posts
    25k Views
    A
    Glad I could help you. Please add "[SOLVED]" to the left of the topic subject.
  • Qt application built against X11 libraries to run in Windows platform

    6
    0 Votes
    6 Posts
    2k Views
    A
    bq. I need to execute a Qt GUI application that supports X11 protocol on MS Windows platform. Where is nothing said about development for X11 under MS Windows! Only about execution of X11 app under MS Windows! Exactly what Exceed do in perfection! Express yourself more clearly next time!
  • Unhandled - Thread

    6
    0 Votes
    6 Posts
    3k Views
    L
    Yes, create your thread object at a larger scope, for example as a member of your class or on the heap, so it won't go out of scope (and thus beeing destroyed) before your thread has finished execution.
  • QGraphicsObject uses multiple inheritance?

    5
    0 Votes
    5 Posts
    2k Views
    L
    Multiple inheritance is not bad at all, it just requires that you know what you are doing. But this is true for a lot of other stuff in C++ as well ;-)
  • Looped QTcpSocket writes failing

    2
    0 Votes
    2 Posts
    2k Views
    C
    The data will not be sent until your code returns to the Qt event loop or explicitly calls waitForBytesWritten(): calls to write() are not blocking and only queue data for later transmission. The flush() call does not immediately send everything queued in Qt: it only queues some amount with the OS (see the docs). The data may, or may not, arrive at the receiver in the same number of chunks as you queued it in. There is no connection between the number of calls you make to write() and the number of TCP packets sent. TCP guarantees that all bytes sent are received in the correct order.
  • [Resolved] Weirdness with Mac menubars

    4
    0 Votes
    4 Posts
    4k Views
    B
    ... furthermore, for situations where you simply want to display an action under a regular pull-down menu, you would include the following in your Mac-specific code: @myAction->setMenuRole(QAction::NoRole);@ If the role is not explicitly defined, the action will not appear in the menu.
  • QTextEdit and EditEvent

    3
    0 Votes
    3 Posts
    1k Views
    P
    Srry i didnt see this signal in manual. Thx for help