Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • Indexing not ordered data model - proxy

    Unsolved
    2
    0 Votes
    2 Posts
    310 Views
    VRoninV
    Can you explain more concretely what the problem is and what you have? Did you subclass QAbstractTableModel? Did you run your subclass through the model test? Did you subclass QSortFilterProxyModel? What specific problem are you facing?
  • How to reference code created QPushButton?

    Solved
    9
    0 Votes
    9 Posts
    824 Views
    Cobra91151C
    @legitnameyo I think your program crashes because it initializes two pointers. Remove QPushButton * from your constructor. It should be: test.h private: QPushButton *btn; test.cpp Test::Test(QWidget *parent) : QMainWindow(parent), ui(new Ui::test) { ui->setupUi(this); btn = new QPushButton(this); } Also try to attach the debugger and run your program, it should detect the issue.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    13 Views
    No one has replied
  • --icon option doesn't work with QApplication in Qt > 5.5

    Solved
    2
    1 Votes
    2 Posts
    242 Views
    J
    I've received an answer on Stack Overflow. It looks like in Qt 5.4 there was a change related with XCB handling that is not shown in the documentation: https://stackoverflow.com/questions/54553876/icon-option-doesnt-work-with-qapplication-in-qt-5-5 In the documentation it is stated, that f.e. user can use -geometry same as -qwindowgeometry but only -qwindowicon is visible in the documentation. http://doc.qt.io/qt-5/qguiapplication.html#QGuiApplication In code we can see, that -icon is also recognised on XCB platform: http://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/kernel/qguiapplication.cpp?h=5.5#n1164
  • drag and drop outlook mail item to QT application

    Unsolved
    2
    0 Votes
    2 Posts
    682 Views
    raven-worxR
    @rakm this is not possible with Qt API (and without modifiying Qt source code) and never will be I once implemented this, but only with an ugly hack by exposing the actual drop item out of QtGui dll and examine it's contents directly in the dropEvent() handler. Any way you may want to checkout this change though. It may be that it might be possible in the meantime.
  • QTextEdit start text one tab in?

    Solved qtextedit
    16
    0 Votes
    16 Posts
    4k Views
    L
    Yes, and works perfectly
  • Wrapping Texture on CuboidMesh

    Unsolved qt3d
    1
    0 Votes
    1 Posts
    358 Views
    No one has replied
  • XML file Encryption/Protection

    Unsolved
    13
    0 Votes
    13 Posts
    2k Views
    Pablo J. RoginaP
    As @jsulm said: Why should an user want to edit the project file manually? And if an user would do this - what is the problem? At the end he/she can edit it in your app anyway I'm thinking of translation files (.ts) or GUI files (.ui) in Qt itself. They're just plain XML files, and I create/edit them with proper applications (Linguist and Designer respectively). BUT I can also edit them with my favorite text editor, why not? And if I mess them up, my favorite version control system (git, SVN, you name it) will come to the rescue to back them up to the point before the issue. It looks like you're doing a lot of work/effort for something that could be avoided...
  • QMouseEvent::localPos() on Retina display

    Unsolved
    1
    0 Votes
    1 Posts
    372 Views
    No one has replied
  • How to know which fonts work in QTextEdit?

    Solved
    9
    0 Votes
    9 Posts
    1k Views
    jsulmJ
    @legitnameyo said in How to know which fonts work in QTextEdit?: Still a bit perplexed over why there's a difference between QFontDatabse and QFontComboBox QFontComboBox is a widget to select a font by user. QFontDatabse is not a widget but provides information about available fonts. It is a good design to separate logic/databases from GUI.
  • Resize dropdown list of a QComboBox

    Solved
    8
    0 Votes
    8 Posts
    1k Views
    SGaistS
    That's indeed what is done but there is a procedure to follow. Jira is the issues/features/tasks management part. Then you have Gerrit which is the review tool. You have here the introduction on how to do a submission. Everybody with an account can help review patches but you need the validation of approvers/maintainers to start the integration process. Approvers and maintainers do not necessarily work for the Qt Company.
  • Build Static Qt fails with Project Error

    Solved
    14
    0 Votes
    14 Posts
    4k Views
    xenovasX
    Ok and for those who want to know how to include OpenSSL lib and headers to their projects add the following lines to your .pro file in your project LIBS += -LC:/OpenSSL-Win32/lib -lssleay32 INCLUDEPATH += C:/OpenSSL-Win32/include
  • Displaying my JSON data in table view

    Unsolved
    17
    0 Votes
    17 Posts
    5k Views
    jsulmJ
    @Vineela There is some information how to use it in your code: https://github.com/poulh/qjsontablemodel/blob/master/README.md
  • This topic is deleted!

    Locked Unsolved
    1
    0 Votes
    1 Posts
    9 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    12 Views
    No one has replied
  • How to minimize QT dialog window to taskbar ?

    Solved
    11
    0 Votes
    11 Posts
    3k Views
    L
    @Chris-Kawa It works, thanks.
  • get error message from qprocess

    Solved
    14
    0 Votes
    14 Posts
    6k Views
    jsulmJ
    @user4592357 strerror is not about exit code but errors occurring during run time of the application. There is no standard for exit codes. The only thing which is usually a valid assumption is: 0 means "everything fine". Everything != 0 signals an issue. But what exactly an exit code means is up to the application.
  • Adding Multiselection item in list to new QList

    Unsolved
    4
    0 Votes
    4 Posts
    387 Views
    jsulmJ
    @Bharth http://doc.qt.io/qt-5/qlistwidget.html#selectedItems http://doc.qt.io/qt-5/qlist.html#append
  • How to properly scale qt window to all screen sizes?

    Unsolved
    1
    0 Votes
    1 Posts
    349 Views
    No one has replied
  • How should I unit test my QStateMachine?

    Unsolved
    4
    0 Votes
    4 Posts
    835 Views
    SGaistS
    One possible way would be to have a QThread and use the worker object approach.