Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.9k Posts
  • Why is QAbstractListModel::columnCount() private?

    3
    0 Votes
    3 Posts
    2k Views
    D
    That's a good reason.. I was using it just to be prepared in case I don't use QAbstractListModel anymore, but I was curious about this.. Thank you!
  • Documentation confusion QXmlStreamReader::readNextStartElement

    2
    0 Votes
    2 Posts
    3k Views
    M
    Hello. I don't understand why any data should be partially parsed in line 8 or 9. Neither of these lines does any parsing as far as I can tell. The documentation of QXmlStreamReader::readNextStartElement states: bq. Returns true when a start element was reached. When the end element was reached, or when an error occurred, false is returned. So I guess when you see a false return value and now Error you just read the end element.
  • How to implement Qt messageClicked() signal of balloon message on Mac?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Qt Plugins for extending my own Qt Application

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Click Event on the rootnode of QtreeView

    1
    0 Votes
    1 Posts
    753 Views
    No one has replied
  • Treatment of rotated items in QGraphicsLayout

    1
    0 Votes
    1 Posts
    710 Views
    No one has replied
  • [SOLVED] Simple socket client inside app

    7
    0 Votes
    7 Posts
    2k Views
    M
    Moderators can edit the post titles, but that's really the task of the thread owner. ;-)
  • Error During Offline Installation

    3
    0 Votes
    3 Posts
    2k Views
    L
    See "also":http://qt-project.org/forums/viewthread/7003.
  • On_toolButton_clicked() vs on_lineEdit_editingFinished()

    2
    0 Votes
    2 Posts
    1k Views
    JeroentjehomeJ
    This is a brain to keyboard, but try to make three signals! You got the first two, but make an extra one that is called "on_toolButton_pressed()". This one can emit the on_lineEdit_Finished signal making that signal before the on_toolButton_clicked(). Good luck
  • [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....